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.
var/log/gmanager/gmanager.logYYYY-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.]]
GET https://<LM-site>/api/v1/trust-management/principal-identities/
<Principal-Identity-name> found in the result. VMware NSX
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.
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).
With admin privileges, log in to NSX Global Manager UI.
Select System > User Management.
To add a principal identity, select Add Principal Identity.
Enter a name for the principal identity (same name from LM PI).
Select a role (same role as LM PI).
Enter a Node ID (same Node ID from LM PI).
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
Click Save.
Retry LM import on GM Location Manager page > Actions > Edit Settings > Enter Password > Click Check Version Compatibility > Click Save
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"}