eks-anywhere: vSphere Provider setup is valid error on template deployment: please specify a datacenter

What happened: When trying to deploy a cluster to vSphere, it will error out on the step of deploying the template to a Content Library with: Validation failed {"validation": "vsphere Provider setup is valid", "error": "failed deploying template: error deploying template: govc: please specify a datacenter\n", "remediation": ""}

What you expected to happen: It succeeds. From what I can see, I have a datacenter specified. My vCenter has multiple datacenters in it with clusters.

How to reproduce it (as minimally and precisely as possible): Attempt to deploy a cluster to vSphere. vCenter version is 7.0U3 build 18700403. My vCenter has multiple datacenters in it with clusters.

My config YAML:

apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: Cluster
metadata:
  name: mmg-test
spec:
  clusterNetwork:
    cni: cilium
    pods:
      cidrBlocks:
      - 10.69.0.0/16
    services:
      cidrBlocks:
      - 10.112.0.0/12
  controlPlaneConfiguration:
    count: 2
    endpoint:
      host: "10.96.78.5"
    machineGroupRef:
      kind: VSphereMachineConfig
      name: mmg-test-cp
  datacenterRef:
    kind: VSphereDatacenterConfig
    name: mmg-test
  externalEtcdConfiguration:
    count: 3
    machineGroupRef:
      kind: VSphereMachineConfig
      name: mmg-test-etcd
  kubernetesVersion: "1.21"
  workerNodeGroupConfigurations:
  - count: 2
    machineGroupRef:
      kind: VSphereMachineConfig
      name: mmg-test

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: VSphereDatacenterConfig
metadata:
  name: mmg-test
spec:
  datacenter: "ZB"
  insecure: true
  network: "eks-mmgtest"
  server: "vcenter-fqdn"
  thumbprint: ""

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: VSphereMachineConfig
metadata:
  name: mmg-test-cp
spec:
  datastore: "ESXi 3/ESXi3 SSD 3"
  diskGiB: 25
  folder: ""
  memoryMiB: 8192
  numCPUs: 2
  osFamily: bottlerocket
  resourcePool: "COMG3/Resources"
  users:
  - name: ec2-user
    sshAuthorizedKeys:
    - ssh-rsa MYPUBLICKEY

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: VSphereMachineConfig
metadata:
  name: mmg-test
spec:
  datastore: "ESXi 3/ESXi3 SSD 3"
  diskGiB: 25
  folder: ""
  memoryMiB: 8192
  numCPUs: 2
  osFamily: bottlerocket
  resourcePool: "COMG3/Resources"
  users:
  - name: ec2-user
    sshAuthorizedKeys:
    - ssh-rsa MYPUBLICKEY

---
apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: VSphereMachineConfig
metadata:
  name: mmg-test-etcd
spec:
  datastore: "ESXi 3/ESXi3 SSD 3"
  diskGiB: 25
  folder: ""
  memoryMiB: 8192
  numCPUs: 2
  osFamily: bottlerocket
  resourcePool: "COMG3/Resources"
  users:
  - name: ec2-user
    sshAuthorizedKeys:
    - ssh-rsa MYPUBLICKEY

---

Anything else we need to know?: N/A

Environment:

  • EKS Anywhere Release: v0.5.0
  • EKS Distro Release: Unknown

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

So the deployment worked! 😃