What happened:
If a PVC is created using a VolumeSnapshot, and the VolumeSnapshot is quickly deleted while the PVC is still pending, the VolumeSnapshot deletion will fail.
What you expected to happen:
There should be a retry mechanism for deleting VolumeSnapshot.
How to reproduce it:
https://github.com/kubernetes-csi/external-snapshotter/blob/master/pkg/common-controller/snapshot_controller.go#L291
Looking at the code implementation, it doesn't retry if the deletion fails even once, which is unreasonable.
Anything else we need to know?:
Environment:
- Driver version: Any Version
- Kubernetes version (use
kubectl version): Any Version
- OS (e.g. from /etc/os-release): Any OS
- Kernel (e.g.
uname -a): Any
- Install tools:
- Others:
What happened:
If a PVC is created using a VolumeSnapshot, and the VolumeSnapshot is quickly deleted while the PVC is still pending, the VolumeSnapshot deletion will fail.
What you expected to happen:
There should be a retry mechanism for deleting VolumeSnapshot.
How to reproduce it:
https://github.com/kubernetes-csi/external-snapshotter/blob/master/pkg/common-controller/snapshot_controller.go#L291
Looking at the code implementation, it doesn't retry if the deletion fails even once, which is unreasonable.
Anything else we need to know?:
Environment:
kubectl version): Any Versionuname -a): Any