vKS Cluster creation stuck on creating virtual machine object in vCentrer for the cluster nodes
book
Article ID: 402985
calendar_today
Updated On:
Products
VMware vSphere Kubernetes Service
Issue/Introduction
The workload clsuter machine,vspheremachine,and vm k8s object are not getting created
kubect get cluster,vm,ma,vspheremachine -n namespace01
NAME CLUSTERCLASS PHASE AGE VERSION cluster.cluster.x-k8s.io/new-cluster tanzukubernetescluster Provisioned 36h v1.29.4+vmware.3-fips.1
NAME POWER-STATE AGE virtualmachine.vmoperator.vmware.com/new-cluster-9jd7q-gmmtk 49m
NAME CLUSTER NODENAME PROVIDERID PHASE AGE VERSION machine.cluster.x-k8s.io/new-cluster-9jd7q-gmmtk new-cluster Provisioning 49m v1.29.4+vmware.3-fips.1
NAME ZONE PROVIDERID IPADDR vspheremachine.vmware.infrastructure.cluster.x-k8s.io/new-cluster-7kdqd-fnnll clusters-vsphere-zone
The vmware-system-vmop-controller-manager pods logs on the supervisor cluster show error similer to the following:
E0702 04:21:22.132493 1 virtualmachine_controller.go:243] "Failed to reconcile VirtualMachine" err="VirtualMachineClass.vmoperator.vmware.com \"guaranteed-medium\" not found" logger="VirtualMachine" name="namespace01/new-cluster-9jd7q-dc867"
The Workload Management >> The cluster namespace >> VM Service >> Manage VM Classes tab not showing the vmClass name which the cluster node used to get created is not selected
Environment
VMware vSphere Kubernetes Service (vKS)
Cause
The vKS workload load cluster is stuck on creating the cluster node virtual machine since the vmClass name which used to create the cluster nodes is not selected under Workload Management >> The cluster namespace >> VM Service >> Manage VM Classes tab.
Resolution
Add the missing vmClass to the workload cluster namespce using the following steps:
From the vSphere Client home menu, select "Workload Management".
Click on the "workload cluster namespace".
On the "VM Service" section, click "Manage VM Classes".
Find the vmClass needed to create the cluster node.
Select the vmClass and click "OK".
The the required vmClass now will show up as available.