podman stop --ignore returns an error if --cidfile argument is used #19546
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.
Issue Description
We noticed this issue after upgrade to RHEL 8.8 and podman v4.4.1, when timer-driven systemd services kept restarting. It turns out that this line in systemd service file kept failing with an error
I am not able to test with latest upstream at the moment.
Steps to reproduce the issue
Steps to reproduce the issue
podman stop --ignore --cidfile=whatever.cid
# should not return any errors but doesecho$?
# returns 125On the other hand,
podman stop --ignore nonexistent-container
exits with0
.Describe the results you received
Error was returned, even though it should be ignored. systemd services kept restarting because of it.
Describe the results you expected
Error should not be returned and
podman stop --ignore
should exit with0
.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: