VMware Cloud Community
sevenlogic
Contributor
Contributor

TKG Management Cluster deployment fails due to image error

I am setting up a development cluster and we are trying to get TKG installed on a 6.7 U3 deployment. I have followed all of the steps listed in the vsphere documentation, insured Kubectl and docker are installed correctly. But when I deploy the management cluster I keep getting some errors related to Kind / pulling images. I have internet access on this VM and everything is upgraded. Not sure what to do at this point. Has anyone seen this issue? Very hard to find information about this online. Thank you! Screenshot 2021-09-21 at 03.50.25.png

ℹ [0921 01:11:50.69264]: init.go:108] Validating configuration...
ℹ [0921 01:11:50.80126]: init.go:159] Using infrastructure provider vsphere:v0.7.10
ℹ [0921 01:11:50.80145]: init.go:161] Generating cluster configuration...
ℹ [0921 01:11:52.25721]: init.go:169] Setting up bootstrapper...
ℹ [0921 01:11:52.28987]: client.go:123] Fetching configuration for kind node image...
ℹ [0921 01:11:52.29133]: client.go:237] kindConfig: &{{Cluster kind.x-k8s.io/v1alpha4} [{ map[] [{/var/run/docker.sock /var/run/docker.sock false false }] [] [] []}] { 0 100.96.0.0/11 100.64.0.0/13 false } map[] map[] [apiVersion: kubeadm.k8s.io/v1beta2 kind: ClusterConfiguration imageRepository: projects.registry.vmware.com/tkg etcd: local: imageRepository: projects.registry.vmware.com/tkg imageTag: v3.4.13_vmware.15 dns: type: CoreDNS imageRepository: projects.registry.vmware.com/tkg imageTag: v1.8.0_vmware.5] [] [] []}
ℹ [0921 01:11:52.29135]: client.go:131] Creating kind cluster: tkg-kind-c54j2m5df07cjh665jrg
ℹ [0921 01:11:52.41238]: logger.go:115] Creating cluster "tkg-kind-c54j2m5df07cjh665jrg" ...
ℹ [0921 01:11:52.41243]: logger.go:115] Ensuring node image (projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1) ...
ℹ [0921 01:11:52.44252]: logger.go:115] Pulling image: projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1 ...
ℹ [0921 01:12:13.77184]: logger.go:115] Trying again to pull image: "projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" ... command "docker pull projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" failed with error: exit status 1
ℹ [0921 01:12:34.41084]: logger.go:115] Trying again to pull image: "projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" ... command "docker pull projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" failed with error: exit status 1
ℹ [0921 01:12:55.92883]: logger.go:115] Trying again to pull image: "projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" ... command "docker pull projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" failed with error: exit status 1
ℹ [0921 01:13:17.76042]: logger.go:115] Trying again to pull image: "projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" ... command "docker pull projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" failed with error: exit status 1
✘ [0921 01:13:36.27870]: init.go:86] unable to set up management cluster, : unable to create bootstrap cluster: failed to create kind cluster tkg-kind-c54j2m5df07cjh665jrg: failed to pull image "projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1": command "docker pull projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" failed with error: exit status 1

Reply
0 Kudos
2 Replies
vXav
Expert
Expert

Hi,

I'm testing out tanzu community edition and got the same "... command "docker pull projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1" failed with error: exit status 1 " as you but for some reason it succeeded after a retry. (Mine is failing because of certs I haven't troubleshooted yet, yeah this stuff is stil pretty new 😅 <- EDIT: it happened because my bootstrap VM was way underprovisioned).

A few angles of attack maybe?

  • Are you able to pull the image directly from docker with "sudo docker pull projects.registry.vmware.com/tkg/kind/node:v1.21.2_vmware.1"
  • Can you ping "projects.registry.vmware.com" ?
  • All your tanzu plugins are there ok?

Feel free to share when you find a fix though.

Reply
0 Kudos
casimiri
Contributor
Contributor

Hi, the image is amd64 that is not compatible with arm machines like Mac M1

Reply
0 Kudos