Add possibility to completely disable cgroup management
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Our organization has a use-case for podman where we need it to not manage cgroups. Podman switches cgroup when it's setting up rootless environment, so setting --cgroups disabled doesn't prevent this as it is a command flag (and rootless env is being set up in the root part of program). So we'd like an option that completely disables any and all cgroup management that podman does. This issue has been discussed in this PR - https://github.com/containers/podman/pull/7721 and we've come to the conclusion that the best/cleanest approach to solve this would probably be to add disabled option to --cgroup-manager which would automatically also set --cgroups disabled for all commands.
A friendly reminder that this issue had no activity for 30 days.
@giuseppe WDYT?
I think that the approach could solve the issue.
@mheon are you fine with it?
I'm perfectly fine with this - makes sense from my perspective.
A friendly reminder that this issue had no activity for 30 days.
@giuseppe could you create a PR to make this happen?
A friendly reminder that this issue had no activity for 30 days.
@giuseppe Did you ever get a chance to look at this?
not yet.
@zv0n would accepting the cgroup manager through an environment variable work for you (e.g. CGROUP_MANAGER=disabled)?
@giuseppe sure, that would work great!
@giuseppe any progress?
I had a look and I am not happy with all the plumbing needed.
If the issue is only in SetupRootless, maybe we can find another way to address it.
@zv0n would something like setting DBUS_SESSION_BUS_ADDRESS=unix:path=/dev/zero and using --cgroups=disabled work with you?
@giuseppe We've done some testing and it seems that DBUS_SESSION_BUS_ADDRESS=unix:path=/dev/zero works, thanks for the idea!
A friendly reminder that this issue had no activity for 30 days.
@giuseppe @zv0n is this still something we need to fix.
The plumbing is not trivial and there is a workaround.
Let's close it.