vApp Templates Migrations Result in an error when logged in as a System Administrator in VMware Cloud Director Availability 4.x.
search cancel

vApp Templates Migrations Result in an error when logged in as a System Administrator in VMware Cloud Director Availability 4.x.

book

Article ID: 369396

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

vApp templates migrations for over 25 organizations result in an error "Cannot read properties of undefined (reading ‘id’)", when logged in as a System Administrator in VMware Cloud Director Availability.

When we login using the organization administrator we don't need to list orgs because there is only one (Tenants cannot browse ORGs, they only see their own ORG) but when we are logged in using the system admin credentials we need to list them all.

Environment

VMware vCloud Director Availability 4.6.

Cause

This issue occurs when the VMware Cloud Director environment has more than 25 organizations and we log in as a provider / System administrator in VMware Cloud Director Availability, then if the vApp template we are trying to replicate is listed on a position over 25, you see the error "Cannot read properties of undefined (reading ‘id’)".

Resolution

1. Start with exploring the HAR file from the browser Dev mode. For more information refer to this article:

2. In the vCloud Director HAR logs you see the below entries:

  • In the vCloud Director HAR logs we see the list of total ORGs and the limit of the browsable Orgs using System Admin credentials. We can see in the output below that the LIMIT is 25 Orgs only.
   {
            "id": "1111111111-2222-3333-4444-555555555555",
            "name": "#############",
            "displayName": "############",
            "enabled": true
        },
        {
            "id": "1111111111-2222-3333-4444-555555555555",
            "name": "#########",
            "displayName": "#########",
            "enabled": true
        },
        {
            "id": "1111111111-2222-3333-4444-555555555555",
            "name": "#############",
            "displayName": "#############",
            "enabled": true
        },
        {
            "id": "1111111111-2222-3333-4444-555555555555",
            "name": "IPLAB-####-IL-Arc-AVS",
            "displayName": "IPLAB-####-IL-Arc-###",
            "enabled": true
        }
    ], 
"total": 37,
    "offset": 0,
    "limit": 25

Workaround:

  • Rename the organization so it is in a position no greater than 25 when all organizations are listed.
  • Alternatively, upgrade to VMware Cloud Director Availability 4.7.

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Note: This issue is a known issue affecting VMware vCloud Director Availability 4.6 and the versions below.

Additional Information

Impact/Risks:
WARNING: HAR files can capture and contain sensitive data, for example user access tokens or passwords.

Please remove any sensitive information from the HAR file with a text editor before sharing it with Broadcom if required.