Platform Health Check Error [platform-vmsp-platform-validate-template-vsphere-resources : unable to create vSphere client:ServerFaultCode: Cannot complete login due to an incorrect username or password.] [VCFMS-HEALTH-002]
Platform Health Check Error [platform-vmsp-platform-validate-resources-vsphere-resources : unable to create vSphere client:ServerFaultCode: Cannot complete login due to an incorrect username or password.] [VCFMS-HEALTH-002]
Platform Health Check Error [platform-vmsp-platform-platform-snapshots-snapshot : unable to create vSphere client:ServerFaultCode: Cannot complete login due to an incorrect username or password.] [VCFMS-HEALTH-002]
UNAUTHENTICATED and ServerFaultCode failures. vmware-system-user account and then switch to the root user via sudo -i.
SC="https://localhost:30006/status?selector=component=vsp,group%20in%20(vCenter,vsphere,snapshots)"curl -ks "$SC" | jq 'to_entries[] | {check: .key, ok: .value.ok, error: .value.lastError}'
/var/log/vmware/sso/vmware-identity-sts.log in vCenter Server reveals a high volume of failed authentication attempts for a VCF service account:YYYY-MM-DDTHH:MM:SS ERROR vmidentity-sts 54 [vc@4413 threadName="tomcat-http--9" logger="com.vmware.identity.idm.server.IdentityManager" corId="#####-###-####-####-#######"] Failed to authenticate principal [svc-vcfsp-vc-###@vsphere.local]. Either User account locked or User password expired.YYYY-MM-DDTHH:MM:SSINFO vmidentity-sts 54 [vc@4413 threadName="tomcat-http--9" logger="com.vmware.identity.idm.server.IdentityManager" corId="#####-###-####-####-#######"] Authentication failed for user [svc-vcfsp-vc-###@vsphere.local] in tenant [vsphere.local] in [12] milliseconds with provider [vsphere.local] of type [com.vmware.identity.idm.server.provider.vmwdirectory.VMwareDirectoryProvider]
svc-vcfsp-vc-###@vsphere.local" is one of the old service accounts utilized by VCF Services Runtime to login to the vCenter Server./usr/lib/vmware-vmafd/bin/dir-cli svcaccount list --login [email protected] on the vCenter Server confirms the account referenced in the logs no longer exists.kubectl -n vmsp-platform get secret | grep -i -E "vcenter|vsphere"
sh.helm.release.v1.vsphere-cpi.v1 helm.sh/release.v1 1 ##dsh.helm.release.v1.vsphere-cpi.v2 helm.sh/release.v1 1 ##dsh.helm.release.v1.vsphere-csi.v1 helm.sh/release.v1 1 ##dsh.helm.release.v1.vsphere-csi.v2 helm.sh/release.v1 1 ##dvcenter-main-secret Opaque 2 ##d<######>-vcenter-admin-secret Opaque 2 ##d<######>-vcenter-main-secret Opaque 12 ##d<######>-vsphere-secret Opaque 2 ##dConfirm the service account which is present within the secret of the VCF Services Runtime cluster with the following command:kubectl -n vmsp-platform get secret <name> -o json | jq -r '.data | to_entries[] | select(.key|test("pass|secret|token|key|cert";"i")|not) | "\(.key) = \(.value|@base64d)"'
The above command should reveal the vCenterUsername which is the actual service account known by the VCF Services Runtime.
kubectl -n vmsp-policies get updaterequests.kyverno.io --no-headers | wc -l [#Expected ~1000]kubectl get secrets -A -l task.workflow.vmsp.vmware.com/tracking-id --no-headers | wc -lkubectl get tasks -A -l task.workflow.vmsp.vmware.com/tracking-id --no-headers | wc -lVMware Cloud Foundation 9.1
The VMSP component automatically rotates its own vCenter service accounts (svc-vcfsp-vc-###). When rotation occurs, the old account is deleted and replaced with a new one, and the source secret (e.g., <cluster-name>-vcenter-main-secret) is updated with the new credentials.
Prechecks run within the synthetic-checker pod, which caches the vCenter credentials in memory upon startup. When the secret changes, Kyverno's reload-on-secret-change policy is responsible for restarting this pod to fetch the new credentials.
In this scenario, Kyverno stopped processing secret changes because its UpdateRequest queue reached its hard limit of 1000 due to leftover, uncleaned task secrets. The Kyverno background controller pod subsequently experienced repeated Out-Of-Memory (OOMKilled) crashes (restarting thousands of times). Because the queue was full, the synthetic-checker pod was never restarted, continuing to use the deleted account and failing the prechecks.
Furthermore, Kyverno's failure to process requests meant that the updated credentials were not synced to other critical copied secrets (such as vcenter-main-secret, CAPV, CPI, and CSI secrets).
Secondary issues can compound this state: Kyverno pods might fail to pull images (ImagePullBackOff) upon restart if the local zot registry is serving an expired TLS certificate because it also missed its restart trigger.
To resolve this issue, clear the orphaned task secrets, manually restart the components stuck on expired certificates, and force Kyverno to process the service account updates.
Follow these steps from the Control Plane node of the VCF Services Runtime cluster:
kubectl -n vmsp-policies get updaterequests.kyverno.io --no-headers | wc -lkubectl get secrets -A -l task.workflow.vmsp.vmware.com/tracking-id --no-headers | wc -lkubectl get tasks -A -l task.workflow.vmsp.vmware.com/tracking-id --no-headers | wc -lcleanup-orphan-task-secrets.sh attached in the KB article on the Control Plane node with the following contents, and execute it to delete the orphaned secrets.chmod +x cleanup-orphan-task-secrets.sh./cleanup-orphan-task-secrets.sh
zot registry is serving an expired TLS certificate. Restart the zot registry pod to load the renewed certificate:kubectl rollout restart daemonset zot-1-configure-node -n vmsp-platformkubectl -n vmsp-policies get updaterequests.kyverno.io --no-headers | wc -l
synthetic-checker passes by re-running the status check API endpoint. Ensure ok returns true and error returns null: SC="https://localhost:30006/status?selector=component=vsp,group%20in%20(vCenter,vsphere,snapshots)"
curl -ks "$SC" | jq 'to_entries[] | {check: .key, ok: .value.ok, error: .value.lastError}'
This should now not report any pre-check failures.
task-cleanup-cronjob.yaml' file from the attachment and upload it to the Control Plane node of the VCF Services Runtime and run the following command to apply it:kubectl apply -f task-cleanup-cronjob.yamlProceed with the upgrade of the Management Components now from the VCF Operations page.