PV is stuck in terminating state failing to delete
Applies to
Trident , Kubernetes
Issue
A PV is stuck in terminating state. The PV is no longer mounted on worker node . There is no Pod with a corresponding PVC. Errors are noted in the logs in the following format:
VolumeFailedDelete persistentvolume <pvc> is still attached to node <node hostname>
A check of mounted PV's on the worker node will reveal the specified PVC/PV is no longer mounted
Check using command
kubectl get pvc
to confirm the PVC no longer exists Check using command
kubectl get pv
will show the PV exists More information on the PV can be obtained via
kubectl describe pv <pvc/pv name as seen in error above>
Observe the fact that the PV is in terminating state. The same error message as above is noted in the events logs for the PV