-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-10.1
-
None
-
No
-
Moderate
-
rhel-container-tools
-
3
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
The container start by podman-system-service is still running after the service is stopped by systemctl.
What is the impact of this issue to you?
The container is still running after the service is stopped
Please provide the package NVR for which the bug is seen:
podman-5.6.0-0.4rc1.el10.x86_64
How reproducible is this bug?:
always
Steps to reproduce
- Set up the cgroup manage to cgroupfs in /usr/share/containers/containers.conf
- Run podman-system-service containers survive service stop from system test
# bats -t -f "podman-system-service containers survive service stop" test/system/ 1..1 not ok 1 [251] podman-system-service containers survive service stop # (from function `bail-now' in file test/system/helpers.bash, line 187, # from function `is' in file test/system/helpers.bash, line 1112, # in test file test/system/251-system-service.bats, line 65) # `is "$output" "true" "Container is still running after podman server stops"' failed # Running as unit: podman-service-z7P975W3cM.service; invocation ID: 79dea4cc95f943d19adbfcdc778f2c4d # # [22:42:32.516187469] # podman --url tcp://127.0.0.1:5633 run -d --name keeps-running quay.io/libpod/testimage:20241011 top -d 2 # [22:42:32.840803694] b682b1a64d1a30608b95cabd288936430170eb314818edbfbec116604cdc975d # # [22:42:32.850931128] # podman container inspect -l --format {{.State.Running}} # [22:42:32.906345279] true # # [22:42:38.099769486] # podman container inspect keeps-running --format {{.State.Running}} # [22:42:38.159430824] false # #/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv # #| FAIL: Container is still running after podman server stops # #| expected: 'true' # #| actual: 'false' # #\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # # [teardown]
Expected results
The container stopped after service stopped
Actual results
The container still running after service stopped