In VMware HCX 9.1, the periodic VcenterSecretRotationJob may fail every cycle when attempting to rotate the connection secret via the vCenter Server svcaccountmgmt API. While standard operations such as inventory sync and topology polling remain healthy, the logs show continuous rotation failures.
{"statusCode":500,"reason":"Internal Server Error", "result":{"error_type":"ERROR","messages":[{"args":["Internal Server Error, VMware directory error[87]"], "id":"com.vmware.vcenter.svcaccountmgmt.error"}]}}VCF 9.1.0.x
VMware HCX 9.1.0.x
Automatic password rotation for service accounts was introduced in HCX 9.1. The svcaccountmgmt API in vCenter is designed to operate on specific Service Account objects. It does not support secret rotation for named SSO users like [email protected].
When HCX attempts to rotate the password for a named SSO user, the vCenter directory (vmdir) returns error[87], which corresponds to a Win32 ERROR_INVALID_PARAMETER. This occurs because the account name is not a valid target for the service account management API. The negative expiration timestamp in the logs is a side effect of the API returning a null/epoch value for human-facing accounts.
This issue is resolved in VMware HCX 9.1.1. In this version, the password rotation logic is updated to skip rotation if the vCenter account is a named SSO user or if the password policy is set to "Never Expire."
Workaround: If an upgrade is not immediately possible, you can reduce the frequency of the failure logs by increasing the rotation job interval:
/opt/vmware/deploy/config/SecretRotateService.zqlsudo systemctl restart app-engine