Unable to migrate named disk from between Organizations
Migrating a named disk via API fails with Uncaught Exception during AttachDiskToShellVmPhase (Attach the disk to a shell VM)
ERROR | storage-fabric-activity-pool-244 | RelocateDiskActivity | [Activity Execution] Uncaught Exception during Activity execution. Recent phase: com.vmware.vcloud.fabric.storage.disk.impl.RelocateDiskActivity$AttachDiskToShellVmPhase@3e5ede46 - Handle: urn:uuid:#####-#####, Current Phase: RelocateDiskActivity$AttachDiskToShellVmPhase | requestId=#####-#####,request=POST https://vcd-fqdn/api/disk/xxxxx-<logical_disk_id>/action/moveDisk,requestTime= xxxx,remoteAddress=xxxxxx,userAgent=PostmanRuntime/7.29.4,accept=application/*+xml;version 36.3 vcd=#####-#####,task=xxxx-2302f10b67d8 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:#####-#####) activity=(com.vmware.vcloud.fabric.storage.disk.impl.RelocateDiskActivity,urn:uuid:#####-#####)java.util.concurrent.ExecutionException: com.vmware.vcloud.api.presentation.service.InternalServerErrorException: The requested operation on disk "" is not supported in its current state.<disk_id>
10.x
- The corresponding disk (vmdk) has been deleted and does not exist in the datastore
Steps to validate the logical disk path from vCloud DB and validate availability on vCenter server
cloud=# select * from ldisk_fo_join where logical_disk_id = '<logical_disk_id>';-[ RECORD 1 ]---+-------------------------------------logical_disk_id | <logical_disk_id>fo_id | <disk_id> vcloud=# select * from disk where id = '<disk_id>';-[ RECORD 1 ]---+-------------------------------------------------------------------------------------------------------------------------------------------------------------id | <disk_id>name | <logical_disk_id>creation_status | READYsize_kb | 471859200controller_type | 5sclass_id | #####-#####vc_id | #####-#####folder_moref | group-v1099shell_vm_moref | vm-1110ds_moref | datastore-1007vmdk_path | [datastore] <)/logical_disk_id><).vmdklogical_disk_id>iops | 0is_encrypted | fuuid | #####-#####sharing_type | NONE
Navigating to the vmdk_path location identified from the database, it was found the disk was not at the designated location due to which the Move-vApp API failed
- Migrate the disk to the same datastore where vCloud expects the disk configuration
Migrate named disk to another Organization Virtual Datacenter using the Cloud Director API - https://knowledge.broadcom.com/external/article?articleNumber=325550