Error "No Provider VDC found" thown when editing Placement Policies in Cloud Director
search cancel

Error "No Provider VDC found" thown when editing Placement Policies in Cloud Director

book

Article ID: 377800

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • trying to edit and update existing global placement policies we get error "No Provider VDC found (com.vmware.vcloud.entity.providervdc:xxxxxxx-xxx-xxx-xxx-xxxxxxxx"

Environment

VMware Cloud Director 10.5.1.1

Cause

This issue is caused from a Provider VDC that no longer exist and still referenced in the Placement Policy that require to be edited.

Resolution

This issue can be resolved via api-explorer.

Here the steps to follow:

1. From the Cloud Director UI, select the Placement Policy and gather the vcdComputePolicyId from url

2. Access the api-explorer : https://<vcd_fqdn>/api-explorer/provider and search for vcdComputePolicies2

3. Select the option GET /2.0.0.0/vcdComputePolicies/vcdComputePolicyId to gather the specified organization VDC compute policy

4. Copy the content of the output from the GET on step 3 in a text file

5. From the output correct the prov_id as seen on the error message, with the correct prov_id

6.  Select the option PUT /2.0.0.0/vcdComputePolicies/vcdComputePolicyId to update the specified organization VDC compute policy

7. Copy the modified output as per step 5 and paste it in the PUT api and execute it.