Description of problem: If the system is reboot or shutdown while there's an active toolbox process, the systemd shutdown procedure will hang for 1min 30s until it's finally killed. How reproducible: Always. Steps to Reproduce: 1. Open a toolbox shell with `toolbox enter` 2. Run `sleep infinity` in the toolbox 3. Reboot/shutdown Expected results: toolbox processes to be terminated immediately like any other host-level process.
Yes, I can confirm this is a thing but I'm curious whether this is exclusive to Toolbx. Is it possible to find a reproducer with Podman itself? Something along the lines of: 1. Create a container 2. Start a shell session in the container with `podman exec -it ...` 3. Reboot/shutdown
It might be possible to reproduce on Podman (haven't tried yet), but I opened the bug here because while this behaviour might be desirable or not that much of an issue with podman, it is definitely an issue with the intended use case of toolbox. As additional details, journalctl suggests that the hung shutdown is caused by /usr/bin/conmon not responding to signals. It only seems to be stuck when running an interactive process. Example: If I run `toolbox run sleep infinity`, the toolbox pod can be stopped immediately with `podman stop` or sending SIGINT to the conmon process. If I run `toolbox run /bin/sh`, the toolbox pod CANNOT be stopped by `podman stop` (fails with: "container has active exec sessions, refusing to clean up: container state improper"), and conmon doesn't respond to SIGINT. The use case of toolbox is creating an interactive shell, so any long running process in the toolbox always cause the second, undesirable behaviour.
This was recently fixed in Podman: https://github.com/containers/podman/pull/17025
FEDORA-2023-431945fc20 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-431945fc20
FEDORA-2023-431945fc20 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-431945fc20` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-431945fc20 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-998dbd3b79 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-998dbd3b79` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-998dbd3b79 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-998dbd3b79 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.