-
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
rootless podman doesn't work via sudo/su #7417
Comments
Can you confirm that |
Here's a transcript. It was not edited or abridged in any way. [jenkins@sif ~]$ podman run --pids-limit 3123 -it --rm docker.io/fedora:32 echo hey
Error: cannot set limits without cgroups: OCI runtime error
[jenkins@sif ~]$ podman info | grep cgroup
cgroupVersion: v2 |
In crun I see
I think your system does not support the resource-pids cgroup. cat /proc/self/cgroup Then take this path and append it to /sys/fs/cgroup
@giuseppe WDYT? |
it looks like it failed to create the cgroup. My guess is that there is no systemd session for the user, so we fallback to cgroupfs. Even if we are running on cgroup v2, we are not able to delegate a subtree for the user. Is it running with the user |
Indeed there is no systemd user daemon status. I don't understand why, since jenkins logins via ssh like an ordinary user. I suggest improving the error message here. |
And how is a service supposed to work with podman? You can't expect it to be logged in. |
that is an on-going effort for now. But at the moment we require lingering mode to be configured for the user. I think there is still the issue of ensuring the user session starts before the service, or alternatively install the .service as part of the user configuration (under |
It doesn't work for me even with lingering enabled. Is there some documentation on this? For jenkins agents, Jenkins works by connecting to them with ssh, and without a pty. Is there any way to make this work? |
I've not tried with jenkins, so I am not sure what we could be miss to get it working. Does systemd-run work in the same environment? If |
|
(this is with |
Is there no workaround? |
@giuseppe @vrothberg Ideas? |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
A workaround is |
A friendly reminder that this issue had no activity for 30 days. |
@avikivity Is this still an issue? |
I've not needed to do this kind of maintenance recently, so can't confirm or deny. Is it supposed to be fixed in some release? If so, mention it here and close, and I'll reopen if I see it happen in a version where it's supposed to be fixed. |
I just hit this in a new Ubuntu 20.10 install. |
|
Here is the full error in all its glory:
|
It turned out that this was another manifestation of --pids-limit breakage with cgroupsv1, and my script misdetected it. |
I only care about podman 3.*, basically what is in the main branch. |
A friendly reminder that this issue had no activity for 30 days. |
I believe this is fixed in the current release. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Running with --pids-limit causes an error
Note: this is not a dup of #6834 which is about cgroupsv1.
Steps to reproduce the issue:
podman run --pids-limit 3123 -it --rm docker.io/fedora:32 echo hey
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Happens on a particular machine. I did podman system migrate, then podman system reset, still happens.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical, fully updated Fedora 32, happens on this one host.
The text was updated successfully, but these errors were encountered: