-
Notifications
You must be signed in to change notification settings - Fork 252
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
PV stuck in status "Terminating" after deleting corresponding PVC #721
Comments
@matschen disable |
@andyzhangx
I noticed that |
What happened:
PV stuck in status "Terminating" after deleting corresponding PVC(
reclaimPolicy
ofStorageClass
is set toDelete
).What you expected to happen:
Automatically created PV should also be deleted after corresponding PVC is deleted.
How to reproduce it:
Create a storage class:
Run an app that will create PVC such as:
Then the following PVCs and PVs are created:
Then uninstall this app and delete PVC manually:
PV will stuck in Terminating status:
jiangzhenbing@prd37:~$ kubectl get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE pvc-a4b2a0da-2664-4336-b5e7-6e2271e21f8a 10Gi RWO Delete Terminating default/gitea-shared-storage nfs-csi 4m46s pvc-a8f4852f-70b2-4f48-ae2f-6c81862dda2a 8Gi RWO Delete Terminating default/redis-data-gitea-redis-master-0 nfs-csi 4m44s pvc-faf4c83f-2b6e-4bfe-8a9d-cc2ac2ddecab 10Gi RWO Delete Terminating default/data-gitea-postgresql-0 nfs-csi 4m44s
Check the log of
csi-nfs-controller
:ClusterRole nfs-external-provisioner-role indeed has no permission
Patch
onpersistentvolumes
.https://github.com/kubernetes-csi/csi-driver-nfs/blob/master/deploy/rbac-csi-nfs.yaml
Anything else we need to know?:
Environment:
kubectl version
):v1.24.3
Ubuntu 22.04
uname -a
):Linux prd37 5.19.0-32-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 30 17:03:34 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: