Assigning a replication policy to an organization fails or replaces previous assignments in Cloud Director Availability 4.x
search cancel

Assigning a replication policy to an organization fails or replaces previous assignments in Cloud Director Availability 4.x

book

Article ID: 315091

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • When assigning one or more organizations to a replication policy in Cloud Director Availability, no changes are applied and you see the error:
Cannot read property 'id' of undefined.
  • When assigning one or more organizations to a replication policy, the new organizations are applied to the policy, but one or more previously assigned organizations have been removed.
  • This issue occurs when you either filter the the organization list to reduce the number of displayed organizations or the page navigation was used to move another page in the list of organizations.


Environment

VMware Cloud Director Availability 4.x

Cause

This issue occurs because of a known issue where the Assign Policy dialog box fails to retain the IDs of selected organizations when filtering by organization name or navigating between pages.

Resolution

This is a known issue affecting Cloud Director Availability 4.x.
Currently, there is no resolution.

Workaround:
To work around this issue, perform one of the following options:

Option 1: Select additional organizations in the list

If there are less than 20 organizations listed in the Assign Policy dialog box or all required organizations appear in the first page of the list:
  1. Select organizations without using the filter or paging mechanisms.
  2. Click Assign.

Option 2: Expand the number of items displayed

If there are more than 20 organizations listed in the Assign Policy dialog box and the desired organizations are not visible in the first page displayed:
  1. At the bottom of the Assign Policy dialog box, locate the Items per page selection.
  2. Increase the number of items to display so all organizations that should be assigned to the policy are visible.
  3. Select the additional organizations.
  4. Confirm that all required organizations are selected.
  5. Click Assign.

Option 3: Use the Assign option to select the policy instead of the organization

In the Policies view, locate the organization first and assign the new policy:
  1. In the Policies view, select the current policy for the organization.
  2. In the list of organizations populated at the bottom of the page, select the organization.
  3. Click the Assign button above the table containing the organizations.
  4. Select the new policy.
  5. Select Assign.

Option 4: Use the OpenAPI Client

If Option 3 is not preferred, but there are more than 100 organizations listed in the Assign Policy dialog box and the required organizations cannot be listed in the initial page, the OpenAPI Client can be used to complete the policy assignment:
  1. Log into the Provider Portal as root or as a user with administrative rights.
  2. In the left pane, select OpenAPI Client.
  3. In the list of API commands, select: /policies > GET /.
  4. Enter the site name in the site textbox.
  5. Click the Get button.
  6. In the results, locate the policy to be assigned and copy the id value.
  7. In the list of API commands, select: /policies > PATCH /{id}/orgs/{org}.
  8. Paste the policy ID copied in step 6 into the policyId textbox.
  9. Enter the Cloud Director organization short name for the organization into the org textbox.
  10. Click the Patch button.