NSX Manager does not trust the Avi Controller certificate chain during onboarding. As a result:
nsxt-alb, nsxt-ako).1. Check the current ALB endpoint status:
curl -k -u 'admin:<password>' --location --request GET \
https://<nsx-manager-ip>/policy/api/v1/infra/sites/default/enforcement-points/alb-endpointIf the response shows "status": "DEACTIVATE_API", the endpoint must be deleted before re-onboarding.
2. Check NSX Manager logs at /var/log/proton/nsxapi.log. The following entry confirms a certificate trust issue:
REST API failed: https://<Avi Controller IP>/api/role
PKIX path building failed: java.security.cert.CertPathBuilderException:
Unable to find certificate chain.
SSLHandshakeException: PKIX path building failed.DEACTIVATE_API)curl -k -X DELETE \
https://<nsx-mgr-ip>/policy/api/v1/infra/sites/default/enforcement-points/alb-endpoint \
-u admin:'<password>'If the status is not DEACTIVATE_API, skip to Step 2.
curl --request POST \
--url 'https://<nsx-mgr-ip>/policy/api/v1/trust-management/certificates/<cert_name>?action=import_trusted_ca' \ --header 'Content-Type: application/json' \ --data '{ "pem_encoded": "-----BEGIN CERTIFICATE-----\n<root_cert_content>\n-----END CERTIFICATE-----" }'Where:
<cert_name> — desired certificate object name in NSX<root_cert> — PEM-encoded Avi root CA contentOn the Avi Controller, delete the following users from the (Administration>Users)
(created by the previous failed onboarding attempt):
nsxt-albnsxt-akocurl -k -u admin --location --request PUT \
'https://<nsx_mgr_ip>/policy/api/v1/infra/alb-onboarding-workflow' \
--header 'X-Allow-Overwrite: True' \
--header 'Content-Type: application/json' \
--data-raw '{
"owned_by": "LCM",
"cluster_ip": "<cluster_ip>",
"infra_admin_username": "<username>",
"infra_admin_password": "<password>",
"dns_servers": ["<dns-server-ip>"],
"ntp_servers": ["<ntp-server-ip>"],
"default_cert": false
}'Confirm the registration status:
curl -k -u 'admin:<nsxpassword>' --location --request GET \
https://<nsx-mgr-ip>/policy/api/v1/infra/sites/default/enforcement-points/alb-endpoint
A successful onboarding returns:
status: DEACTIVATE_PROVIDERThe same state can also be verified from the NSX App Switcher UI. This confirms the onboarding workflow has completed and the Avi provider is registered with NSX Manager.