VM migration between vApp fails with the error "failed to update and has been rolled back. Internal Server Error Internal Server Error"
search cancel

VM migration between vApp fails with the error "failed to update and has been rolled back. Internal Server Error Internal Server Error"

book

Article ID: 371724

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • VM migration between vApp fails with the error below:

    [ xxxx-xxxx-xxxx-xxxx ] VM 'VM_NAME' (xxxx-xxxx-xxxx-xxxx-xxxx) failed to update and has been rolled back. Internal Server Error Internal Server Error 
    - VM 'VM_NAME'  (xxxx-xxxx-xxxx-xxxx-xxxx) failed to update and has been rolled back. Internal Server Error Internal Server Error

  • From /opt/vmware/vcloud-director/logs/vcloud-container-debug.log you see entries similar the entries reported below:

YY-MM-DD TIME | ERROR    | storage-fabric-activity-pool-2372 | FutureUtil                     | VM relocation for VM [vcId=xxxx-xxxx-xxxx-xxxx-xxxx, moref=vm-moref] failed. | requestId=xxxx-xxxx-xxxx-xxxx-xxxx,request=POST https://vcloud.example.com/api/vApp/vapp-xxxx-xxxx-xxxx-xxxx-xxxx/action/recomposeVApp,requestTime=1719830776264,remoteAddress=##.##.##.##:51739,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/201...,accept=application/*+xml;version 38.0.0-alpha vcd=xxxx-xxxx-xxxx-xxxx-xxxx,task=xxxx-xxxx-xxxx-xxxx-xxxx activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:xxxx-xxxx-xxxx-xxxx-xxxx) activity=(com.vmware.vcloud.vdc.impl.ComposeRecomposeVAppActivity,urn:uuid:xxxx-xxxx-xxxx-xxxx-xxxx) activity=(com.vmware.vcloud.vdc.impl.LinkVMsToTargetVAppActivity,urn:uuid:xxxx-xxxx-xxxx-xxxx-xxxx) activity=(com.vmware.vcloud.vdc.impl.MoveVmUsingVmotionActivity,urn:uuid:xxxx-xxxx-xxxx-xxxx-xxxx) activity=(com.vmware.ssdc.backend.services.impl.RelocateVmActivity,urn:uuid:xxxx-xxxx-xxxx-xxxx-xxxx) activity=(com.vmware.vcloud.fabric.storage.storedVm.impl.RelocateStoredVmByStorageClassActivity,urn:uuid:xxxx-xxxx-xxxx-xxxx-xxxx) activity=(com.vmware.vcloud.fabric.storage.storedVm.impl.RelocateStoredVmByDatastoreActivity,urn:uuid:xxxx-xxxx-xxxx-xxxx-xxxx)
java.lang.NullPointerException: uuid

Environment

VMware Cloud Director 10.4.x

VMware Cloud Director 10.5.x

VMware Cloud Director 10.6.x

Cause

VM cloud_uuid is null/empty in vm_inv tables in VCD DB

Resolution

The VM cloud.uuid need to be updated on the VM in vCenter or in VCD Database.

Please open a case with Broadcom Support to delete the stale entries from VCD Database. For more information, see Creating and managing Broadcom support cases