Bug 1935376

Summary: Regression: Overlay mounts is broken on existing directories.
Product: Red Hat Enterprise Linux 8 Reporter: Daniel Walsh <dwalsh>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Alex Jia <ajia>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.4CC: bbaude, dwalsh, jligon, jnovy, lmiksik, lsm5, mheon, pthomas, tsweeney, umohnani, ypu
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-3.0.1-4.el8 or newer and buildah-1.19.7-1.el8 or newer Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1937641 (view as bug list) Environment:
Last Closed: 2021-05-18 15:34:31 UTC Type: Bug
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:    
Bug Blocks: 1937641    

Description Daniel Walsh 2021-03-04 18:23:26 UTC
sudo /bin/podman run -ti -v $PWD/test_data:/tmp:O busybox ls -l /
Error: OCI runtime error: invalid mount type for ``

Comment 12 Alex Jia 2021-03-23 14:31:21 UTC
I can reproduce this bug on podman-3.0.1-3.module+el8.4.0+10198+36d1d0e3
w/ buildah-1.19.6-1.module+el8.4.0+10198+36d1d0e3.

[root@hp-dl360g9-03 ~]# mkdir -p $PWD/test_data/foo/bar
[root@hp-dl360g9-03 ~]# podman run -ti -v $PWD/test_data:/tmp:O busybox ls -l /
Error: OCI runtime error: invalid mount type for ``


And this bug has been verified on podman-3.0.1-4.module+el8.4.0+10300+f3642519
and podman-3.0.1-6.module+el8.4.0+10398+842aaf04 w/
buildah-1.19.7-1.module+el8.4.0+10398+842aaf04.


[root@hp-dl360g9-03 ~]# rpm -q podman buildah
podman-3.0.1-6.module+el8.4.0+10398+842aaf04.x86_64
buildah-1.19.7-1.module+el8.4.0+10398+842aaf04.x86_64

[root@hp-dl360g9-03 ~]# podman run -ti -v $PWD/test_data:/tmp:O busybox ls -l /
total 16
drwxr-xr-x    2 root     root         12288 Jun 27  2020 bin
drwxr-xr-x    5 root     root           360 Mar 23 14:25 dev
drwxr-xr-x    1 root     root            54 Mar 23 14:25 etc
drwxr-xr-x    2 nobody   nogroup          6 Jun 27  2020 home
dr-xr-xr-x  237 root     root             0 Mar 23 14:25 proc
drwx------    2 root     root             6 Jun 27  2020 root
drwxr-xr-x    3 root     root            42 Mar 23 14:25 run
dr-xr-xr-x   13 root     root             0 Mar 23 12:22 sys
drwxr-xr-x    1 root     root             6 Mar 23 14:25 tmp
drwxr-xr-x    3 root     root            18 Jun 27  2020 usr
drwxr-xr-x    4 root     root            30 Jun 27  2020 var

Comment 14 errata-xmlrpc 2021-05-18 15:34:31 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:1796