You may encounter an issue where attempting to rotate NSX Manager passwords from the SDDC Manager interface is unsuccessful. In this scenario, you will typically observe the following symptoms:
NSX Managers appear as disconnected from the SDDC Manager.
You are unable to change the passwords for the admin and audit accounts through the standard interface.
You still have access to the root password and can successfully log in to the NSX-T Manager using VCF SSO.
VMware Cloud Foundation (VCF) 9.x
VMware NSX
This issue occurs because the passwords for the NSX accounts (specifically the admin account) have expired. Communication between the SDDC Manager and NSX relies on the admin account for API interactions. Because the credentials have expired, API authentication fails, resulting in the disconnected state and preventing the SDDC Manager from automatically rotating the passwords.
Documented process for resetting of passwords needs to be followed as per Resetting the Passwords of an Appliance
To resolve this issue, you must manually reset the passwords from the backend OS using the root account.
NOTE: You must know the current root password for the NSX Manager.
1.Log in to the NSX VIP using SSH as the root user. (Has to be VIP for it to propagate changes properly)
2.Stop the NSX Manager API service
Run the following command to stop the NSX Manager API service:
/etc/init.d/nsx-mp-api-server stop
2. the accounts have been locked out due to repeated failed API attempts from the SDDC Manager, clear the counters for both the admin and audit users:
1.faillock --user admin --reset2. faillock --user audit --reset
3.Reset the admin password as you would on any standard Linux system as root:
root@nsx-mgr:/# passwd admin
or as admin run the below command to change the password: (For Guest Users and additionally created users you need to use passwd command as the below command will not work).
nsx-mgr> set user admin password
4.Create the reset_cluster_credentials file to trigger the necessary configuration update:
touch /var/vmware/nsx/reset_cluster_credentials
5.Restart the NSX Manager API service to apply the changes:
/etc/init.d/nsx-mp-api-server start
6. Attempt to log in to the NSX Manager UI again. The login should now be successful.
7. Remediate the associated user on SDDC
> Navigate back to Password Management in SDDC Manager.
> Locate the admin and audit accounts that are showing as "Disconnected".
>Click the three dots next to each and select Remediate.
>Enter the new passwords you just established via the OS shell.
After completing these steps, attempt to log in to the NSX Manager UI again. The login should now be successful.
If they don't know the root password, they can reset it via the GRUB:
NSX@VM!WaR10linux and add systemd.wants=PasswordRecovery.service to the end of the line.Ctrl-X to boot.Additional KB reference: https://knowledge.broadcom.com/external/article/314637/root-user-account-is-disconnected-in-sdd.html