VMware NSX LocalManager stale principal identity is preventing GlobalManager from importing configs
search cancel

VMware NSX LocalManager stale principal identity is preventing GlobalManager from importing configs

book

Article ID: 375260

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

  • This is a VMware NSX Federation Environment. 

  • A site is added to the GM successfully, however, GM is showing error while checking the configuration of the LM and the configuration from this site was not imported to GM. 

  • In var/log/gmanager/gmanager.log

YYYY-MM-DDTHH:MM:SS  INFO http-nio-127.0.0.1-64440-exec-23 GmOnboardingConverter 86861 POLICY [nsx@6876 comp="global-manager" level="INFO" reqId="<Request-ID>" subcomp="global-manager" username="admin"] toConfigOnboardingStatusDto: ConfigOnboardingStatus : ConfigOnboardingStatus [siteOnboardingStatus=SiteOnboardingStatus [siteId=<LM-site>, status=BLOCKED_FEATURE_CHECK, siteBackupReference=, stateTransitions=[ALLOWED:1688771800668, BLOCKED_FEATURE_CHECK:1722522750507, {cnt=2}]], ignoreStatus=false, supportedFeatures=[GROUP, TIER0, CONNECTIVITY, SECURITY_POLICY, CONNECTIVITY, NETWORK, LOCATION, NETWORK, NETWORK, CONNECTIVITY, TIER1, NETWORK, NETWORK, CONNECTIVITY, CONNECTIVITY, CONNECTIVITY, SECURITY_POLICY], unsupportedFeatures=[PRINCIPAL_IDENTITY], importProgress=null, rollbackProgress=null, errors=[com.vmware.nsx.management.gm.onboarding.exceptions.ConfigOnboardingException: Unknown Principal identity PRINCIPAL_IDENTITY-<Principal-Identity-name> found on Local Manager at site <LM-site>. Please create this principal identity PRINCIPAL_IDENTITY-<Principal-Identity-name>  on GM to proceed with config onboarding.]]

  • Upon checking the principal identities from the LM site using API call:

GET https://<LM-site>/api/v1/trust-management/principal-identities/

  • There may or may not be any matching <Principal-Identity-name> found in the result. 

Environment

VMware NSX

Cause

If configurations in the Local Manager that are created by the Principal Identity user and the same Principal Identity user is not present in the Global Manager, import is blocked.

Resolution

Please refer to this KB for details about importing configuration from Local sites: Importing Configurations from Local Manager

  • In the scenario that the principal identity (PI) is still present in the Local Manager (LM) site, the same principle identity should be created in the Global Manager (GM).

    1. With admin privileges, log in to NSX Global Manager UI.

    2. Select System > User Management.

    3. To add a principal identity, select Add Principal Identity.

    4. Enter a name for the principal identity (same name from LM PI).

    5. Select a role (same role as LM PI).

    6. Enter a Node ID (same Node ID from LM PI).

    7. Enter a certificate in PEM format (export the PI certificate from the LM site and copy it into the Certificate PEM field).

      • In the NSX LM UI, navigate to System > Certificates

      • Search for the PI certificate in question

      • Click on the three dots next to the certificate and click Export

    8. Click Save.

    9. Retry LM import on GM Location Manager page > Actions > Edit Settings > Enter Password > Click Check Version Compatibility > Click Save

    10. If a different PI user shows up in the LM import error when reattempting import, repeat steps 2 through 9 on all additional PI users until import is successful

  • In the scenario that the principal identity is NOT present in the local site, a dummy principle identity can be created in Global Manager in order to bypass this error message.

    • POST https://<global-nsx-mgr>/api/v1/trust-management/token-principal-identities

      and put the following inside the body 
      {
          "name": "<principal-identity-name>",
          "node_id": "<random_number_here>",
          "is_protected": "true"
      }