Error: "null - The object 'vim.ResourcePool:resgroup-XXXXX' has already been deleted or has not been completely created" when importing a VM from vCenter into VMware Cloud Director
search cancel

Error: "null - The object 'vim.ResourcePool:resgroup-XXXXX' has already been deleted or has not been completely created" when importing a VM from vCenter into VMware Cloud Director

book

Article ID: 377310

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Cannot import a VM into VMware Cloud Director.

  • The VM import in Cloud Director fails with the error below:

    [####.####.####.####] null - The object 'vim.ResourcePool:resgroup-XXXXX' has already been deleted or has not been completely created

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

    2024-09-05T13:40:08        ERROR        opt/vmware/vcloud-director/logs/vcloud-container-info.log        storage-fabric-activity-pool-1152 | CopyVmActivity                 | [Activity Execution] Uncaught Exception during Activity execution. Recent phase: com.vmware.vcloud.fabric.storage.copy.impl.CopyVmActivity$AssociateStorageProfilesPhase@7ddf1f0 - Handle: urn:uuid:####.####.####.####, Current Phase: CopyVmActivity$AssociateStorageProfilesPhase | requestId=####.####.####.####,request=POST https://cloud.example.com/api/admin/extension/vimServer/####.####.####.####/importVmAsVApp,requestTime=1725543595990,remoteAddress=##.##.##.##:14909,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/*+json;version 39.0.0-alpha vcd=####.####.####.####,task=####.####.####.#### activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:####.####.####.####) activity=(com.vmware.vcloud.vdc.impl.ImportSingletonVAppActivity,urn:uuid:####.####.####.####) activity=(com.vmware.vcloud.vdc.impl.CopyContentsActivity,urn:uuid:####.####.####.####) activity=(com.vmware.vcloud.vdc.impl.CreateStoredVmActivity,urn:uuid:####.####.####.####) activity=(com.vmware.vcloud.fabric.storage.storedVm.impl.CreateFromVCenterVmActivity,urn:uuid:####.####.####.####) activity=(com.vmware.vcloud.fabric.storage.copy.impl.CopyVmActivity,urn:uuid:####.####.####.####)
    java.util.concurrent.ExecutionException: com.vmware.ssdc.util.RelocateException: null
    at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:136)
    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)
    Caused by: com.vmware.ssdc.util.RelocateException: null
    at com.vmware.vcloud.val.internal.impl.RelocateVmActivity$RelocateVmInVCPhase.invoke(RelocateVmActivity.java:260)
    at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)
    at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)
    ... 5 more
    Caused by: (vmodl.fault.ManagedObjectNotFound) {
       faultCause = null,
       faultMessage = null,
       obj = ManagedObjectReference: type = ResourcePool, value = resgroup-#####, serverGuid = null
    .......




Environment

VMware Cloud Director 10.5

Cause

The Organization VDC moref mismatch between VC and VCD.

Resolution

The issue can be resolve by recreating the Organization VDC.
If recreating the Organization VDC is not possible please Contact Broadcom support.

Additional Information

To check if the Organization VDC moref mismatch between VC and VCD:

1- Check the Organization VDC folder moref on VC. Once you select the Organization VDC folder in VC, you can find the moref in the URL as highlighted below:


https://cloud.example.com/ui/app/respurcepool;nav=h/urn:vmomi:ResourcePool:resgroup-#####:####.####.####.####/summary?navigator=tree


2- Check the folder moref on the DB in the org_prov_vdc table running the stesps below:

  • SSH the VCD primary cell

  • Connect to the database by running the command below:
    sudo -i -u postgres psql vcloud

  • Run the queries below:
    select * from org_prov_vdc where name = '{Org_VDC-NAME}';
    select name, parent_moref from vm_inv where parent_moref ='{resgroup-#####}';