-
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
cgroup is not set: internal libpod error after os reboot. #19175
Comments
Comparing the debug logs between fedora (systemd) and alpine (no systemd) it seems that de cgroups ar not restored after a reboot. Fedora:
Alpine:
|
I applied the following patch and recompiled podman and it works now. I don't know if this patch is 100% correct (it's my first time with go and I don't know anything about the internals of podman).
|
I think that fixes the bug right here, but it looks like this might be showing a more serious issue. Pod cgroups are not being refreshed properly after a reboot, so all resource limits set at the pod level are being lost after the system reboots. Need more testing to fully confirm. That patch definitely fixes a serious issue, though (inability to create containers after reboot), so feel free to submit it - we have Podman 4.6 upcoming and I'd love to have this fixed there. |
[NO NEW TESTS NEEDED] Closes containers#19175 Signed-off-by: Peter Jannesen <[email protected]>
The pull request checks have failed on random unrelated error. How to proceed? |
Reopening to track cgroup-reboot issue |
[NO NEW TESTS NEEDED] Closes containers#19175 Signed-off-by: Peter Jannesen <[email protected]>
A friendly reminder that this issue had no activity for 30 days. |
@giuseppe PTAL |
turned out to be a much bigger issue, opened a PR: #19888 |
When a container is created and it is part of a pod, we ensure the pod cgroup exists so limits can be applied on the pod cgroup. Closes: containers#19175 Signed-off-by: Giuseppe Scrivano <[email protected]>
Issue Description
I have a problem with podman on Alpine Linux. Everything seems to work fine until the operating system reboots. After a reboot I get 'cgroup is not set: internal libpod error'. These errors can be resolved by deleting and recreating the pod.
Steps to reproduce the issue
podman pod create test
podman run --pod=test hello-world
reboot
podman run --pod=test hello-world
Describe the results you received
Error: pod e827e57ccc13b5b556493540f2669b424a07cc1bec63993473414dcc14c9a656 cgroup is not set: internal libpod error
Describe the results you expected
Output of hello-world
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Alpine linux 3.18.2, podman v4.5.1 (I also tested version 3.17 same result)
Additional information
No response
The text was updated successfully, but these errors were encountered: