Remediating Password of a Stubborn Edge Node in VCF 5.2

Recently, while working in my lab, I encountered an issue in which an edge node’s password had fallen out of sync with SDDC Manager, causing all attempts to update or remediate it to fail. The most common causes of a failed password rotation are the following:

  • SSH connectivity to the edge appliance is blocked.
  • The account is locked.
  • The password has already expired (so SDDC Manager can’t authenticate to change it).
  • The edge node’s hostname/FQDN case doesn’t match what’s stored in the SDDC Manager database.

Upon logging into the edge node, I confirmed that the password had not expired and that the edge node’s FQDN matched the value stored in the database, indicating that the underlying issue was simply a password out of sync with SDDC Manager. Every attempt to update or remediate the password continued to fail at the pre-validation stage.

I checked the API that the SDDC Manager was executing in the backend for the password update operation, and the API response reported that the edge node was not in the active state.

The real clue about the issue was found by checking the lcm-debug.log file on the SDDC manager. Although the actual error shown in the log file was misleading. There were multiple occurrences of the message “The credentials were incorrect or the account specified has been locked“. But I knew this was not the issue.

On reading the log file carefully, I saw another message, “Fetching the history item for UUID 61030acd-fc06-444b-a9d7-ad642df1f7ea” and then I understood what was happening. The SDDC Manager maintains the history of passwords, and you can’t use the last 5 passwords when remediating a password.

The log snippet is provided here for reference

In a production environment, the ideal solution is to manually set a new password on edge nodes and remediate the edge nodes using the new password. For a lab environment, you can execute the following one-liner to clear the password history

After applying the above workaround, the edge password remediation worked, and the edge node status also reported Active.

Leave a Reply