vsphere volume failed to attach with error `rpc error: code = NotFound desc = disk-name not attached to node`
Issue
- Failed to attach volume to pod with event
$oc get events
LAST SEEN TYPE REASON OBJECT MESSAGE
3m26s Warning FailedMount pod/prometheus-k8s-0 MountVolume.MountDevice failed for volume "pvc-name" : rpc error: code = NotFound desc = disk:name not attached to node
2m59s Warning FailedMount pod/prometheus-k8s-1 MountVolume.MountDevice failed for volume "pvc-name" : rpc error: code = NotFound desc = disk: name not attached to node
Environment
- Red Hat OpenShift Container Platform(RHOCP)
- 4.x
- Vmware Vsphere
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.