When attempting to import a virtual machine in Cloud Director the operation fails. In the vcloud-container-debug.log we can see an error similar to the following:
ERROR | task-service-activity-pool-191 | FutureUtil | Task future is not complete. | requestId=############,request=POST https://<Cloud Director FQDN>/api/admin/extension/vimServer/##############/importVmIntoExistingVApp,requestTime=1747862521105,remoteAddress=########:3221,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/*+json;version 40.0.0-alpha vcd=################,task=################ activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:6537ac04-67d6-4be2-ac9e-299a571f74e9)
java.util.concurrent.ExecutionException: com.vmware.ssdc.library.exceptions.InsufficientUnknownResourcesException: The operation could not be performed, because there are insufficient resources.
vCenter Server task (moref: task-89203) failed in vCenter Server <vCenter Name> (################).
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.library.exceptions.InsufficientUnknownResourcesException: The operation could not be performed, because there are insufficient resources.
vCenter Server task (moref: task-89203) failed in vCenter Server '<vCenter Name>' (################).
at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:402)
at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:504)
at com.vmware.vcloud.val.taskmanagement.TaskWaiterInvRecord.CheckForError(TaskWaiterInvRecord.java:176)
at com.vmware.vcloud.val.internal.impl.VcVimHandle.waitForTask(VcVimHandle.java:157)
at com.vmware.vcloud.val.internal.impl.ReconfigureVmActivity$ReconfigureVmInVcPhase.reconfigureVm(ReconfigureVmActivity.java:340)
at com.vmware.vcloud.val.internal.impl.ReconfigureVmActivity$ReconfigureVmInVcPhase.invoke(ReconfigureVmActivity.java:256)
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: (vim.fault.InsufficientFailoverResourcesFault)
VMware Cloud Director 10.x
vSphere HA is enabled for the cluster and there is a lack of resources to support vSphere HA.
1. More resources are needed for the tenant cluster if vSphere HA and fault tolerance are needed. The operation will fail in vCenter otherwise as it can not support additional resources.
2. Disable vSphere HA or fault tolerance for the VM. For vSphere HA the steps to disable are here: https://knowledge.broadcom.com/external/article/343224/disabling-and-enabling-vmware-high-avail.html. Fault tolerance for VM steps are here: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/7-0/vsphere-availability/providing-fault-tolerance-for-virtual-machines/using-fault-tolerance/turn-off-fault-tolerance.html.