Error: unable to find disk with ID urn:vcloud:disk:########-####-####-####-####ffe9:error retrieving Disk: API Error: 500: [ ##-yyyy-mm-dd-hh-mm-ss-648--########-####-####-####-####5616 ]VMware Cloud Director 10.6.1.2
When you perform Migrate Tenant Storage in VCD it migrates the named disk alongside the Virtual Machine(VM). Even though vCenter consolidates the files in to the VMs folder, VCD code maintains logical separation inside the database.
The issue occurs in Terraform because of the consolidation and renaming of the named disk at the vCenter level. These changes are purely cosmetic changes at the vCenter filesystem level, but within VCD, the disk remains a fully independent Named Disk.
To workaround the issue you can detach the named disks from the respective VMs before using the feature of Migrating VMware Cloud Director Tenant Storage across datastores.
To detach the named disks you can use the following document: Detach a VMware Cloud Director Named Disk to a Virtual Machine.
You can re-attach the named disk once you finish migrating the tenant storage across datastores. To re-attach the named disks you can use the following document: Attach a VMware Cloud Director Named Disk to a Virtual Machine.