PodVMAnnotationsMissing or PodVMCreationFailed state.Failed to add podVM's annotations to the pod <pod-name> in namespace <namespace name>.Error: admission webhook "admission.vmware.com" denied the request: Cannot change VMware system annotation 'vmware-system-vm-uuid'. Will retryCould not login to vCenter. Error: ServerFaultCode: The object 'vim.VirtualMachine:<vm-xxxx>' has already been deleted or has not been completely created
/etc/vmware/wcp/wcp-schedext-admission-controller-user-whitelist on that Supervisor is empty.
VMware vSphere with Tanzu 8.0 U3b and above
When a fault occurs such as a power off or IO write failure, the file could be truncated.
Workaround:
/etc/vmware/wcp/wcp-schedext-admission-controller-user-whitelist on every impacted Supervisor Control Plane node:cat <<EOL > /etc/vmware/wcp/wcp-schedext-admission-controller-user-whitelist# List of user-prefixes whitelisted by schedext admission controller for# creating or updating resources modifying secure annotations or tolerating# master/control plane taint.
kubernetes-adminkubeadmsystem:sso:wcp-<machine_id>@<sso_domain>vmware-system-EOL
MACHINE_ID:
grep MACHINE_ID /var/lib/node.cfg
Replace <sso_domain> with the domain being used by VC's SSO (such as vsphere.local).
To gather this grep the same file.
grep SSO_DOMAIN /var/lib/node.cfg
root [ ~ ]# crictl ps -a | grep schedext<Pod PID> 9 minutes ago Running wcp-schedext 10 kube-scheduler-<UUID>root [ ~ ]# crictl stop <Pod PID> <Pod PID> root [ ~ ]# crictl logs <Pod PID> | grep vCenter
Successfully connected to vCenter https://<VC-FQDN>:443/sdkFor other admission webhook failures, please refer to below KB articles:
Mitigate error condition 'admission webhook "admission.vmware.com" denied the request'
After VC upgrade to 8.0U3 Build 24262322 namespaces got stuck in configuring state