Managing Mixed Tenancy (VMApp & AllApp) on a Shared vCenter and Update an Expired VMApp vCenter Password
search cancel

Managing Mixed Tenancy (VMApp & AllApp) on a Shared vCenter and Update an Expired VMApp vCenter Password

book

Article ID: 460020

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

How to use Mixed Tenancy Mode to share vCenter between AllApps and VMApps and Update an Expired VMApp vCenter Password 

Environment

VCF Automation 9.1.1

VCF Automation 9.1.2

Resolution

This behaviour is fixed in VCFA 9.1.2

The below workaround is applicable on v9.1.1 only

Scenario A: You Registered "All Apps" First

If your vCenter and NSX components are already running an AllApp workload, follow one of these sequences depending on your current state:

Sequence 1: No Regions Created Yet

  1. vCenter and NSX components are already discovered  in AllApps.
  2. Enable Mixed Tenancy Mode under the Feature Flags section in the VCFA UI.
  3. Create your VMApp cloud account.
  4. Result: The operation succeeds automatically. The existing VC service account credentials in the Provider Portal are replaced with your user-provided account details. Both VMApp and AllApp operations will now function properly.

Sequence 2: If there are Regions and Quotas Already created 

  1. vCenter and NSX components are already discovered  in AllApps.
  2. Create Regions and Region Quotas on top of the AllApp VCs.
  3. Now if user want to create VMApp cloud account, then Enable Mixed Tenancy Mode under the Feature Flags section in the VCFA UI.
  4. Disable the VRA association before creating the VMApp cloud account by executing this API request:
    curl --request POST \
      --url https://<VCFA_HOSTNAME>/provisioning/config/toggles \
      --header 'authorization: Bearer <TOKEN>' \
      --header 'content-type: application/json' \
      --data '{"key": "enable.tm.registration", "value": "false"}'
  1. Create your VMApp cloud account.
  2. Result: The operation succeeds. The existing VC service account credentials in the Provider Portal will not be overwritten, allowing both applications to run simultaneously.

Scenario B: You Registered "VM Apps" First

If you began with a pure VMApp environment, use this sequence to safely introduce AllApp workloads:

  1. Register your VMApp Cloud Account using your user-supplied credentials. (This automatically flags the vCenter as a VMApp in the Provider Portal).
  2. Enable Mixed Tenancy Mode under the Feature Flags section in the VCFA UI. (Your user-supplied credentials will be preserved in AllApp Provider Portal and will not be overwritten).
  3. Result: Supervisors are discovered automatically. Your VC is now ready to handle both VMApp and AllApp workloads simultaneously (including region and quota management).

How to Update an Expired VMApp vCenter Password

When rotating or updating an expired password on a shared vCenter, you must perform updates in both portal environments using the following steps:

Step 1: Update the Password in the VMApp VC

  1. Turn off the VRA association configuration via the API:
    curl --request POST \
      --url https://<VCFA_HOSTNAME>/provisioning/config/toggles \
      --header 'authorization: Bearer <TOKEN>' \
      --header 'content-type: application/json' \
      --data '{"key": "enable.tm.registration", "value": "false"}'
  2. Proceed to update the password within your VMApp VC configuration.

Step 2: Update the Password in the AllApp VC (Provider Portal)

  1. Retrieve Current Configuration: Fetch the existing settings by filtering for your specific vCenter name:
GET https://<VCFA_HOSTNAME>/1.0.0/virtualCenters/?filter=(name==<vcName>)
  1. Apply the Update: Execute a PUT request to /1.0.0/virtualCenters/{vcUrn} using the exact URL provided in the previous GET response. If regions already exist on top of this VC, you must set "isDedicatedForClassicTenants": false in the payload:
    {
      "name": "<vcName>",
      "username": "<username>",
      "password": "<new_password>",
      "url": "<exact_url_from_get_response>",
      "isDedicatedForClassicTenants": false
    }
Adding Subsequent Cloud Accounts to the Same vCenter

If you need to add an additional cloud account to existing vCenter that is already running in mixed mode, follow this process every time:

Log into the VCF Automation VM Apps Organization and retrieve a valid Bearer authorization token.
  • Disable the Tenant Manager API registration toggle (if not done already)
curl --request POST \
--url https://<VCFA_HOSTNAME>/provisioning/config/toggles \
--header 'authorization: Bearer <TOKEN>' \
--header 'content-type: application/json' \
--data '{"key": "enable.tm.registration", "value": "false"}'
  • Save your vCenter Cloud Account configuration in the VCF Automation UI.
  • Result: The new VM Apps cloud account will be added successfully without conflict
 
How To: Customer Use Cases - Mixed Tenancy Mode in 9.1.2
Onboarding Scenarios:
 
Scenario A: You Registered "All Apps" First
If your vCenter and NSX components are already running an AllApp workload, follow one of these sequences depending on your current state:
No Regions Created Yet /  Regions and Quotas Already created 
  • vCenter and NSX components are already discovered  in AllApps, and the username will be Service Accounts with format <svc-vcfa-****>
  • Regions and Quotas are created on top of the All Apps.
  • Enable Mixed Tenancy Mode under the Feature Flags section in the VCFA UI.
  • Create your VMApp cloud account.
  • Result: The operation succeeds automatically. The existing VC service account credentials in the Provider Portal WILL NOT be replaced with user-provided account details while registering VMApp.
  • Both VMApp and AllApp operations will now function properly.
If you didn't enable Mixed Tenancy Mode, then the existing service account credentials in the Provider Portal will be replaced with user-provided account details. Then if you enable Mixed Tenancy Mode, the credentials will be replaced with service Accounts again. Always Enable Mixed Tenancy Mode, before trying to run both VMApp and AllApps.
 
Scenario B: You Registered "VM Apps" First
  • Register your VMApp Cloud Account using your user-supplied credentials. This automatically flags the vCenter as a VMApp in the Provider Portal registered using the user account credentials.
  • Enable Mixed Tenancy Mode under the Feature Flags section in the VCFA UI.
  • Your user supplied credentials in Provider Portal for the VC/NSX will be replaced with service Accounts.
  • Result: Supervisors are discovered automatically. Your VC is now ready to handle both VMApp and AllApp workloads simultaneously.
Steps to update an Expired VMApp vCenter Password:
  • To update the password in All App Provider portal, then we can invoke "Rotate Service Accounts" under VCF Instances, which rotates the credentials.
  • To update password of VC/NSX in VMApp Tenant Portal, we can update the password in the Tenant Portal UI.