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.
Description of problem:
If we try to run commands inside container with podman exec. The podman exec will failed to exit normally and report an error message:
Error: unlinkat /var/lib/containers/storage/overlay-containers/4dfaf90689fb1d9e9af3c2bb5267732f34685645a6e5c3495bb6defa20d19b62/userdata/9fcb65686c00f255332df33c97afe7700add450c7542cf79f3b9c697c19e40ff: directory not empty
Version-Release number of selected component (if applicable):
podman-3.4.5-0.4.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Start a container
# podman run -d quay.io/libpod/busybox top
Trying to pull quay.io/libpod/busybox:latest...
Getting image source signatures
Copying blob 9758c28807f2 done
Copying config f0b02e9d09 done
Writing manifest to image destination
Storing signatures
4dfaf90689fb1d9e9af3c2bb5267732f34685645a6e5c3495bb6defa20d19b62
2. Run a command with exec
# podman exec 4dfaf90689fb echo hello
hello
Error: unlinkat /var/lib/containers/storage/overlay-containers/4dfaf90689fb1d9e9af3c2bb5267732f34685645a6e5c3495bb6defa20d19b62/userdata/9fcb65686c00f255332df33c97afe7700add450c7542cf79f3b9c697c19e40ff: directory not empty
Actual results:
podman exec exit with error message
Expected results:
The command can exit normally
Additional info:
Tested with podman-4.1.0-2.el9.x86_64 and works as expected now. So set the Tested flag.
[root@kvm-01-guest09 ~]# podman run -d quay.io/libpod/busybox top
WARN[0000] Ignoring global metacopy option, not supported with booted kernel
96910fddaa9ed338e1491efaa8bd38c247286c59f10baf469eaf8fc22911fe75
[root@kvm-01-guest09 ~]# podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
96910fddaa9e quay.io/libpod/busybox:latest top 21 seconds ago Up 21 seconds ago nostalgic_diffie
[root@kvm-01-guest09 ~]# podman exec 96910fddaa9e echo hello
hello
Test with podman-4.1.0-4.el9.x86_64 and it works as expected. So move this to verified:
# podman info
...
graphStatus:
Backing Filesystem: nfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 1
runRoot: /run/containers/storage
volumePath: /var/lib/containers/storage/volumes
version:
APIVersion: 4.1.0
Built: 1653479445
BuiltTime: Wed May 25 07:50:45 2022
GitCommit: ""
GoVersion: go1.17.7
Os: linux
OsArch: linux/amd64
Version: 4.1.0
[root@sweetpig-9 ~]# podman run -d quay.io/libpod/busybox top
2b5000ffd13754cfaa966feba28abc0dbe7ba3ac26668a52c09e63edff22b498
[root@sweetpig-9 ~]# podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2b5000ffd137 quay.io/libpod/busybox:latest top 3 seconds ago Up 3 seconds ago xenodochial_montalcini
[root@sweetpig-9 ~]# podman exec 2b5000ffd137 echo hello
hello
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-2022:7954