Creating a Tanzu Kubernetes Cluster fails. In vCenter server, the resource pool gets created under the namespace resource pool. However, the control/worker vms do not get created.
The OVF deployment starts but fails and is in a constant loop with the error, “Failed to deploy OVF package”
Looking at the vpxd logs in vCenter Server, the error was:
info vpxd[63733] [Originator@6876 sub=Default opID=62236dfd] [VpxLRO] -- ERROR lro-43350730 -- task-637327 -- vim.Task.setState: vim.fault.InvalidState:
--> Result:
--> (vim.fault.InvalidState) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>
--> msg = ""
--> }
--> Args:
-->
--> Arg state:
--> "error"
--> Arg result:
-->
--> Arg fault:
--> (vim.fault.OvfImportFailed) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>
--> msg = ""
--> }
Cause: User error :D
I had set DRS to manual to complete some maintenance tasks on a ESXi host in the cluster. This caused the ovf deployment to fail. For Tanzu with vSphere, the cluster needs to have DRS set to fully automated!
I reverted the change and set DRS to fully automated. Ovf deployment completed successfully and the TKC cluster got deployed.