Error "ValidationException DELETE_HUB_CONTAINING_VMS" when detaching the cluster resource pool from PvDC
search cancel

Error "ValidationException DELETE_HUB_CONTAINING_VMS" when detaching the cluster resource pool from PvDC

book

Article ID: 377240

calendar_today

Updated On: 07-03-2025

Products

VMware Cloud Director

Issue/Introduction

  • Unable to detach resource pool from PvDC

         Error: "ValidationException DELETE_HUB_CONTAINING_VMS"

  • While trying to detach resource pool from PvDC, it fails with below error:

    Unable to delete a resource pool with one or more VMs associated. Evacuate all the VMs before you delete the resource pool.
  • From the /opt/vmware/vcloud-director/logs/vcloud-container-debug.log, the following entries are seen: 

    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)

Environment

VMware Cloud Director 10.x

Cause

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.

Resolution

This is a known issue which can affect all versions of VMware Cloud Director.

Workaround:

Contact technical support and note this Knowledge Article ID (377240) in the problem description. For more information, see Creating and managing Broadcom support cases