external-snapshotter icon indicating copy to clipboard operation
external-snapshotter copied to clipboard

finalizer is not removed from pvc when deleting multiple snapshots at once

Open gland1 opened this issue 2 years ago • 0 comments

What happened: I've created 8 snapshots on a certain volume. All creations failed due to InvalidArgument error code. I've deleted all snapshots in parallel with : kubectl delete volumesnapshot --all I've tried to delete the volume pvc and got hang. Noticed that the finalizer: snapshot.storage.kubernetes.io/pvc-as-source-protection remained.

What you expected to happen: pvc delete should not hang

How to reproduce it: you must delete multiple (failed) snapshots in parallel. Deleting them one by one will not cause the issue Anything else we need to know?:

Environment:

  • Driver version: v.6.0.1 (but happens also with earlier versions)
  • Kubernetes version (use kubectl version): 1.24.2
  • OS (e.g. from /etc/os-release): ubuntu
  • Kernel (e.g. uname -a):Linux ubuntu-k8s 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Install tools:
  • Others:

gland1 avatar Sep 20 '22 09:09 gland1