Running the below command from the Supervisor Control plane VM returns the below error message with 'Component EnvPropsUpgrade failed'
/usr/lib/vmware-wcp/upgrade/upgrade-ctl.py get-status | jq
{
"controller_id": "422#################29e4",
"state": "error",
"messages": [
{
"level": "error",
"message": "Component EnvPropsUpgrade failed: Failed to run command: ['kubectl', 'get', 'vspherezones', '-o', 'json'] ret=1 out= err=error: the server doesn't have a resource type \"vspherezones\"\n"
},
{
"level": "error",
"message": "Component upgrade failed."
}
]
vCenter Server 8.0 U3 and later
vSphere with Tanzu
Issue is resolved in vCenter server 8.0U3g
Workaround:
1. SSH into Supervisor CPVM How to SSH into Supervisor Control Plane VMs
2. Manually reapply just vspherezones CRD from /usr/lib/vmware-wcp/objects/PodVM-GuestCluster/30-vmop/vmop.yaml on CPVM
awk 'BEGIN{RS="---"} /kind: CustomResourceDefinition/ && /name: vspherezones.topology.tanzu.vmware.com/' /usr/lib/vmware-wcp/objects/PodVM-GuestCluster/30-vmop/vmop.yaml | kubectl apply -f -
3. Restart upgrade from vCenter UI (Workload management → Updates → select Supervisor → Apply updates)