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 2233222 - Containers created with --restart=always do not restart when started through a pod
Summary: Containers created with --restart=always do not restart when started through ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2023-08-15
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: podman
Version: 9.3
Hardware: x86_64
OS: FreeBSD
unspecified
high
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: Alex Jia
URL:
Whiteboard:
Depends On: 2233218
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-21 18:29 UTC by Tom Sweeney
Modified: 2023-11-07 09:54 UTC (History)
12 users (show)

Fixed In Version: podman-4.6.1-5.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2233218
Environment:
Last Closed: 2023-11-07 08:34:03 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github containers podman pull 19692 0 None Merged [v4.6.1-rhel] use container restart policy if user specifies one 2023-08-22 10:58:17 UTC
Red Hat Issue Tracker RHELPLAN-166104 0 None None None 2023-08-21 18:33:44 UTC
Red Hat Product Errata RHSA-2023:6474 0 None None None 2023-11-07 08:34:20 UTC

Description Tom Sweeney 2023-08-21 18:29:27 UTC
+++ This bug was initially created as a clone of Bug #2233218 +++

Description of problem:

containers created with `--restart-always` are not restarting within a pod.

Version-Release number of selected component (if applicable): 4.6.1


Additional info: See GitHub Issue: https://github.com/containers/podman/issues/19671 for full details.

Comment 1 Tom Sweeney 2023-08-21 18:44:25 UTC
@vrothber please backport this fix to the Podman v4.6.1-rhel branch.  Once merged, please set this to post, assign to Jindrich, and set needinfo for him.

Comment 2 Valentin Rothberg 2023-08-22 07:18:10 UTC
Backport has merged: https://github.com/containers/podman/pull/19692

Assigning to Jindrich.

Comment 3 Alex Jia 2023-08-23 05:58:23 UTC
[root@kvm-02-guest03 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.3 Beta (Plow)

[root@kvm-02-guest03 ~]# rpm -q podman podman-tests crun systemd kernel
podman-4.6.1-3.el9.x86_64
podman-tests-4.6.1-3.el9.x86_64
crun-1.8.6-1.el9.x86_64
systemd-252-17.el9.x86_64
kernel-5.14.0-356.el9.x86_64

[root@kvm-02-guest03 ~]# cd /usr/share/podman/
[root@kvm-02-guest03 podman]# bats -t -f "podman pod create restart tests" test/system/
1..1
ok 1 podman pod create restart tests

Comment 12 Alex Jia 2023-08-29 03:48:10 UTC
This bug has been verified on podman-4.6.1-5.el9.

[root@kvm-03-guest22 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.3 Beta (Plow)

[root@kvm-03-guest22 ~]# rpm -q podman podman-tests crun systemd kernel
podman-4.6.1-5.el9.x86_64
podman-tests-4.6.1-5.el9.x86_64
crun-1.8.7-1.el9.x86_64
systemd-252-18.el9.x86_64
kernel-5.14.0-361.el9.x86_64

[root@kvm-03-guest22 ~]# cd /usr/share/podman/
[root@kvm-03-guest22 podman]# bats -t -f "podman pod create restart tests" test/system/
1..1
ok 1 podman pod create restart tests

Comment 14 errata-xmlrpc 2023-11-07 08:34:03 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.