-
Bug
-
Resolution: Not a Bug
-
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?
Pass the --stop-signal, --stop-timeout from podman command line and check the value with systemctl show. The value is not changed if we set the cgroupManager to cgroupfs. It works when the cgroupManager is set to systemd. This is from a test case added for systemd, but from the man page, there is nothing shows the flags that only works with systemd. Please help to check if we need to fix the man page or the code.
What is the impact of this issue to you?
The value is always a fixed value and can not change from command line.
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 system test
bats -t -f "podman passes down the KillSignal and StopTimeout setting" test/system/ 1..1 not ok 1 [250] podman passes down the KillSignal and StopTimeout setting # tags: ci:parallel # (from function `bail-now' in file test/system/helpers.bash, line 187, # from function `assert' in file test/system/helpers.bash, line 1062, # in test file test/system/250-systemd.bats, line 537) # `assert "$output" == "TimeoutStopUSec=7s"' failed # # [21:42:42.348819572] # podman run -d --name systemd_test_t1-aknkxagg --stop-signal 5 --stop-timeout 7 --rm quay.io/libpod/testimage:20241011 top # [21:42:42.510504827] a0c0f9785469f81b596c6d9a49aca42c3e3052d90362fe30da0d8ab872fbc0e7 # # [21:42:42.520711389] # podman inspect systemd_test_t1-aknkxagg --format {{ .Id }} # [21:42:42.574179684] a0c0f9785469f81b596c6d9a49aca42c3e3052d90362fe30da0d8ab872fbc0e7 # #/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv # #| FAIL: podman inspect systemd_test_t1-aknkxagg --format {{ .Id }} # #| expected: TimeoutStopUSec=7s # #| actual: TimeoutStopUSec=1min 30s # #\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # # [teardown]
Expected results
Man page shows the flags only works with systemd or the command can work with cgroupfs.
Actual results
When set the cgroup manager to cgroupfs, the stop related flag is not working.