kubernetes-csi / external-provisioner

Sidecar container that watches Kubernetes PersistentVolumeClaim objects and triggers CreateVolume/DeleteVolume against a CSI endpoint
Apache License 2.0
338 stars 324 forks source link

pv is getting stuck in terminating state after upgrading the external provisioner to v5.1.0 latest release #1277

Open ramandeepsharma opened 1 week ago

ramandeepsharma commented 1 week ago

What happened:

pv is getting stuck in terminating state after upgrading the external provisioner to v5.1.0 latest release. The issue seems to be caused by patch permissions which got added here: PR-1155. We have to delete the finalizer as well as pv manually currently.

What you expected to happen:

pv shouldn't get stuck in terminating and should get deleted without removing the finalizer.

How to reproduce it:

Anything else we need to know?:

We also noticed the following driver logs during pv termination and looks like because of these errors, provisioner is not being able to delete the PV.

Warning VolumeFailedDelete 44s (x379 over 23h) efs.csi.aws.com_efs-csi-controller-6d9d89f7c7-xxxx rpc error: code = NotFound desc = Failed to find access point for volume: fs-xxxxxx

Environment:

Jainbrt commented 4 days ago

@ramandeepsharma what is exact minor version of K8s, you are running ?