VMware Cloud Community
x129
Contributor
Contributor

I can’t remove PvDC resource pools

I can’t remove PvDC resource pools, the following error occurs:

2020-03-04 14:29:52,628 | ERROR    | pool-jetty-256669         | RclServiceImpl                 | Cannot remove hubs [moref://eaa4d8b2-eb18-416e-acd5-7a64b7059f68/ResourcePool#resgroup-772] because they contain 1 runnable VMs | requestId=8ee9a3e7-3d2a-4188-89d1-b2c350a9bb40,request=POST https://***.***.**/cloud/amfsecure,requestTime=1583321391907,remoteAddress=192.168.7.66:21215,userAg... (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 ...,accept=*/* method=rclService.updateResourcePoolSet

2020-03-04 14:29:52,637 | INFO     | pool-jetty-256669         | Conversation                   | Transaction rolled back; session has been closed [Conversation: aee0f4e1-8173-493f-b247-8067ed7ca718, transaction null, transactionDepth: 0] | requestId=8ee9a3e7-3d2a-4188-89d1-b2c350a9bb40,request=POST https://***.***.**/cloud/amfsecure,requestTime=1583321391907,remoteAddress=192.168.7.66:21215,userAg... (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 ...,accept=*/* method=rclService.updateResourcePoolSet

2020-03-04 14:29:52,638 | WARN     | pool-jetty-256669         | BatchTask                      | Error executing backend call. | requestId=8ee9a3e7-3d2a-4188-89d1-b2c350a9bb40,request=POST https://***.***.**/cloud/amfsecure,requestTime=1583321391907,remoteAddress=192.168.7.66:21215,userAg... (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 ...,accept=*/* method=rclService.updateResourcePoolSet

com.vmware.vcloud.api.presentation.service.BadRequestException: Unable to delete a resource pool with one or more VMs associated. Evacuate all the VMs before you delete the resource pool.

Checked records in select * from computevm database where computehub_id = 0x42697A0FDBCA497DBAFAC6FAE22E3FF4

There are no entries in the table, id belongs to the desired pool.

API call /api/admin/extension/resourcePool/38c2b6d9-fe0b-4e94-aff3-3f549c697fd7/vmList also returns the absence of a VM in the pool

How can I find out what interferes with the procedure?

0 Kudos
1 Reply
TobiBlu
Contributor
Contributor

Dear x129,

sadly i won't have a solution for you but i want attached my understandings of that case because i got the same error and resolved it but not my problem.

Can i assume that you moved all VMs from the old vSphere Cluster to a new one and want to remove this PvDC or its Ressource Pool?

In that case i found out, that if you moved the VMs with vCenter tools and not with vCloud tools you can "empty VM containers".

Or i mean i think this is the basic information of that error. When i move VMs Back to its original place and use "Migrate to.." on each VM in Ressource Pool View (Flash) i solved it.

After every VM was moved with "Migrate to..." i could detach the old Ressourcepool or delete the PvDC.

Sadly the prerequisites to click on 'Migrate to' are not public and i cannot do this.

I found a blog in the internet with the same error and you have to clean up the Database with the "stranded/stale" database entries of old or lost VMs.

After cleaning up this should work again.

At the moment i am searching the official documentation of "Merging PvDCs".

Not the vCloud documentation like "look here you can click on Merge".

Something more like "you have to connect the dvswitches, the datastores must be their, vxlan and vtep must be the same...." documentation....

Hoped my information helped you a bit or you can get more precised?

Regards

Tobias

0 Kudos