GET https://{{MPIP}}/api/v1/fabric/compute-managers/<CM-id>
GET https://{{MPIP}}/api/v1/fabric/compute-managers/<CM-id>/status
curl -k -i -X POST -H 'X-NSX-Username:admin' http://localhost:7443/cm-inventory/api/v1/fabric/compute-managers/compute-manager-UUID>?action=get-vapi-session-id
HTTP/1.1 200
...
{
... --->>> Missing session_id here, see below workaround for correct response.
}
2022-05-09T17:34:12.482Z ERROR http-nio-127.0.0.1-7443-exec-3 LcmRestClient 8736 FABRIC [nsx@6876 comp="nsx-manager" errorCode="MP31815" level="ERROR" reqId="22d477fb-####-####-####-1ed73018967e" subcomp="cm-inventory" username="admin"] Error in rest call url= //rest/com/vmware/cis/session , method= POST , response= {"type":"com.vmware.vapi.std.errors.unauthenticated","value":{"error_type":"UNAUTHENTICATED","messages":
...
2022-05-09T17:34:12.483Z WARN http-nio-127.0.0.1-7443-exec-3 VcConnection 8736 SYSTEM [nsx@6876 comp="nsx-manager" level="WARNING" reqId="22d477fb-####-####-####-1ed73018967e" subcomp="cm-inventory" username="admin"] Error occurred while getting vapi session Id for cm <compute-manager>
com.vmware.nsx.management.lcm.common.exception.LcmRestException: org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized: [{"type":"com.vmware.vapi.std.errors.unauthenticated","value":{"error_type":"UNAUTHENTICATED","messages":[{"args":[],"default_message":"Authentication required.","id":"com.vmware.vapi.endpoint.method.a... (1036 bytes)]
2022-04-13T15:27:03.588Z INFO ActivityWorkerPool-1-17 TransportNodeCollectionVlcmActivity 4039 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] TNC realization failed at cluster level API call with error null
2022-04-13T15:27:03.595Z INFO ActivityWorkerPool-1-17 TransportNodeDesiredStateErrorServiceImpl 4039 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] Updated TransportNodeDesiredStateError object [TransportNodeDesiredStateError [id =TransportNodeDesiredStateError/<cm uuid>:domain-c118:VLCM_ERROR_AT_CLUSTER_LEVEL,computeCollectionId = <cm uuid>:domain-c118,desiredStateErrorMessage = 26195: Setting NSX depot(s) on Compute Manager: <cm uuid> failed with error: null. Retry Transport Node Collection at cluster.]]
The service account automatically created in vCenter when registering the compute manager with NSX-T has expired.
Currently there is no automatic mechanism to renew this account.
This issue is resolved in NSX-T 3.2.2, see Download Broadcom products and software
Workaround:
This will re-create the service account, and trigger a Full inventory sync from vCenter.
Please note, this Sync can last up to an hour, depending on the size of your environment.
Note: The password policy maximum lifetime in vCenter can be edited manually under Administration - Configuration - Local Accounts - Edit.
After following the resolution steps you can check again the API to return the session ID. It will look like the sample below.
curl -k -i -X POST -H 'X-NSX-Username:admin' http://localhost:7443/cm-inventory/api/v1/fabric/compute-managers/<cm uuid>?action=get-vapi-session-id
HTTP/1.1 200
...
{
"session_id" : "################94540af5826208f06",
"thumbprint" : "A6:40:##:##:##:##:##:##:##:##:14:87:5D:38:Bf:84:D0:FD:07:7A:A9:45:01:88:66:F8:##:##:##:##:##:##",
"credential_type" : "SessionLoginCredential"
}
If the above steps do not resolve the error, please restart proton service on all the NSX Managers.
Restarting proton on all the managers will clear out the cache and NSX Manager will be forced to make a new API Call for vAPI Token.
Repeat the following steps for each NSX Manager:
Log in to the NSX-T manager as admin and check the cluster status is healthy:
get cluster status
Then log in to the NSX-T Manager as root, type st en and enter the root password.
Run the command to restart the proton service:
Wait for proton service to come up check status using:
Wait for upgrade-coordinator service to come up check status using:
Check that NSX Cluster is in STABLE state:
After restarting the services on all three NSX-T Managers, click the RESOLVE button on the host which is showing the "NSX Install Failed" error in System - Fabric - Nodes - Host Transport Nodes.