Description of problem: While create pvc using storage class, the pvc cannot be bound with dynamic provision Version-Release number of selected component (if applicable): oc v3.4.0.18+ada983f kubernetes v1.4.0+776c994 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://104.154.117.67:8443 openshift v3.4.0.18+ada983f kubernetes v1.4.0+776c994 How reproducible: Always Steps to Reproduce: 1.Create storage two storage class via CLI as admin $ cat default.yml | oc create -f - apiVersion: storage.k8s.io/v1beta1 kind: StorageClass metadata: name: default annotations: storageclass.beta.kubernetes.io/is-default-class: "true" provisioner: kubernetes.io/gce-pd $ cat gcesc.yml | oc create -f - apiVersion: storage.k8s.io/v1beta1 kind: StorageClass metadata: name: gce annotations: storageclass.beta.kubernetes.io/is-default-class: "false" provisioner: kubernetes.io/gce-pd 2. Create pvc on web console and select storageclass as gce 3. Check pvc status Actual results: PVC keeps pending status due to error below: $ oc describe pvc wehe FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 10m 5m 21 {persistentvolume-controller } Normal ProvisioningIgnoreAlpha both "volume.alpha.kubernetes.io/storage-class" and "volume.beta.kubernetes.io/storage-class" annotations are present, using "volume.beta.kubernetes.io/storage-class" 10m 5m 21 {persistentvolume-controller } Warning ProvisioningFailed Failed to provision volume with StorageClass "default": claim.Spec.Selector is not supported for dynamic provisioning on GCE 5m 2s 22 {persistentvolume-controller } Normal ProvisioningIgnoreAlpha both "volume.alpha.kubernetes.io/storage-class" and "volume.beta.kubernetes.io/storage-class" annotations are present, using "volume.beta.kubernetes.io/storage-class" 5m 2s 22 {persistentvolume-controller } Warning ProvisioningFailed Failed to provision volume with StorageClass "default": claim.Spec.Selector is not supported for dynamic provisioning on GCE $ oc get pvc wehe -o yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: volume.alpha.kubernetes.io/storage-class: gce volume.beta.kubernetes.io/storage-class: default creationTimestamp: 2016-11-02T02:36:28Z name: wehe namespace: wehe resourceVersion: "3255" selfLink: /api/v1/namespaces/wehe/persistentvolumeclaims/wehe uid: 283d1cc9-a0a5-11e6-a7c2-42010af00012 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi selector: {} status: phase: Pending There is a redundant of empty "selector: {}" to make this fail Expected results: PVC can be bound with dynamic provision Additional info:
GCE is just an example, this could happen on all storageclass provision.
Erin/Zac can you guys determine whether this is an issue with the changes to the create PVC page or if this needs to be transferred to another team?
I have a fix, but I want to do a little more testing.
PR #822 has been opened to fix these issues
Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/a6e3bf3a68da0b710b97d6312752faf5e7267fe2 Merge pull request #822 from zherman0/bug1390826 Merged by openshift-bot
This has been merged into ose and is in OSE v3.4.0.23 or newer.
Test failed on below version: openshift v3.4.0.23+24b1a58 kubernetes v1.4.0+776c994 $ oc describe pvc FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 12m 5s 49 {persistentvolume-controller } Warning ProvisioningFailed Failed to provision volume with StorageClass "fast": claim.Spec.Selector is not supported for dynamic provisioning on AWS Still a "selector: {}" part to make this fail $ oc get pvc weheui -o yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: volume.beta.kubernetes.io/storage-class: fast creationTimestamp: 2016-11-08T07:28:22Z name: weheui namespace: wehe resourceVersion: "8366" selfLink: /api/v1/namespaces/wehe/persistentvolumeclaims/weheui uid: ed8d165f-a584-11e6-8cf0-0e3d9543087e spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi selector: {} status: phase: Pending Hope this will be fixed in newer version.
PR #854 has been submitted. I could not completely test dynamic provisioning but I did completely remove the extra spec selector object so hopefully that fixes the test case.
QE - Please retest. Thank you.
Erin, Zac's latest PR is not merged yet, its pending him fixing some review feedback. Moving this back to assigned.
Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/44484b3fa93991a6b9d5f4121eda94600ef55628 Merge pull request #854 from zherman0/bug1390826 Merged by openshift-bot
This has been merged into ocp and is in OCP v3.4.0.26 or newer.
I have verified this on below version: openshift v3.4.0.26+f7e109e kubernetes v1.4.0+776c994 This issue is fixed, Thanks