VMware Cloud Foundation (VCF) environments may encounter issues where the SDDC Manager is unable to perform password rotations or remediations for NSX-T Manager accounts. This occurs when credentials expire or multiple failed login attempts trigger an automated lockout policy within the NSX Manager nodes.
The credentials were incorrect or the account specified has been locked./var/log/vmware/vcf/operationsmanager/operationsmanager.log file shows the following trace:
Caused by: org.springframework.web.client.HttpClientErrorException$Forbidden: 403 Forbidden: {"module_name":"common-services","error_message":"The credentials were incorrect or the account specified has been locked.","error_code":403}A synchronization failure or mismatch between credentials stored in the SDDC Manager database and the NSX appliance causes repeated authentication failures. These continuous failed attempts violate the NSX API security policy, leading to an automatic account lockout.
To resolve this issue, unlock the admin account on the NSX-T Manager nodes, synchronize the credentials between NSX-T and SDDC Manager, and restore the default security policies.
/usr/sbin/faillock --user admin --resetset auth-policy api lockout-period 0set auth-policy api lockout-reset-period 0Choose one of the following methods to synchronize the credentials.
passwd adminPrerequisite: Take a snapshot of the SDDC Manager virtual machine before proceeding with this method.
TOKEN=$(curl -d '{"username" : "<sso username>", "password" : "<sso password>"}' -H "Content-Type: application/json" -X POST http://127.0.0.1/v1/tokens | jq -r '.accessToken')curl -X GET 'localhost/v1/system/credentials?entityType=NSXT_MANAGER&credentialType=API' -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN"curl -X PUT 'localhost/v1/system/credentials/<id from above step>' -d '<new password>' -H "Content-type:application/json" -H "Authorization: Bearer $TOKEN" | json_ppSecurity > Password Management.set auth-policy api lockout-period 900set auth-policy api lockout-reset-period 900For more information on Authentication Policy Settings
Impact/Risks:
NOTE: The process involves minimal configuration changes on the NSX-T Managers.
/var/log/vmware/vcf/operationsmanager/operationsmanager.log