Bug 1937641

Summary: Regression: Overlay mounts is broken on existing directories. [rhel-8.5.0]
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: urgent Docs Contact:
Priority: unspecified    
Version: 8.5CC: bbaude, dwalsh, jligon, jnovy, leiwang, lmiksik, lsm5, mheon, pthomas, tsweeney, umohnani, ypu
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-3.1.0-0.6.el8 or newer Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1935376 Environment:
Last Closed: 2021-11-09 17:37:14 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: 1935376    
Bug Blocks:    

Comment 3 Alex Jia 2021-05-11 09:06:46 UTC
It's failed to build podman-3.1.0-0.6.module+el8.5.0+10359+ad3c7473 in brew system.

Verified on podman-3.1.0-0.8.module+el8.5.0+10387+8d85dbaf.x86_64 w/
crun-0.18-1.module+el8.5.0+10387+8d85dbaf.x86_64 and
runc-1.0.0-70.rc92.module+el8.5.0+10387+8d85dbaf.x86_64.

[root@hpe-dl380pgen8-02-vm-14 ~]# mkdir -p $PWD/test_data/foo/bar
[root@hpe-dl380pgen8-02-vm-14 ~]# podman run --runtime=/usr/bin/crun -ti -v $PWD/test_data:/tmp:O busybox ls -l /
total 16
drwxr-xr-x    2 root     root         12288 Oct 12  2020 bin
drwxr-xr-x    5 root     root           360 May 11 09:05 dev
drwxr-xr-x    1 root     root            54 May 11 09:05 etc
drwxr-xr-x    2 nobody   nobody           6 Oct 12  2020 home
dr-xr-xr-x  127 root     root             0 May 11 09:05 proc
drwx------    2 root     root             6 Oct 12  2020 root
drwxr-xr-t    3 root     root            42 May 11 09:05 run
dr-xr-xr-x   13 root     root             0 May 11  2021 sys
drwxr-xr-x    1 root     root             6 May 11 09:05 tmp
drwxr-xr-x    3 root     root            18 Oct 12  2020 usr
drwxr-xr-x    4 root     root            30 Oct 12  2020 var

[root@hpe-dl380pgen8-02-vm-14 ~]# podman run --runtime=/usr/bin/runc -ti -v $PWD/test_data:/tmp:O busybox ls -l /
total 16
drwxr-xr-x    2 root     root         12288 Oct 12  2020 bin
drwxr-xr-x    5 root     root           360 May 11 09:05 dev
drwxr-xr-x    1 root     root            54 May 11 09:05 etc
drwxr-xr-x    2 nobody   nobody           6 Oct 12  2020 home
dr-xr-xr-x  128 root     root             0 May 11 09:05 proc
drwx------    2 root     root             6 Oct 12  2020 root
drwxr-xr-x    3 root     root            42 May 11 09:05 run
dr-xr-xr-x   13 root     root             0 May 11  2021 sys
drwxr-xr-x    1 root     root             6 May 11 09:05 tmp
drwxr-xr-x    3 root     root            18 Oct 12  2020 usr
drwxr-xr-x    4 root     root            30 Oct 12  2020 var

Comment 7 Alex Jia 2021-08-06 03:37:43 UTC
This bug has been verified on podman-3.3.0-2.module+el8.5.0+12136+c1ac9593.


[root@kvm-07-guest24 ~]# rpm -q runc crun podman kernel
runc-1.0.1-4.module+el8.5.0+12048+8939a3ea.x86_64
crun-0.21-1.module+el8.5.0+12014+438a5746.x86_64
podman-3.3.0-2.module+el8.5.0+12136+c1ac9593.x86_64
kernel-4.18.0-325.el8.x86_64

[root@kvm-07-guest24 ~]podman run --runtime=crun -ti -v $PWD/test_data:/tmp:O quay.io/libpod/busybox ls -l /
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
total 16
drwxr-xr-x    2 root     root         12288 Oct 12  2020 bin
drwxr-xr-x    5 root     root           360 Aug  6 03:35 dev
drwxr-xr-x    1 root     root            66 Aug  6 03:35 etc
drwxr-xr-x    2 nobody   nobody           6 Oct 12  2020 home
dr-xr-xr-x  132 root     root             0 Aug  6 03:35 proc
drwx------    2 root     root             6 Oct 12  2020 root
drwxr-xr-x    3 root     root            42 Aug  6 03:35 run
dr-xr-xr-x   13 root     root             0 Aug  4 07:26 sys
drwxr-xr-x    1 root     root             6 Aug  6 03:35 tmp
drwxr-xr-x    3 root     root            18 Oct 12  2020 usr
drwxr-xr-x    4 root     root            30 Oct 12  2020 var
[root@kvm-07-guest24 ~]# podman run --runtime=runc -ti -v $PWD/test_data:/tmp:O quay.io/libpod/busybox ls -l /
total 16
drwxr-xr-x    2 root     root         12288 Oct 12  2020 bin
drwxr-xr-x    5 root     root           360 Aug  6 03:36 dev
drwxr-xr-x    1 root     root            66 Aug  6 03:36 etc
drwxr-xr-x    2 nobody   nobody           6 Oct 12  2020 home
dr-xr-xr-x  134 root     root             0 Aug  6 03:36 proc
drwx------    2 root     root             6 Oct 12  2020 root
drwxr-xr-x    3 root     root            42 Aug  6 03:36 run
dr-xr-xr-x   13 root     root             0 Aug  4 07:26 sys
drwxr-xr-x    1 root     root             6 Aug  6 03:36 tmp
drwxr-xr-x    3 root     root            18 Oct 12  2020 usr
drwxr-xr-x    4 root     root            30 Oct 12  2020 var

Comment 9 errata-xmlrpc 2021-11-09 17:37:14 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: 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-2021:4154