kubernetes-sigs / kind

Kubernetes IN Docker - local clusters for testing Kubernetes
https://kind.sigs.k8s.io/
Apache License 2.0
13.37k stars 1.55k forks source link

[void linux] kind create cluster failed: elogind: invalid argument: unknown #3678

Closed hholst80 closed 2 months ago

hholst80 commented 3 months ago

What happened:

# kind create cluster
Creating cluster "kind" ...
 ✓ Ensuring node image (kindest/node:v1.30.0) 🖼
 ✗ Preparing nodes 📦
Deleted nodes: ["kind-control-plane"]
ERROR: failed to create cluster: command "docker run --name kind-control-plane --hostname kind-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=kind --net kind --restart=on-failure:1 --init=false --cgroupns=private --volume /dev/mapper:/dev/mapper --publish=127.0.0.1:35727:6443/TCP -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e" failed with error: exit status 125
Command Output: 0497cfb9c5c7b424e8a3cc15845b9be8a77cb66875012fb394fb7be7f081edf7
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: error mounting "cgroup" to rootfs at "/sys/fs/cgroup": mount cgroup:/sys/fs/cgroup/elogind (via /proc/self/fd/7), flags: 0xe, data: elogind: invalid argument: unknown.

Environment:

kind v0.23.0 go1.21.10 linux/amd64
Client:
 Version:           26.1.3
 API version:       1.45
 Go version:        go1.22.0
 Git commit:        tag v26.1.3
 Built:             Wed May 22 20:56:38 2024
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          26.1.3
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.22.0
  Git commit:       tag v26.1.3
  Built:            Mon May 20 23:12:28 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.14
  GitCommit:        UNSET
 runc:
  Version:          1.1.12
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        
NAME="Void"
ID="void"
PRETTY_NAME="Void Linux"
HOME_URL="https://voidlinux.org/"
DOCUMENTATION_URL="https://docs.voidlinux.org/"
LOGO="void-logo"
ANSI_COLOR="0;38;2;71;128;97"

DISTRIB_ID="void"
stmcginnis commented 3 months ago

I have a suspicion kind isn't going to work well on void due to the differences in how it does things compared to the other distros we test with.

Can you add the output from docker info?

BenTheElder commented 3 months ago

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: error mounting "cgroup" to rootfs at "/sys/fs/cgroup": mount cgroup:/sys/fs/cgroup/elogind (via /proc/self/fd/7), flags: 0xe, data: elogind: invalid argument: unknown.

This error means docker can't even create the container on this host, before any of our own code begins running inside the container.

The cgroup mount isn't even specified by kind, so

/remove-kind bug /kind support

I recommend using a different distro.

You can see the same issue affects other with a quick search of the error e.g. https://github.com/void-linux/void-packages/discussions/45921

BenTheElder commented 2 months ago

closing due to lack of follow up