vCenter goes down after a restart/reboot of services and does not come up.
In vmon logs (/var/log/vmware/vmon/), the below errors are observed:
YYYY-MM-DDTHH:MM Wa(03)+ host-xxxx "args": [
YYYY-MM-DDTHH:MM Wa(03)+ host-xxxx "Error 46 while deleting svcaccount \"vpxd-svc-acct-xxxxxxxxx\":\ndir-cli failed. Error 1326: Operation failed with error ERROR_LOGON_FAILURE (1326)\n"
YYYY-MM-DDTHH:MM Wa(03)+ host-xxxx ],
YYYY-MM-DDTHH:MM Wa(03)+ host-xxxx "localized": "An error occurred while invoking external command : 'Error 46 while deleting svcaccount \"vpxd-svc-acct-xxxxxxxxx\":\ndir-cli failed. Error 1326: Operation failed with error ERROR_LOGON_FAILURE (1326) \n'"
VMware Cloud Foundation 4.x
VMware Cloud Foundation 5.x
VMware vCenter Server 7.x
VMware vCenter Server 8.x
This issue occurs if the vCenter machine account has a password length of more than 32 characters.
Please take backups of all vCenters before proceeding with the following steps.
Power down all vCenters and take a snapshot of all vCenters in the ELM.
Power on the vCenters.
Expected Outcome:
Change the password policy via command line (To be done on all vCenters if in ELM):
a. Create the following files and save them:
mod_max.ldif
mod_min.ldif
b. Run the following commands to apply the changes:
c. Restart vmdird service:
d. Verify the changes: Check the values of the vmwPasswordMaxLength
and vmwPasswordMinLength
attributes using the following command:
Once the password policy has been updated on all vCenters, you can reset the passwords on the affected vCenters using the reset machine password script.
Restart all services on all vCenter servers after resetting the passwords. Restarting VMware vCenter Server Appliance services
Suggested password policy:
Keep the "Minimum length" below 20 characters.
OR
Limit the value of "Maximum length" in the password policy to 32 and below when the "Minimum length" is set to above 20.