-
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
RUN fails in rootless podman build when cgroups is v1 #6982
Comments
After upgrading podman to 2.0.2, we encounter the same problem on Ubuntu (podman seems to use cgroups v1 by default).
|
@TomSweeneyRedHat @nalind PTAL |
After some code digging the error seems to be due to adding Using the same flag with
But anyways, this is just a hint, please take it with a grain of salt. |
Setting |
That should be automatically set for rootless cgroupsv1 systems |
Seeing this on RHEL8 gating tests. |
Eeek. Alright, we're probably incorrectly setting systemd cgroups on v1 systemd, then. |
Confirmed, thank you. |
Please do not use libpod.conf, Set it in containers.conf and remove libpod.conf. |
Thanks @rhatdan! What is the reason for this? |
Yikes that is a pretty serious omission. |
@mheon, did we ever have a spot where we set |
It should be decided by c/common and containers.conf |
Confirmed, reproduced on a fresh RHEL8 install. It's not just Buildah, all |
I think I know what's going on - that code for c/common seems bunk, it doesn't work on Cgroups v1 systems. |
The current logic is that, if Podman was built with the systemd build flag, we will always select systemd cgroups by default. Then, if we detect no systemd dbus session, we will swap to cgroupfs. Problem: there are cases where a systemd dbus session is available, but systemd cgroups don't work - most notably, rootless mode on cgroups v1 systems. Special-case this so that we will not try to force systemd mode and break rootless containers. Fixes containers/podman#6982 Signed-off-by: Matthew Heon <[email protected]>
containers/common#231 to fix |
The current logic is that, if Podman was built with the systemd build flag, we will always select systemd cgroups by default. Then, if we detect no systemd dbus session, we will swap to cgroupfs. Problem: there are cases where a systemd dbus session is available, but systemd cgroups don't work - most notably, rootless mode on cgroups v1 systems. Special-case this so that we will not try to force systemd mode and break rootless containers. Fixes containers/podman#6982 Signed-off-by: Matthew Heon <[email protected]>
The current logic is that, if Podman was built with the systemd build flag, we will always select systemd cgroups by default. Then, if we detect no systemd dbus session, we will swap to cgroupfs. Problem: there are cases where a systemd dbus session is available, but systemd cgroups don't work - most notably, rootless mode on cgroups v1 systems. Special-case this so that we will not try to force systemd mode and break rootless containers. Fixes containers/podman#6982 Signed-off-by: Matthew Heon <[email protected]>
The current logic is that, if Podman was built with the systemd build flag, we will always select systemd cgroups by default. Then, if we detect no systemd dbus session, we will swap to cgroupfs. Problem: there are cases where a systemd dbus session is available, but systemd cgroups don't work - most notably, rootless mode on cgroups v1 systems. Special-case this so that we will not try to force systemd mode and break rootless containers. Fixes containers/podman#6982 Cherry-picked commit a61c5e2. Signed-off-by: Matthew Heon <[email protected]> Signed-off-by: Valentin Rothberg <[email protected]>
|
👍 problem is gone with podman 2.0.3. Thank you guys! |
Seems I still have the problem with If it's fine with a fresh install (which I haven't tested), maybe it would be efficient to fix existing config. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When cgroups is v1
podman build
fails on RUN step with the following:Cannot reproduce with
buildah bud
, so filing it here.Steps to reproduce the issue:
On a system running an up-to-date Fedora 32:
podman build
is working okay:podman build
again:buildah bud
works:Describe the results you received:
Build fails on RUN step.
Describe the results you expected:
Build should succeed.
Additional information you deem important (e.g. issue happens only occasionally):
Tested this on a fresh Fedora 32 installation.
The above is working with
podman 1.8.2
, but fails after upgrading topodman 2.0.2
Output of
podman version
:Output of
podman info --debug
:When cgroups is v1
When cgroups is v2:
Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Was able to reproduce both on physical machine as in VM.
The text was updated successfully, but these errors were encountered: