-
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
Podman broken on ubuntu 20.04 with cgroups v2 due to not installing crun #9049
Comments
@lsm5 PTAL |
Sortof fixed in podman3: #8687 Assuming that $ /usr/sbin/runc --version
runc version spec: 1.0.1-dev
$ /usr/lib/cri-o-runc/sbin/runc --version
runc version spec: 1.0.2-dev In podman2, crun was still mandatory. |
Runc >= rc91 should work with cgroup2. rc10 was incomplete. |
CRI-O comes before the system, so it should find RC 92 before RC 10.
|
Part of the problem was switching to Will install "crun" explicitly, that should take care of the installation for v2. |
I think this was more or less our own fault, for not installing recommendations. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Podman works OK when using cgroups v1, but not when using cgroups v2.
Steps to reproduce the issue:
sudo systemctl start podman.socket
Describe the results you received:
Error: default OCI runtime "crun" not found: invalid argument
podman.service: Failed with result 'exit-code'.
Describe the results you expected:
podman.service: Succeeded.
Additional information you deem important (e.g. issue happens only occasionally):
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.):
Ubuntu 20.04, inside Podman container running on Fedora 33.
See kubernetes/minikube#10182
It fails, due to
crun
being an optional dependency but still used by default.The configuration uses
runc
under cgroups v1 andcrun
under cgroups v2.Installing crun manually fixes the issue, but it should have been installed already.
So probably modify this podman dependency for the .deb a bit:
cri-o-runc | runc
Running with cgroups v2 might be a bit "special" (system default is v1),
but installing "crun" by default should be rather small and harmless ?
The text was updated successfully, but these errors were encountered: