Error: "ValidationException DELETE_HUB_CONTAINING_VMS"
Unable to delete a resource pool with one or more VMs associated. Evacuate all the VMs before you delete the resource pool.
ERROR | task-service-activity-pool-21 | ComputeHubSetImpl | Cannot remove compute hub moref://####-####-####-####-########/ResourcePool#resgroup-####### containing VMs. Evacuate all VMs on this hub and try again. | requestId=####-####-####-####- ######,request=POST <vcd url>/api/admin/extension/providervdc/####-####-####-####-########/##
com.vmware.vcloud.fabric.compute.ValidationException: ValidationException DELETE_HUB_CONTAINING_VMS
at com.vmware.vcloud.fabric.compute.chs.ComputeHubSetImpl.validateRemoveHubs(ComputeHubSetImpl.java:223)
at com.vmware.vcloud.fabric.compute.chs.ComputeHubSetImpl.removeHubs(ComputeHubSetImpl.java:251)
at com.vmware.vcloud.rcl.impl.RclServiceImpl.updateResourcePoolSetTaskLRRelated(RclServiceImpl.java:2487)
VMware Cloud Director 10.x
This issue occurs because of stale VM entries attached to that resource pool in the VMware Cloud Director database which prevents the deletion of the resource pool.
This is a known issue which can affect all versions of VMware Cloud Director.
Contact technical support and note this Knowledge Article ID (377240) in the problem description. For more information, see Creating and managing Broadcom support cases