Pod is stuck at ContainerCreating status blocked by a non-attached vSphere volume in OCP 4
Issue
- After running a
pod
, it is stuck onContainerCreating
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
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- VMware vSphere
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.