In VCF Automation 9.0.x environments, the vSphere CSI pods are stuck in a CrashLoopBackOff state.
kubectl get pods -A | egrep "NAME|csi"
NAMESPACE NAME READY STATUS
kube-system vsphere-csi-controller-<ID> 5/7 CrashLoopBackOff
kube-system vsphere-csi-node-<ID> 2/3 CrashLoopBackOff
kubectl logs deploy/vsphere-csi-controller -n kube-system -c vsphere-csi-controller shows a a thumbprint mismatch error:
"level":"error","time":"YYYY-MM-DDDTHH:MM:SS.XXXXXXXZ","caller":"vsphere/virtualcenter.go:690","msg":"failed to connect to VirtualCenter host: \"vcenter.fqdn\". Err: Post \"https://vcenter.fqdn:443/sdk\": host \"vcenter.fqdn:443\" thumbprint does not match VCF Automation 9.0.x
The SHA1 Thumbprint of the vCenter Server stored in the vsphere-config-secret does not match the current vCenter certificate thumbprint, typically following a certificate renewal or replacement.
1.Validate vCenter Thumbprint
sudo su - kubectl get secrets vsphere-config-secret -n kube-system -o jsonpath='{.data.csi-vsphere\.conf}' | base64 -d echo | openssl s_client -bind $(ip -4 addr show eth0 | grep -m 1 -oP '(?<=inet\s)[0-9.]+') -connect <vCenter-IP>:443 2>/dev/null | openssl x509 -noout -fingerprint -sha12.Update vCenter Thumbprint
In VCF Automation 9.0.x, vCenter thumbprint updates for vSphere CSI controllers are managed via the vmsp-platform package deployment.Follow the detailed update procedure documented in SSL is out of sync in VCF Automation and Identity Broker 9.0.x running on vCenter 8.0.x .