Error: "admission webhook "tkr-vsphere-resolver-webhook.tanzu.vmware.com" denied the request: unable to find VM Template associated with OVA Version v####" while trying to deploy TKGm management or workload cluster
search cancel

Error: "admission webhook "tkr-vsphere-resolver-webhook.tanzu.vmware.com" denied the request: unable to find VM Template associated with OVA Version v####" while trying to deploy TKGm management or workload cluster

book

Article ID: 446728

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Management

Issue/Introduction

While creating TKGM clusters  process failed with the following errors.

Error from server (Forbidden): error when creating "/tmp/kubeapply-######": admission webhook "tkr-vsphere-resolver-webhook.tanzu.vmware.com" denied the request: unable to find VM Template associated with OVA Version v####.. Please upload at least one VM Template to continue: exit status 1, retrying

 

 

Environment

TKGM 2.5.x

Cause

An OS metadata mismatch exists between the cluster configuration YAML (requesting RHEL) and the vSphere template vApp properties (which default to photon or ubuntu).

Resolution

Navigate to the VM template in vCenter.

1.Go to Configure > vApp Options.

2.Add or update the following properties to match the values from the YAML:

OS_NAME: <osname>

OS_VERSION: <osversion>

OS_ARCH: <cpudetails>

Example:

OS_NAME: rhel

OS_VERSION: 9

OS_ARCH: amd64

3.Purge the local kind bootstrap cache and retry the deployment.