-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Description
I'm user of kubernetes distro k3s an someone else and myself notice a problem that maybe come from runc.
We have a open issue in the k3s project: https://github.com/k3s-io/k3s/issues/13459?utm_source=copilot.com
The problem exist since k3s version 1.34.3.
And one of the developers proposed to open it as an issue of runc because the major change in this area between K3s v1.34.2 and v1.34.3 was the bump of runc from v1.3.3 to v1.4.0.
If you try to deploy docker k8s driver but failed to probe readiness with exec since cgroup sllice not found.
The container alive and I can see the logs of the container. It seems that the cgroupv2 slice path is not resolved correctly?.
Steps to reproduce the issue
$ docker buildx create --bootstrap --name=kube \
--driver=kubernetes \
--platform=linux/amd64 \
--node=builder-amd64 \
--driver-opt=nodeselector=kubernetes.io/arch=amd64
$ kubectl get pods
> NAME READY STATUS RESTARTS AGE
> builder-amd64-7b74b6dfd6-g874s 0/1 Running 0 15m
$ kubectl describe pod builder-amd64-7b74b6dfd6-g874s
> ...
> Warning Unhealthy 16m kubelet Readiness probe errored and resulted in unknown state: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "74fb2dee11586bc3c897fef8ce86e38a3b319c86f1d9fbaa812083c2a82c7fd1": OCI runtime exec failed: exec failed: unable to start container process: error starting setns process: can't open cgroup: openat2 /sys/fs/cgroup/kubepods.slice/kubepods-besteffort.slice/kubepods-besteffort-poda0eade01_e660_4eb4_975a_203120127fc3.slice/cri-containerd-bf5fd9d00b6d21e44e0a56383386ee9f1898ebe0cc718a05815e8e93ca7ecb10.scope: no such file or directoryThe /sys/fs/cgroup/kubepods.slice/kubepods-besteffort.slice/kubepods-besteffort-poda0eade01_e660_4eb4_975a_203120127fc3.slice/cri-containerd-bf5fd9d00b6d21e44e0a56383386ee9f1898ebe0cc718a05815e8e93ca7ecb10.scope does not exist.
but the container is OK:
$ kubectl logs pods/builder-amd64-7b74b6dfd6-g874s
> time="2026-01-11T08:03:41Z" level=info msg="auto snapshotter: using overlayfs"
> time="2026-01-11T08:03:41Z" level=warning msg="using host network as the default"
> time="2026-01-11T08:03:41Z" level=info msg="found worker \"5bxqduetmhw1niuwxa69x7qpx\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:builder-amd64-7b74b6dfd6-g874s org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/amd64/v4 linux/386]"
> time="2026-01-11T08:03:41Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
> time="2026-01-11T08:03:41Z" level=info msg="found 1 workers, default=\"5bxqduetmhw1niuwxa69x7qpx\""
> time="2026-01-11T08:03:41Z" level=warning msg="currently, only the default worker can be used."
> time="2026-01-11T08:03:41Z" level=info msg="running server on /run/buildkit/buildkitd.sock"Describe the results you received and expected
I receive:
Warning Unhealthy 16m kubelet Readiness probe errored and resulted in unknown state: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "74fb2dee11586bc3c897fef8ce86e38a3b319c86f1d9fbaa812083c2a82c7fd1": OCI runtime exec failed: exec failed: unable to start container process: error starting setns process: can't open cgroup: openat2 /sys/fs/cgroup/kubepods.slice/kubepods-besteffort.slice/kubepods-besteffort-poda0eade01_e660_4eb4_975a_203120127fc3.slice/cri-containerd-bf5fd9d00b6d21e44e0a56383386ee9f1898ebe0cc718a05815e8e93ca7ecb10.scope: no such file or directoryI expect: Container starts without error and probes did not fail.
What version of runc are you using?
1.4.0
Host OS information
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
# k3s -v
k3s version v1.34.3+k3s1
Host kernel information
# uname -a
Linux k3stest 6.1.0-42-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.159-1 (2025-12-30) x86_64 GNU/Linux