Error: "java.util.concurrent.ExecutionException: com.vmware.vcloud.api.presentation.service.InternalServerErrorException:The requested operation on disk <UUID> is not supported in its current state"
search cancel

Error: "java.util.concurrent.ExecutionException: com.vmware.vcloud.api.presentation.service.InternalServerErrorException:The requested operation on disk <UUID> is not supported in its current state"

book

Article ID: 425567

calendar_today

Updated On:

Products

VMware vCloud NFV VMware Cloud Director

Issue/Introduction

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 "<disk_id>" is not supported in its current state.

Environment

10.x

Cause

- 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 | READY
size_kb         | 471859200
controller_type | 5
sclass_id       | #####-#####
vc_id           | #####-#####
folder_moref    | group-v1099
shell_vm_moref  | vm-1110
ds_moref        | datastore-1007
vmdk_path       | [datastore] <logical_disk_id>)/<logical_disk_id>).vmdk
iops            | 0
is_encrypted    | f
uuid            | #####-#####
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 

Resolution

 

- Migrate the disk to the same datastore where vCloud expects the disk configuration 

Additional Information

Migrate named disk to another Organization Virtual Datacenter using the Cloud Director API - https://knowledge.broadcom.com/external/article?articleNumber=325550