Incorrect PSC mapping for VI domains deployed during Vmware Cloud Foundation 3.x-4.x in Place Migration
search cancel

Incorrect PSC mapping for VI domains deployed during Vmware Cloud Foundation 3.x-4.x in Place Migration

book

Article ID: 313445

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

Symptoms:
  • No ERROR message will pop up as part of Workload Domain deployment.
  • Issue will happen during some DayN operations run on the domain.
  • One identified till now is edge cluster deployment. You will not be able to successfully deploy edge clusters in the domain due to incorrect PSC mapping.

Error similar to below can be seen in domain manager logs :
```
Caused by: java.lang.IllegalArgumentException: No credentials found for vcenter with ip: sfo-w01-vc-4x.sfo.rainpole.io
        at com.vmware.vcf.nsxtedgeclustermanager.fsm.actions.FetchCredentialsFromInventoryAction.getVcRemoteEndpoint(FetchCredentialsFromInventoryAction.java:229)
        at com.vmware.vcf.nsxtedgeclustermanager.fsm.actions.FetchCredentialsFromInventoryAction.getClusterRemoteEndpoints(FetchCredentialsFromInventoryAction.java:251)
```
Log location - `/var/log/vmware/vcf/domainmanager/domainmanager.log`


Environment

VMware Cloud Foundation 4.3.1.0
VMware Cloud Foundation 4.4

Cause

As part of migration, VCF is not decommissioning the PSCs till all the Workload Domains have been migrated. Now, if during migration a Workload Domain is created, as part of creation process, the bug in the code incorrectly picks up old PSCs instead from the migrated Management domain.

Resolution

Currently there is no resolution to the issue.



Workaround:

To workaround the issue you need to run the following script after deployment of every new Workload Domain:

The script will be present at:
```
/apps/migrationcoordinator/packages/migration_coordinator/migration-workarounds/UpdateNewViPSCMapping.py
```
To Run -
```

  1. SSH to the SDDC Manager Virtual Machine.

  2. cd /apps/migrationcoordinator/packages/migration_coordinator/migration-workarounds/

  3. PYTHONPATH=/apps/migrationcoordinator/packages/ python3  UpdateNewViPSCMapping.py -d '{new_domain_id}'

```
Replace {new_domain_id} with the id of the domain which was successfully deployed.

Example:

PYTHONPATH=/apps/migrationcoordinator/packages/ python3  UpdateNewViPSCMapping.py -d '695ed090-a235-4c35-b2ed-11571e0989f1'