CrashLoopBackOff statue/var/log/pods/vmware-system-csi_vsphere-csi-controller-<ID>/vsphere-csi-controller/#.log failed to create govmomi client with err: ServerFaultCode: Cannot complete login due to an incorrect user name or password.failed to connect to VirtualCenter host: \"vcsa-01.example.com\", Err: ServerFaultCode: Cannot complete login due to an incorrect user name or password./var/log/pods/vmware-system-csi_vsphere-csi-controller-<ID>/vsphere-syncer/#.logfailed to create govmomi client with err: ServerFaultCode: Cannot complete login due to an incorrect user name or password.Cannot connect to vCenter with err: ServerFaultCode: Cannot complete login due to an incorrect user name or password.VMware vSphere with Tanzu 8.x
The wcpsvc (Workload Control Plane) service on the vCenter is unable to rotate the cluster service account password because the Supervisor is not in a Ready state.
This issue is fixed in vCenter Server 8.0U3h.
As workaround, clear the existing password in the VCDB and restart the WCP service on VC; this triggers the automatic generation of a new password which synchronizes directly to the Kubernetes Secrets.
Workaround Steps:
service-control --stop wcp
service-control --status wcp
/usr/lib/vmware-wcp/decryptK8Pwd.py
domain-c#:####-####sudo -u wcp psql -U wcpuser -d VCDB -c "update cluster_db_configs SET storage_svcacct_pwd = '' where cluster='domain-c#:####-####';"
sudo -u wcp psql -U wcpuser -d VCDB -c "select storage_svcacct_pwd from cluster_db_configs where cluster='domain-c#:#####-####';"
service-control --start wcp
service-control --status wcp
sudo -u wcp psql -U wcpuser -d VCDB -c "select storage_svcacct_pwd from cluster_db_configs where cluster='domain-c#:#####-####';"
kubectl get secrets vsphere-config-secret -n vmware-system-csi -o jsonpath='{.data.vsphere-cloud-provider\.conf}' | base64 -d
kubectl rollout restart deployment -n vmware-system-csi
kubectl get pods -n vmware-system-csi