Machine stuck in deleting phase in RHOCP 4

Solution Verified - Updated -

Issue

  • When attempting to delete the machine it became stuck in the Deleting phase with following error message:

     $ oc get machines -n openshift-machine-api
       NAME                       PHASE           AGE         NODE          PROVIDERID         STATE
       machine-0-worker-xxxx     Deleting         1y        worker-0-xxxx   vsphere://4xxx     poweredOn
    
     message: 'Failed to check if machine exists: machine-0-worker-xxxx: failed
      to create scope for machine: failed to create vSphere session: unable to find
      datacenter "Vxxxx-Datacenter": datacenter ''Vxxxx-Datacenter'' not found'
    reason: ErrorCheckingProvider
    status: Unknown
    
  • How to delete the machine stuck in the Deleting phase?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • VMware

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