Pod events showing 'volume attachment is being deleted' with vmware pvs
Issue
- After running a
pod
, it is stuck onContainerCreating
,Pending
, orInit
status. - The
volumes
of thepod
are failing to be attached returning the following message:
MountVolume.WaitForAttach failed for volume "pvc-2asqw479-f9e7-4cd3-acec-wxj2e6u5v9l8" : volume attachment is being deleted
- The vSphere CSI driver is returning the
"Could not construct volume information, cleaning up mounts"
error:
"Could not construct volume information, cleaning up mounts" podName=27c48f30-c695-4663-b31b-f4ba2d4f4895 volumeSpecName="pvc-2asqw479-f9e7-4cd3-acec-wxj2e6u5v9l8" err="could not check whether the volume \"kubernetes.io/csi/csi.vsphere.vmware.com^2asqw479-f9e7-4cd3-acec-wxj2e6u5v9l8\" (spec.Name: \"pvc-2asqw479-f9e7-4cd3-acec-wxj2e6u5v9l8\") pod \"27c48f30-c695-4663-b31b-f4ba2d4f4895\" (UID: \"27c48f30-c695-4663-b31b-f4ba2d4f4895\") is mounted with: stat /var/lib/kubelet/pods/27c48f30-c695-4663-b31b-f4ba2d4f4895/volumes/kubernetes.io~csi/pvc-2asqw479-f9e7-4cd3-acec-wxj2e6u5v9l8/mount: no such file or directory
ODF:
87s Warning FailedAttachVolume pod/rook-ceph-osd-0-84f46945b-bjnrm AttachVolume.Attach failed for volume "pvc-9e7d59fe-c7fc-4aa8-8305-bfcdc239d8bc" : volume attachment is being deleted
Environment
Red Hat OpenShift Container Platform (RHOCP) v4.x
Red Hat OpenShift Data Foundations (RHODF) v4.x
Red Hat OpenShift Container Storage (RHOCS) v4.x
VMware vSphere
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.