pv is stuck Terminating due to race condition when csi-attacher removes finalizer and csi-provisioner tries to remove another finalizer #1217
Labels
kind/bug
Categorizes issue or PR as related to a bug.
What happened:
pv is stuck Terminating due to race condition when csi-attacher removes finalizer and csi-provisioner tries to remove another finalizer
symptom
pv is stuck Terminating when pvc is deleted with
HonorPVReclaimPolicy
feature gate enabled.process
csi-attacher would remove the finalizer(e.g. external-attacher/disk-csi-azure-com) when pv is detached, and later on csi-provisioner the would try to remove the
external-provisioner.volume.kubernetes.io/finalizer
finalizer when pvc is deleted and since pv object is in the cache of provisioner , the finalizer deletion always fail until maximum 6 retries exceeds, and finally leaves the pv in Terminating state forever (the underlying storage is deleted before finalizer remove fails).remove all finalizers from the pv and then delete pv manually
/kind bug
cc @jsafrane
What you expected to happen:
How to reproduce it:
Anything else we need to know?:
Environment:
kubectl version
): 1.27uname -a
):The text was updated successfully, but these errors were encountered: