In a vSphere with Tanzu environment, the following symptoms are observed:
This issue is caused by the imageregistry-operator caching stale vCenter credentials. When the wcp-vmimageserviceop-user service account password rotates or the connection to the vCenter server service (vpxd) is briefly interrupted (returning 503 errors), the operator may attempt to authenticate using stale credentials.
Because the operator does not implement a back-off delay between failed attempts, it can trigger multiple invalid logins in rapid succession, exceeding the vCenter Single Sign-On (SSO) lockout threshold and locking the service account.
A permanent fix for this behavior will be part of the vCenter Server 9.1 release.
To work around the issue, please apply the steps below to unlock the account and refresh the operator.
# cat /var/log/vmware/vmdird/vmdird.log | grep vmimageservice# /usr/lib/vmware-vmafd/bin/dir-cli user find-by-name --account wcp-vmimageserviceop-user-<ID> --level 2# /opt/likewise/bin/ldapmodify -x -D cn=Administrator,cn=Users,dc=vsphere,dc=local -W <<EOF
dn: cn=wcp-vmimageserviceop-user-<ID>,cn=serviceprincipals,dc=vsphere,dc=local
changetype: modify
replace: userAccountControl
userAccountControl: 0
EOF# kubectl scale deploy -n vmware-system-imageregistry vmware-system-imageregistry-controller-manager --replicas=0
# kubectl scale deploy -n vmware-system-imageregistry vmware-system-imageregistry-controller-manager --replicas=2