ContainerCreating state."does not appear staged" to the global mount path.Warning FailedMount 1s kubelet MountVolume.SetUp failed for volume "pvc-<>" : rpc error: code = FailedPrecondition desc = volume ID: "<volume-id>" does not appear staged to "/var/lib/kubelet/plugins/kubernetes.io/csi/csi.vsphere.vmware.com/<>/globalmount"
kubectl get pv,pvc,volumeattachment command shows the PV and PVC in a Bound state, but the VolumeAttachment persists even after pod deletion.kubectl get pv,pvc,volumeattachment -n <namespace>
For example:
kubectl get pv,pvc,volumeattachment -n <namespace>NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGEpersistentvolume/pvc-########-####-####-####-############ 1Gi RWO Retain Bound default/claim_name storage_class_name 2d3h
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGEpersistentvolumeclaim/claim_name Bound pvc-########-####-####-####-############ 1Gi RWO storage_class_name 2d
NAME ATTACHER PV NODE ATTACHED AGEvolumeattachment.storage.k8s.io/csi-################################################################ csi.vsphere.vmware.com pvc-########-####-####-####-############ workload-<> true 3m53s
csi.vsphere.vmware.com StorageClass with reclaimPolicy set to Retain.kubectl describe sc <storage_class_nanme> -n <namespace>allowVolumeExpansion: trueapiVersion: storage.k8s.io/v1kind: StorageClassmetadata: name: storage_class_nameprovisioner: csi.vsphere.vmware.comreclaimPolicy: RetainvolumeBindingMode: Immediate
vmware-system-csi namespace appear healthy, yet volume operations fail.df -h | grep <pv-name> returns no results despite the VolumeAttachment metadata indicating the volume is attached./var/lib/kubelet/pods/<pod-uuid>/volumes/kubernetes.io~csi/ remains empty for the affected volume.df -h | grep pvc-########-####-####-####-############
ls -lrt /var/lib/kubelet/pods/########-####-####-####-############/volumes/kubernetes.io~csi/
total 0
rpc error: code = FailedPrecondition during volume setup.journalctl -u kubelet | grep <pod-name>A CSI volume error occurs when the VolumeAttachment object persists without a valid filesystem mount on the scheduled node. The CSI driver interprets the existing object as a successful attachment, preventing subsequent mount attempts and leaving Pods stuck in ContainerCreating.
Deployments or StatefulSets using the affected PVC: kubectl get po -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{.metadata.name}{"\t"}{.spec.volumes[*].persistentVolumeClaim.claimName}{"\n"}{end}' | grep <pvc-name>kubectl scale deploy <deployment-name> -n <namespace> --replicas=0 kubectl scale sts <statefulset-name> -n <namespace> --replicas=0kubectl delete volumeattachment <attachment-name>
Note: Make sure it doesn't get recreated. If it gets recreated, most likely there's still some Pod mounting the PVC. Look for it and scale down the associated Deployment/StatefulSet.kubectl scale deploy <deployment-name> -n <namespace> --replicas=0kubectl scale sts <statefulset-name> -n <namespace> --replicas=0VolumeAttachment.kubectl scale deployments vsphere-csi-controller -n vmware-system-csi --replicas=0 kubectl scale deployments vsphere-csi-controller -n vmware-system-csi --replicas=2kubectl get pods -A -o wide | grep csi kubectl delete pod <pod_name> -n vmware-system-csi