Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hholst80 opened this issue Jul 6, 2024 · 3 comments
Closed
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@hholst80
Copy link

hholst80 commented Jul 6, 2024

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"
@hholst80 hholst80 added the kind/bug Categorizes issue or PR as related to a bug. label Jul 6, 2024
@stmcginnis
Copy link
Contributor

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 BenTheElder changed the title kind create cluster failed: elogind: invalid argument: unknown [void linux] kind create cluster failed: elogind: invalid argument: unknown Jul 8, 2024
@BenTheElder
Copy link
Member

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. void-linux/void-packages#45921

@k8s-ci-robot k8s-ci-robot added kind/support Categorizes issue or PR as a support question. and removed kind/bug Categorizes issue or PR as related to a bug. labels Jul 8, 2024
@BenTheElder
Copy link
Member

closing due to lack of follow up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

4 participants