-
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
[SELinux] cgroupv2: runc run --systemd-cgroup do not put container in proper cgroup #2310
Comments
Is this a recent regression or depends on a specific config? |
Looks like it has always been that way. If you take a look at systemd's v1 manager (aka LegacyManager) Apply method, it calls Same method for systemd v2 (aka UnifiedManager), it only calls |
Fixes: opencontainers#2310 Signed-off-by: Kir Kolyshkin <[email protected]>
and since we were not doing any testing, this bug lived to the day. Fix is easy though: #2311 |
Fixes: opencontainers#2310 Signed-off-by: Kir Kolyshkin <[email protected]>
Fixes: opencontainers#2310 Signed-off-by: Kir Kolyshkin <[email protected]>
OK, the cause of the issue is vagrant image of Fedora 31 used for testing. It came with not-so-up-to-date
(same results with podman+crun). This was fixed by The main issue here, though, is that the problem was not reported from systemd back to runc/crun. I don't know much about it but maybe we need to query the status afterwards? |
@rhatdan Any thoughts ^ ? |
Which is a different problem, so I'll file a separate issue. This one can be closed. |
Filed #2313 TODO: file a similar bug for crun |
Well the container-selinux not being updated could cause several problems. |
runc ps not working when runc run --systemd-cgroup is used
Indeed, the process is not in the cgroup it is supposed to be in!
😮
Update: the cause was old(er) container-selinux package in Fedora 31 vagrant image. Once updated, it works. The problem, though, is that runc (or crun) do not see an error from systemd which can't create a transient unit.
The text was updated successfully, but these errors were encountered: