-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Description
nerdctl test suite no longer passes with runc v1.1.6 (rootless, cgroup v2), due to an error like container's cgroup is not empty: 5 process(es) found
Steps to reproduce the issue
go test -run '^TestRunRestart$' -test.kill-daemon -v ./cmd/nerdctlDescribe the results you received and expected
runc v1.1.5: passes
runc v1.1.6: fails
...
Apr 13 22:06:31 suda-ws01 containerd-rootless.sh[14887]: time="2023-04-13T22:06:31.341228362+09:00" level=error msg="copy shim log" error="read /proc/self/fd/13: file already closed" namespace=nerdctl-test
Apr 13 22:06:31 suda-ws01 containerd-rootless.sh[14887]: time="2023-04-13T22:06:31.341503657+09:00" level=error msg="apply change" error="failed to create shim task: OCI runtime create failed: runc create failed: container's cgroup is not empty: 5 process(es) found: unknown"
container_run_restart_linux_test.go:88: ==========
container_run_restart_linux_test.go:89: the container does not seem to be restarted
--- FAIL: TestRunRestart (99.06s)
FAIL
exit status 1
FAIL github.com/containerd/nerdctl/cmd/nerdctl 99.094s
What version of runc are you using?
runc version 1.1.6
commit: v1.1.6-0-g0f48801a
spec: 1.0.2-dev
go: go1.20.2
libseccomp: 2.5.4
Host OS information
PRETTY_NAME="Ubuntu 22.10"
NAME="Ubuntu"
VERSION_ID="22.10"
VERSION="22.10 (Kinetic Kudu)"
VERSION_CODENAME=kinetic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=kinetic
LOGO=ubuntu-logo
Host kernel information
Linux suda-ws01 5.19.0-38-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 17:33:16 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux