Error: 'The disk <uuid> is not attached to the VM "########-####-####-####-############" when trying to detach a Named Disk from a Virtual Machine in VMware Cloud Director.
search cancel

Error: 'The disk <uuid> is not attached to the VM "########-####-####-####-############" when trying to detach a Named Disk from a Virtual Machine in VMware Cloud Director.

book

Article ID: 376759

calendar_today

Updated On:

Products

VMware Cloud Director VMware vSphere ESXi VMware Telco Cloud Platform

Issue/Introduction

  • When you are trying to detach a named disk from a Virtual Machine inside an Organizational VDC you see the following error: 

com.vmware.vcloud.api.presentation.service.BadRequestException: The disk <uuid> is not attached to the VM "########-####-####-####-############" at bus "x" and unit "x".
    at com.vmware.vcloud.fabric.storage.disk.impl.DetachDiskActivity$DetachDiskFromVmPhase.handleDiskNotAttached(DetachDiskActivity.java:262)
        at com.vmware.vcloud.fabric.storage.disk.impl.DetachDiskActivity$DetachDiskFromVmPhase.invoke(DetachDiskActivity.java:166)
    at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)
    at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)

Environment

VMware Cloud Director 10.x

Cause

This issue occurs because of stale child entries in the Cloud Director database that prevents the Virtual Machine from detaching the named disk from the VMware Cloud Director UI. 

Resolution

Broadcom is aware of this issue and this issue shall be addressed in the upcoming releases.

To work around this issue, contact Broadcom Support and note this Article ID (376759) in the problem description. For more information, see Creating and managing Broadcom support cases.