Error: "Resource pool inventory is missing entry with moref" after disabling DRS on a Cloud Director Managed ESXi Cluster
search cancel

Error: "Resource pool inventory is missing entry with moref" after disabling DRS on a Cloud Director Managed ESXi Cluster

book

Article ID: 341683

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • User disabled vSphere DRS on a VMware Cloud Director(VCD) managed ESXi Cluster
  • VCD cannot provision or carry out any operations as the Resource Pools no longer exist in vCenter Server.
  • When performing UI actions you see an Internal Server Error and the following error is present in the Task Details:

    Caused by: com.vmware.vcloud.fabric.compute.ResourcePoolNotFoundException

Environment

VMware Cloud Director 10.x

Cause

VCD uses Resource Pools for its Provider, Organization and System resource. Disabling vSphere DRS in vCenter removes all of the resource pools backing the VCD there by causing a variety of issues. 

Resolution

To resolve the issue, there are a few options: 

Option 1) Restore vCenter/VCD/NSX from backup to a time before the DRS was disabled.

Option 2) Restore vCenter Server from backup to an ISOLATED network and export resource pool tree.

a) Restore vCenter Server from backup to an ISOLATED network.

b) Bring vCenter online in that location and then Login to the UI

c) To export the resource pool tree from the compute cluster, navigate to the Configure tab -> vSphere DRS.

d) Click the edit button and then toggle 'vSphere DRS' slider to disabled.

e) A yellow banner appears on screen. Click the link "save snapshot'. This saves the snapshot tree to your desktop as a .snapshot file.

f) Take the .snapshot file and copy it over to the other vCenter that you want to fix.

g) Import the .snapshot file. To do this right-click on the cluster and select "Restore Resource Pool Tree"

Option 3) Recreate resource pools and place the VM in their respective resource pools.

a) SSH to primary VCD cell as root. 

b) To fix the mismatch, run the following command as per the documentation.

/opt/vmware/vcloud-director/bin//cell-management-tool detect-rp-mismatches --fix-mismatch-with-vc

The prompt will assist with the steps to be carried out.

c) From the Cloud Director Provider portal, reconnect the vCenter as per the steps in the documentation.

d) Verify tasks such as Create vApps, power on/off VMs, Create OrgVDC, etc.are working as expected.

Additional Information

Note: It is a part of the VMware Support Terms and Conditions that the customer has relevant backups in place. For more information, see Customer Responsibilities section in VMware, Inc. Support and Subscription Services "SnS" Terms and Conditions.