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 2158632 - podman rm leaves running container behind
Summary: podman rm leaves running container behind
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: podman
Version: 9.2
Hardware: Unspecified
OS: Linux
urgent
high
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: Alex Jia
URL:
Whiteboard:
Depends On: 2155828
Blocks: 2158636
TreeView+ depends on / blocked
 
Reported: 2023-01-05 21:57 UTC by Tom Sweeney
Modified: 2023-05-09 08:52 UTC (History)
16 users (show)

Fixed In Version: podman-4.4.0-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2155828
: 2158636 (view as bug list)
Environment:
Last Closed: 2023-05-09 07:41:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github containers podman pull 16978 0 None Merged libpod: fix race condition rm'ing stopping containers 2023-01-06 15:01:26 UTC
Red Hat Issue Tracker RHELPLAN-144065 0 None None None 2023-01-05 22:31:17 UTC
Red Hat Product Errata RHSA-2023:2282 0 None None None 2023-05-09 07:43:14 UTC

Comment 11 Alex Jia 2023-02-13 09:29:49 UTC
This bug has been verified on podman-4.4.0-1.el9.x86_64.

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

[root@kvm-01-guest01 ~]# rpm -q podman crun systemd kernel
podman-4.4.0-1.el9.x86_64
crun-1.8-1.el9.x86_64
systemd-252-4.el9.x86_64
kernel-5.14.0-252.el9.x86_64

[root@kvm-01-guest01 ~]# (
podman run -d --name test_remove --health-cmd /bin/false --health-interval 5s --health-retries 1 --health-timeout 1s --health-on-failure=stop --health-start-period 5s --stop-signal SIGTERM ubi8 sleep infinity
sleep 8
ps -ef|grep sleep
podman ps -a
podman rm test_remove --force
)
Resolved "ubi8" as an alias (/etc/containers/registries.conf.d/001-rhel-shortnames.conf)
Trying to pull registry.access.redhat.com/ubi8:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob ea0a20a2c448 skipped: already exists  
Copying config 55e87c8c55 done  
Writing manifest to image destination
Storing signatures
dcc9751e0dec13a5110245e10260f72ff9f370d05f630dbab2fe73702eedf1a9
root       24065   24063  0 04:27 ?        00:00:00 /usr/bin/coreutils --coreutils-prog-shebang=sleep /usr/bin/sleep infinity
root       24083   13331  0 04:27 ?        00:00:00 sleep 5
root       24098   23954  0 04:28 pts/0    00:00:00 grep --color=auto sleep
CONTAINER ID  IMAGE                                   COMMAND         CREATED        STATUS                PORTS       NAMES
dcc9751e0dec  registry.access.redhat.com/ubi8:latest  sleep infinity  8 seconds ago  Stopping (unhealthy)              test_remove
test_remove
[root@kvm-01-guest01 ~]# podman ps -a
CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES
[root@kvm-01-guest01 ~]# ps -fww 24065
UID          PID    PPID  C STIME TTY      STAT   TIME CMD

Comment 13 errata-xmlrpc 2023-05-09 07:41: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 and bug fix 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:2282


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