-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[v1.2 regression] [cgroup v1 + rootless] nerdctl run -d --name=bar --pid=container:foo ; nerdctl rm -f bar
hangs
#4394
Comments
Looks like $ containerd-rootless-setuptool.sh nsenter
# runc --root /run/containerd/runc/default list
ID PID STATUS BUNDLE CREATED OWNER
328ab284487a2ba4edde0c6e6ca25b086c2a650bd04e61a44be8f545cdf6fb36 518750 running /run/containerd/io.containerd.runtime.v2.task/default/328ab284487a2ba4edde0c6e6ca25b086c2a650bd04e61a44be8f545cdf6fb36 2024-09-04T17:47:10.651799954Z root
6481b12d9fa8291603eac4868ce498f226d6b75fe7a826ee907de825ca2a5738 518905 running /run/containerd/io.containerd.runtime.v2.task/default/6481b12d9fa8291603eac4868ce498f226d6b75fe7a826ee907de825ca2a5738 2024-09-04T17:47:11.180816681Z root
# runc --root /run/containerd/runc/default kill 6481b12d9fa8291603eac4868ce498f226d6b75fe7a826ee907de825ca2a5738 9
ERRO[0000] unable to kill all processes: container not running |
I guess this is caused by some of the changes we made to the stop/kill logic a while ago? Oh boy... |
Regression in 9583b3d |
This seems strange, it seems that both |
So, we have cgroup v1 rootless container which shares pidns with another container. For shared pidns case, I think the best course of action is to disallow such configuration, as it's not working and won't work. I.e. |
Printing a warning would be fine, but erroring out is a breaking change |
Related:
We already have a few test cases for same/similar issue (#4047), but they all require Given the circumstances, I think #4395 is OK, but we also need some warnings added. |
The issue is reproducible with:
Not reproducible with:
containerd version (v1.7.16, v2.0.0-rc.4) and nerdctl version (v1.7.6, v2.0.0-rc.1) do not seem to matter.
I haven't figured out how to reproduce the issue with a plain nerd-less bats.
Regression in 9583b3d
libct: move killing logic to container.Signal
:The text was updated successfully, but these errors were encountered: