Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2130911

Summary: [RFE]Podman support to perform custom actions on unhealthy containers [rhel-8.7.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Alex Jia <ajia>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.6CC: ajia, bbaude, dornelas, dwalsh, dwojewod, jligon, jnovy, jwboyer, lsm5, mheon, pthomas, snanda, toneata, tsweeney, umohnani, vrothber, wwurzbac, ypu
Target Milestone: rcKeywords: FutureFeature, Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: podman-4.2.0-1.el8 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 2097708
: 2136281 (view as bug list) Environment:
Last Closed: 2022-11-08 11:30:48 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2097708, 2131741    
Bug Blocks: 2136281    

Comment 17 Alex Jia 2022-10-18 03:11:55 UTC
This bug has been verified on podman-4.2.0-2.module+el8.7.0+16894+3f997fa3.


[root@kvm-06-guest19 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.7 (Ootpa)

[root@kvm-06-guest19 ~]# rpm -q podman runc systemd kernel
podman-4.2.0-2.module+el8.7.0+16894+3f997fa3.x86_64
runc-1.1.4-1.module+el8.7.0+16894+3f997fa3.x86_64
systemd-239-68.el8.x86_64
kernel-4.18.0-425.3.1.el8.x86_64


[root@kvm-06-guest19 podman]# git rev-parse HEAD
4978898a5cec40e0aa3506917250604b00f0eabf
[root@kvm-06-guest19 podman]# git branch
  main
* v4.2.0-rhel
[root@kvm-06-guest19 podman]# bats -t -f "podman create --health-on-failure=kill"  test/system/250-systemd.bats
1..1
ok 1 podman create --health-on-failure=kill
[root@kvm-06-guest19 podman]# bats -t test/system/220-healthcheck.bats
1..2
ok 1 podman healthcheck
ok 2 podman healthcheck --health-on-failure

Comment 22 errata-xmlrpc 2022-11-08 11:30:48 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 (Low: container-tools:rhel8 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-2022:7822

Comment 23 Red Hat Bugzilla 2023-09-19 04:27:21 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days