nsxt-alb account becomes locked on the Avi Load Balancer after upgrading VCF from 9.0.x or 9.1.0 to 9.1.1.nsxapi.log) show repeated HTTP 401 {"error":"Invalid credentials"} failures when attempting to authenticate to the Avi Load Balancer controller.{"error":"Account locked! Try again in 14 minute(s) and 30 second(s)."} as the Avi brute-force lockout policy is triggered.nsxt-alb.There is currently no resolution available for VCF 9.x. VMware is aware of the behavior and plans to address it in a future software update.
Workaround:
Please Refer - Enable "Allow Basic Authentication" using CLI / API
Generate a new token: Send a POST request to https://<AVI-IP>/api/authtoken. In the request body, include the username associated with your Enforcement Point and set the hours to 720.
Sample request snippet:
curl -k -X POST "https://<AVI_CONTROLLER_IP>/api/authtoken" \
-H "Content-Type: application/json" \
-u "admin:<ADMIN_PASSWORD>" \
-d '{"username": "admin", "hours": "720"}'Capture the credentials: From the Avi API response, copy the generated token string (this will act as your new password). Note the expires_at value, as you will need it to update the connection metadata.
Sample response for the above POST request
{
"token": "{NEW_TOKEN_STRING}",
"expires_at": "YYYY-MM-DDTHH:MM:SS.000000Z",
"uuid": "####",
"single_use": false
}Save the token value for the PATCH request described in Step 2. Optionally, save the expires_at value to populate the connection_info.expires_at field in the PATCH body.
Retrieve the current configuration: Send a GET request to /policy/api/v1/infra/sites/default/enforcement-points/alb-endpoint. Record the _revision number and the existing connection_info block from the response payload.
curl -k -u 'admin' \
--location --request GET \
'https://<nsx_mgr_ip>/policy/api/v1/infra/sites/default/enforcement-points/alb-endpoint'Update the Enforcement Point: Send a PATCH request to the same NSX Policy URL used in step 3. In the payload, include the recorded _revision number, set connection_info.password to the new token string, and update the expires_at field.
curl -k -X PATCH "https://<nsx_mgr_ip>/policy/api/v1/infra/sites/default/enforcement-points/alb-endpoint" \
-H "Content-Type: application/json" \
-u "admin" \
-d '{
"_revision": <Incremented-number-from-previous-response>,
"connection_info": {
"resource_type": "AviConnectionInfo",
"enforcement_point_address": "<AVI_IP_OR_VIP>",
"username": "admin",
"password": "${NEW_TOKEN_STRING}",
"expires_at": "${EXPIRES_AT}",
"tenant": "admin"
}
}'Note: Update the _revision field by incrementing the value retrieved from the Step 4 GET response by +1. Additionally, replace enforcement_point_address and all other mandatory fields with the exact values from that same response.
Confirm the fix: Send a final GET request to the Enforcement Point. Verify that the _revision number has incremented, the user lockout is cleared from Avi Load Balancer Events, and the ALB integration workflow is functioning properly without crashing.
kubectl delete pod `kubectl get pod -n vmware-system-nsx | grep ncp | awk '{print $1}'` -n vmware-system-nsx
kubectl delete pod `kubectl get pod -n avi-system | grep ako | awk '{print $1}'` -n avi-systemNo-Lockout-User-Account-Profile cannot be assigned on Avi while that policy is active. The Ops-applied password policy must be reverted first for the lockout-profile change to take effect on Avi.