-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If driver can't delete PVC when it still has snapshots, when deleting the PVC, maybe it can't delete the PVC in the etcd? #115
Comments
Thanks @zhucan for reporting this issue! It was a design decision not to prevent PVC with snapshots from being deleted because some drivers do support that, but I think we should re-evaluate and figure out how to handle this better. |
In this case, driver can return success but need to know that PVC already deleted in k8s. After all snapshots are deleted, driver should delete the volume itself. We need to add documentation in Kubernetes-CSI and CSI for this. |
In this case, shouldn't PV object still exist because DeleteVolume() will fail? Can the presence of PVs in Released state indicate that something in the deletion is not working? PVC deletion is how we signal to the driver to start volume deletion. |
We should add a test to make sure PVC can be deleted when there are still snapshots. |
We discussed about this in the snapshot meeting. We want this to be handled consistently. So driver should return success and both PV and PVC will be deleted successfully. Driver needs to handle the cleanup of the volume resource on the storage system after all snapshots are deleted. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
This issue is discussed here as well: kubernetes-csi/external-provisioner#252 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@xing-yang: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…ncy-openshift-4.15-ose-csi-snapshot-controller OCPBUGS-24071: Updating ose-csi-snapshot-controller-container image to be consistent with ART
Version:
external-snapshotter: v1.0.1
kubernetes: v1.13.0
Details:
If driver can't delete PVC when it still has snapshots, when I delete the PVC with snapshots,the PVC in the etcd has been delete,but in fact, delete the PVC failed.
Expectation:
If driver can't delete PVC when it still has snapshots, it can't delete the pvc in etcd.
The text was updated successfully, but these errors were encountered: