systemd managed pod: when one container restarts, all do #15177
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When one container in a systemd-managed pod is restarted, all containers in the pod are restarted.
Steps to reproduce the issue:
Create and start a pod with 2 more more containers.
Use
podman generate systemd --files --new --name mypod
to create systemd unit files for the pod and containers.Stop the pod and containers via
podman
, and then start them usingsystemctl start pod-mypod
.Restart one of the containers via
systemctl restart container-one
and note that the other containers in the pod also restart.Describe the results you expected:
I expect that only the container explicitly restarted would restart. This is behavior demonstrated here:
https://developers.redhat.com/blog/2019/01/15/podman-managing-containers-pods#pods_and_container_management
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? (https://github.com/containers/podman/blob/main/troubleshooting.md)
I have checked the troubleshooting guide, and I've searched through github issues. While there is a newer version of podman available for Centos Stream 8, it breaks my ability to use passed-in devices due to the issue fixed by 61f6e13. 3.4.1 appears to be the latest version easily available to me with which my containers work.
Additional environment details (AWS, VirtualBox, physical, etc.):
I'm running Centos Stream 8, fullly updated as of yesterday, with the exception of having the container-tools module version locked as follows due to the --device bug found in 4.0.0-4.0.2:
Here are my actual unit files instead of the contrived example above:
The text was updated successfully, but these errors were encountered: