vsphere volume failed to attach with error `rpc error: code = NotFound desc = disk-name not attached to node`

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content