RFC: Adding test cases to e2e/persistent_volumes.go and integration/persistent_volumes_test.go
This file creates an NFS PV with recycle policy and an PVC to claim the PV. After the PVC is bound, it is deleted and PV is recycled.
This file creates an NFS PV with recycle policy and an PVC to claim the PV. After the PVC is bound, it is deleted and PV is recycled.
[test ][1]
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: nfs-web | |
spec: | |
replicas: 1 | |
selector: | |
role: web-frontend | |
template: | |
metadata: |
kind: ReplicationController | |
metadata: | |
name: nfs-web | |
spec: | |
replicas: 1 | |
selector: | |
role: web-frontend | |
template: | |
metadata: | |
labels: |
# _output/bin/kubectl describe pod | |
Name: nfs-web-6l5mx | |
Namespace: default | |
Node: rootfs-dev/172.24.0.4 | |
Start Time: Fri, 05 Aug 2016 02:02:10 +0000 | |
Labels: role=web-frontend | |
Status: Running | |
IP: 172.17.0.2 | |
Controllers: ReplicationController/nfs-web | |
Containers: |
KUBERNETES_PROVIDER=azure ALLOW_PRIVILIGED=true CLOUD_PROVIDER=azure CLOUD_CONFIG=/etc/cloud.conf HOSTNAME_OVERRIDE="rootfs-dev" LOG_LEVEL=5 hack/local-up-cluster1.sh -o `pwd`/_output/bin |
# grep -a -i attacher /tmp/kube* | |
/tmp/kube-controller-manager.log:I0805 02:04:12.130109 12657 attacher.go:102] Attach operation successful: volume "https://openshiftstoragede1802.blob.core.windows.net/vhds/test7.vhd" attached to node "rootfs-dev". | |
/tmp/kubelet.log:I0805 02:04:20.081425 12600 attacher.go:135] Checking Azure disk "test7.vhd"(lun 0) is attached. | |
/tmp/kubelet.log:I0805 02:04:20.083265 12600 attacher.go:138] Successfully found attached Azure disk "test7.vhd"(lun 0, device path /dev/sdc). |
[root@rootfs-dev kubernetes]# _output/bin/kubectl get pod --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
default nfs-web-big-ko4nz 1/1 Running 0 7m
default nfs-web-r3qv4 1/1 Running 0 8m
default nfs-web11-8komm 1/1 Running 0 8m
[root@rootfs-dev kubernetes]# _output/bin/kubectl create ^C test1.yaml
[root@rootfs-dev kubernetes]# /root/azure-cli/bin/azure vm disk list -g openshift-storage-dev rootfs-dev
info: Executing command vm disk list
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: claim1
annotations:
volume.beta.kubernetes.io/storage-class: slow
spec:
accessModes:
diff --git a/test/e2e/volumes.go b/test/e2e/volumes.go | |
index b67608d..775d8b2 100644 | |
--- a/test/e2e/volumes.go | |
+++ b/test/e2e/volumes.go | |
@@ -370,8 +370,9 @@ var _ = framework.KubeDescribe("Volumes [Feature:Volumes]", func() { | |
config := VolumeTestConfig{ | |
namespace: namespace.Name, | |
prefix: "nfs", | |
- serverImage: "gcr.io/google_containers/volume-nfs:0.6", | |
- serverPorts: []int{2049}, |