Bug 2180108 - --health-on-failure=restart doesn't restart container
Summary: --health-on-failure=restart doesn't restart container
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: podman
Version: 9.3
Hardware: All
OS: All
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: Alex Jia
URL:
Whiteboard:
Depends On: 2179369
Blocks: 2180126
TreeView+ depends on / blocked
 
Reported: 2023-03-20 17:58 UTC by Tom Sweeney
Modified: 2023-06-25 03:28 UTC (History)
21 users (show)

Fixed In Version: podman-4.4.1-5.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2179369
: 2180126 (view as bug list)
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github containers podman pull 17863 0 None Merged [v4.4.1-rhel] fix --health-on-failure=restart in transient unit 2023-03-21 12:42:09 UTC
Red Hat Issue Tracker RHELPLAN-152451 0 None None None 2023-03-20 17:59:57 UTC

Comment 1 Tom Sweeney 2023-03-20 18:04:32 UTC
assigning to Valentin

Comment 2 Tom Sweeney 2023-03-20 18:35:05 UTC
Creating a ZeroDay for this BZ

Comment 4 Valentin Rothberg 2023-03-21 08:32:47 UTC
Opened PR: https://github.com/containers/podman/pull/17864

Comment 5 Valentin Rothberg 2023-03-21 11:55:00 UTC
PR has merged, assigning to Jindrich.

Comment 8 Alex Jia 2023-03-27 09:30:18 UTC
This bug has been verified on podman-4.4.1-6.el9.x86_64.

[root@kvm-02-guest06 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 9.2 Beta (Plow)

[root@kvm-02-guest06 ~]# rpm -q podman crun systemd kernel
podman-4.4.1-6.el9.x86_64
crun-1.8.3-1.el9.x86_64
systemd-252-13.el9_2.x86_64
kernel-5.14.0-289.el9.x86_64

[root@kvm-02-guest06 podman]# bats -t test/system/220-healthcheck.bats 
1..4
ok 1 podman healthcheck
ok 2 podman healthcheck - restart cleans up old state
ok 3 podman healthcheck --health-on-failure
ok 4 podman healthcheck --health-on-failure with interval

Comment 9 Alex Jia 2023-05-15 03:02:07 UTC
This bug also is verified on podman-4.5.0-1.el9 with crun-1.8.3-1.el9.

Comment 12 Alex Jia 2023-06-25 03:28:44 UTC
This bug is verified both on podman-4.5.1-2.el9 and podman-4.5.0-4.el9 with crun-1.8.5-1.el9.

[root@kvm-04-guest04 podman]# bats -f "health-on-failure"  -t test/system/220-healthcheck.bats
1..2
ok 1 podman healthcheck --health-on-failure
ok 2 podman healthcheck --health-on-failure with interval


Note You need to log in before you can comment on or make changes to this bug.