Hide Forgot
Description of problem: The provisioned PV is not annotated with its provisioner, therefore if its StorageClass is deleted, it can not be automatically deleted by deleting its bound PVC. Version-Release number of selected component (if applicable): openshift v3.4.0.15+9c963ec kubernetes v1.4.0+776c994 etcd 3.1.0-alpha.1 How reproducible: Always Steps to Reproduce: 1. Prepare GlusterFS cluster and heketi 2. Create StorageClass, then create a PVC, a PV is automatically provisioned and bounds to the PVC 3. oc get pv -o yaml, 4. Delete the StorageClass 5. Delete the PVC Actual results: After step 3: PV is not annotated with the GlusterFS parameters After step 5: PV becomes 'Failed' Expected results: After step 5: PV should be deleted. Additional info:
As result of https://github.com/kubernetes/kubernetes/issues/34822, StorageClass now needs to be present at the point when Gluster volume is being deleted. Passing references to secrets via PV annotations is not secure.