TKGm workload cluster provision failed to find vm object for template path
search cancel

TKGm workload cluster provision failed to find vm object for template path

book

Article ID: 414050

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Management

Issue/Introduction

-TKGm Workload Cluster provisioning fails with the following error:

kubectl apply -f ####-###-###-#.30.2.yaml
vspherecsiconfig.csi.tanzu.vmware.com/####-###-###-#.30.2 created
clusterbootstrap.run.tanzu.vmware.com/####-###-###-#.30.2 created
secret/####-###-###-#.30.2 created

Error from server (Forbidden): error when creating "####-###-###-#.30.2.yaml": admission webhook "###-#######-########-#######.tanzu.vmware.com" denied the request: failed validating template path for control plane: failed to validate template path /###-########/####-########-######-####-####-##.30.2+vmware.1, target ova versions: [v1.30.2+vmware.#-###.#-################################]: invalid template path: /###-########/####-########-######-####-####-##.30.2+vmware.1: failed to find vm object for template path /###-########/####-########-######-####-####-##.30.2+vmware.1: vm '/###-########/####-########-######-####-####-##.30.2+vmware.1' not found

Environment

VMware Tanzu Kubernetes Grid

Cause

 The control plane base image template defined in the cluster YAML is not present in the vCenter. 

Resolution

Use the following documentation to validate the presence of the base image or add it to vCenter: Import the Base Image Template into vSphere