'stretched cluster deployment' task on the SDDC Manager fails at subtask 'Update vSAN Storage Profile' with the following error:Failed to update and re-apply vSAN storage policy VsanDefaultProfileMessage: Failed to update and re-apply vSAN storage policy VsanDefaultProfileRemediation Message:Reference Token: ######Cause: (vim.fault.InvalidLogin) { faultCause = null, faultMessage = null } Cannotcomplete login due to an incorrect user name or password.
/var/log/vmware/vcf/domainmanager/domainmanager.log:
YYYY-MM-DDTHH:MM:SS ERROR [vcf_dm,###########,####] [c.v.e.s.c.c.v.vsphere.VsphereClient,dm-exec-13] Failed to connect to https://<vCenter_FQDN>:443/sdk as svc-<SDDC_Manager>-<vCenter>@vsphere.localjava.util.concurrent.ExecutionException: (vim.fault.InvalidLogin) { faultCause = null, faultMessage = null}Caused by: com.vmware.vim.binding.vim.fault.InvalidLogin: Cannot complete login due to an incorrect user name or password.
'stretched cluster deployment' task was started and then triggered again later, with the password for the vCenter service account (svc-<SDDC_Manager>-<vCenter>@vsphere.local) being rotated in the interval between the two executions.VMware Cloud Foundation 9.0.x
The failure occurs because the vCenter service account password was rotated after the stretched cluster deployment task had already been initiated.
When the task is later resumed, the active workflow continues to use the previously cached credentials, which are no longer valid, resulting in an authentication failure.
Fetch the latest valid password stored in the SDDC Manager database and inject it into the parameters of the failed workflow by following the steps below:
svc-<SDDC_Manager>-<vCenter>@vsphere.local. Refer Retrieve the service accounts credentials from SDDC Manager