RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2180108 - --health-on-failure=restart doesn't restart container
Summary: --health-on-failure=restart doesn't restart container
Keywords:
Status: CLOSED ERRATA
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-11-07 09:57 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: 2023-11-07 08:33:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


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
Red Hat Product Errata RHSA-2023:6474 0 None None None 2023-11-07 08:35:28 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

Comment 14 errata-xmlrpc 2023-11-07 08:33:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: podman security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:6474


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