-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
rawhide (crun): rootless(?): podman exec broken: OCI runtime error #3937
Comments
it should work well with crun 0.8. The new version has different fixes for interacting with Podman and reporting the correct exit code. |
@edsantiago can you test it out, reopen if this does not fix the issue. |
Problem persists with crun-0.8-1.fc32.x86_64 although the error is different:
|
Progress... |
it seems to fail moving a process from cgroup A to a cgroup B, where A is the current cgroup (owned by root) and B is the destination cgroup in the container. Can you confirm the current cgroup is owned by root with `ls -l /sys/fs/cgroup/$(sed -e 's|0::||' /proc/self/cgroup)? Does it work if you use something like Not sure what would be the best way to handle it, we'd need to enforce somehow to run in a cgroup that is owned by the rootless user. |
opened a PR to automatically create the scope: #3959 |
Sorry for the late response. In case it's still helpful:
|
I hit this too now while trying to test toolbox in Rawhide. |
when running in rootless mode and using systemd as cgroup manager create automatically a systemd scope when the user doesn't own the current cgroup. This solves a couple of issues: on cgroup v2 it is necessary that a process before it can moved to a different cgroup tree must be in a directory owned by the unprivileged user. This is not always true, e.g. when creating a session with su -l. Closes: containers#3937 Also, for running systemd in a container it was before necessary to specify "systemd-run --scope --user podman ...", now this is done automatically as part of this PR. Signed-off-by: Giuseppe Scrivano <[email protected]>
I think I encountered this problem on podman 1.9.0 in rootless mode : When I try to exec :
But if I prefix with
It works. Not sure if it is related but I have a dedicated Here's my
|
On current rawhide with crun:
I can't check root because podman-root is 100% broken (rhbz1748214).
With --log-level=debug:
podman-1.5.2-0.46.dev.git1d8a940.fc32.x86_64
crun-0.7-2.fc31.x86_64
package runc is not installed
The text was updated successfully, but these errors were encountered: