You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
EKS-A cluster creation failed during the bootstrap-cluster-init stage when creating kind cluster due to hostname being too long. Hostname is limited to 64 characters and eks-a appends "-eks-a-cluster-control-plane" to the cluster name when setting the hostname. So eks-a cluster name cannot be more than 36 characters.
Error message
Error: creating bootstrap cluster: executing create cluster: cluster name "{cluster-name}-eks-a-cluster" is probably too long, this might not work properly on some systems
Creating cluster "{cluster-name}-eks-a-cluster" ...
• Ensuring node image (public.ecr.aws/eks-anywhere/kubernetes-sigs/kind/node:v1.27.4-eks-d-1-27-10-eks-a-47) 🖼 ...
✓ Ensuring node image (public.ecr.aws/eks-anywhere/kubernetes-sigs/kind/node:v1.27.4-eks-d-1-27-10-eks-a-47) 🖼
• Preparing nodes 📦 ...
✗ Preparing nodes 📦
Deleted nodes: ["{cluster-name}-eks-a-cluster-control-plane"]
ERROR: failed to create cluster: command"docker run --name {cluster-name}-eks-a-cluster-control-plane --hostname {cluster-name}-eks-a-cluster-control-plane --label io.x-k8s.kind.role=control-plane --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --label io.x-k8s.kind.cluster={cluster-name}-eks-a-cluster --net kind --restart=on-failure:1 --init=false --publish=127.0.0.1:55089:6443/TCP -e KUBECONFIG=/etc/kubernetes/admin.conf public.ecr.aws/eks-anywhere/kubernetes-sigs/kind/node:v1.27.4-eks-d-1-27-10-eks-a-47" failed with error: exit status 125
Command Output: 7a3130fc9866624bd2e5b4cfcf69fdf6f9ded41f0f17f104aaef258bd207790f
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: sethostname: invalid argument: unknown.
What you expected to happen:
Cluster gets created without any errors
How to reproduce it (as minimally and precisely as possible):
What happened:
EKS-A cluster creation failed during the
bootstrap-cluster-init
stage when creating kind cluster due to hostname being too long. Hostname is limited to 64 characters and eks-a appends "-eks-a-cluster-control-plane" to the cluster name when setting the hostname. So eks-a cluster name cannot be more than 36 characters.Error message
What you expected to happen:
Cluster gets created without any errors
How to reproduce it (as minimally and precisely as possible):
Run the above command with cluster name length greater than 36
Anything else we need to know?:
Related to #7302
Environment:
The text was updated successfully, but these errors were encountered: