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 2158635

Summary: podman rm leaves running container behind [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: high Docs Contact:
Priority: urgent    
Version: 8.7CC: arajendr, bbaude, dornelas, dwalsh, gscrivan, jligon, jnovy, lsm5, mboddu, mheon, pthomas, tsweeney, umohnani, ypu
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-4.2.0-8.el8_7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2155828 Environment:
Last Closed: 2023-02-21 09:31:37 UTC Type: ---
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: 2155828    
Bug Blocks:    

Comment 2 Tom Sweeney 2023-01-09 19:33:41 UTC
Assigning to Giuseppe so that we can get the additional fix for https://bugzilla.redhat.com/show_bug.cgi?id=2155828 backported into the Podman v4.2-rhel branch

Comment 4 Alex Jia 2023-01-30 09:48:42 UTC
I can reproduce this bug on podman-4.2.0-6.module+el8.7.0+17498+a7f63b89
and verified it on podman-4.2.0-8.module+el8.7.0+17824+66a0202b.

[root@kvm-01-guest28 ~]# rpm -q podman runc systemd kernel
podman-4.2.0-8.module+el8.7.0+17824+66a0202b.x86_64
runc-1.1.4-1.module+el8.7.0+17498+a7f63b89.x86_64
systemd-239-68.el8_7.2.x86_64
kernel-4.18.0-425.12.1.el8_7.x86_64

[root@kvm-01-guest28 ~]# podman run -d --name test_remove --health-cmd /bin/false --health-interval 5s --health-retries 1 --health-time
out 1s --health-on-failure=stop --health-start-period 5s --stop-signal SIGTERM ubi8 sleep infinity; sleep 8;(ps -ef|grep sleep); podman
 rm test_remove --force
085bcd776ad689e70303a6838dd4d009e387d5658a524b211fc18f8be090280b
root       29582   29573  0 04:43 ?        00:00:00 /usr/bin/coreutils --coreutils-prog-shebang=sleep /usr/bin/sleep infinity
root       29652   11808  0 04:43 ?        00:00:00 sleep 5
root       29655   29653  0 04:43 pts/0    00:00:00 grep --color=auto sleep
085bcd776ad689e70303a6838dd4d009e387d5658a524b211fc18f8be090280b
[root@kvm-01-guest28 ~]# podman ps -a
CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES
[root@kvm-01-guest28 ~]# ps -fww 29582
UID          PID    PPID  C STIME TTY      STAT   TIME CMD

Comment 10 Alex Jia 2023-02-08 13:33:41 UTC
Closing this bug as verified per Comment 4.

Comment 14 errata-xmlrpc 2023-02-21 09:31:37 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 (container-tools:rhel8 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/RHBA-2023:0849