Error when Edit Limit for Storage Policy Either you need some or all of the following rights [PVDC_STORAGE_CLASS_LIMITED_VIEW] to perform operations [PROVIDER_SUB_PROVIDER_STORAGE_POLICY_VIEW] for xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx or the target entity
search cancel

Error when Edit Limit for Storage Policy Either you need some or all of the following rights [PVDC_STORAGE_CLASS_LIMITED_VIEW] to perform operations [PROVIDER_SUB_PROVIDER_STORAGE_POLICY_VIEW] for xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx or the target entity

book

Article ID: 392864

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Error seen in the UI when performing the following - Provider Portal -> Resources -> Cloud Resources -> Organization VDCs -> Select OrgVDC name to open -> Storage Policies -> Select Storage Policy to open -> Click Edit Limit.

Error - Either you need some or all of the following rights [PVDC_STORAGE_CLASS_LIMITED_VIEW] to perform operations [PROVIDER_SUB_PROVIDER_STORAGE_POLICY_VIEW] for xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx or the target entity is invalid.

Total Storage Policy Consumption shows:

Available : NaN GB

Allocated: -(null GB of null GB)

Used: -(null GB of null GB)

Environment

Cloud Director 10.6.x

Cause

The tenant is showing up as a 'Sub-Provider'.

Resolution

To resolve this the following Right needs to be removed.

1. Select the "Default Sub-Provider Entitlement" Rights Bundle.
2. Disable the right "Administer and traverse into other organizations".
3. Disable "Publish to Tenants", publish the "Default Sub-Provider Entitlement" Rights Bundle.
4. Check if any other Rights Bundle which is published to the specific tenant has the similar rights. If there is any Generic Rights Bundle or Custom Rights Bundle which has the right "Administer and traverse into other organizations", please disable and publish to tenant.

Alternatively the following workarounds are available: 

1. Using the API

Check the current storage limit and update the same for org VDC using the REST API call :

GET:
Request URL:
https://<<vdc-ip>>/api/admin/vdc/<vdc-id>


Response will have the vdcStorageProfile id as mentioned below:
...
...
      "href" : "https://<<vdc-ip>>/api/admin/vdcStorageProfile/<<profile-id>>",
      "id" : "urn:vcloud:vdcstorageProfile:<<profile-id>>",
      "type" : "application/vnd.vmware.admin.vdcStorageProfile+xml",

GET:
https://<<vdc-ip>>/api/admin/vdcStorageProfile/<<profile-id>>

Response:
...

"limit" : << value in MB >>


PUT:
https://<<vdc-ip>>/api/admin/vdcStorageProfile/d91525ed-2dfe-4a04-a968-4a5472c2d129
content-type: application/*+json

Request Payload:
...

"limit" : << new value in MB >>

2. Create Organization as not Sub Provider.