Bug 1936927
| Summary: | regressions cp command in Podman v3.0 | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Valentin Rothberg <vrothber> | |
| Component: | podman | Assignee: | Jindrich Novy <jnovy> | |
| Status: | CLOSED ERRATA | QA Contact: | Alex Jia <ajia> | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 8.4 | CC: | bbaude, dwalsh, jligon, jnovy, lmiksik, lsm5, mheon, pthomas, ptrourke, travier, tsweeney, umohnani, ypu | |
| Target Milestone: | rc | Keywords: | Regression, Triaged | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | podman-3.0.1-6.el8 or newer | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1937830 1942300 (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: | 1937830, 1942300 | |||
|
Description
Valentin Rothberg
2021-03-09 13:54:15 UTC
Setting to Post and assigning to Jindrich for packaging needs. Failed to copy the root directory from the container to an existing directory on the host.
[tester@ibm-x3650m4-01-vm-11 ~]$ podman unshare cat /proc/self/uid_map
0 1001 1
1 165536 65536
[tester@ibm-x3650m4-01-vm-11 ~]$ id
uid=1001(tester) gid=1001(tester) groups=1001(tester) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[tester@ibm-x3650m4-01-vm-11 ~]$ rpm -q podman
podman-3.0.1-5.module+el8.4.0+10349+cc884770.x86_64
[tester@ibm-x3650m4-01-vm-11 ~]$ podman info | grep -iA2 runtime
ociRuntime:
name: crun
package: crun-0.18-1.module+el8.4.0+10349+cc884770.x86_64
[tester@ibm-x3650m4-01-vm-11 ~]$ mkdir -p /tmp/foo/bar
[tester@ibm-x3650m4-01-vm-11 ~]$ podman run --name myctr -td quay.io/libpod/alpine top
53a97febe1d72497f33d1809e8f1bc6240549658e5da1d4e23d74ef8c7cb2627
[tester@ibm-x3650m4-01-vm-11 ~]$ podman exec myctr touch /dummy.txt
[tester@ibm-x3650m4-01-vm-11 ~]$ podman exec myctr ls -a
.
bin
dev
dummy.txt
etc
home
lib
media
mnt
opt
proc
root
run
sbin
srv
sys
tmp
usr
var
[tester@ibm-x3650m4-01-vm-11 ~]$ podman cp myctr:/ /tmp/foo/bar
Error: 1 error occurred:
* error copying from container: copier: get: "/"("/"): copier: get: error reading "/proc/tty/driver": open /proc/tty/driver: permission denied
(In reply to Alex Jia from comment #13) > [tester@ibm-x3650m4-01-vm-11 ~]$ podman cp myctr:/ /tmp/foo/bar > Error: 1 error occurred: > * error copying from container: copier: get: "/"("/"): copier: get: > error reading "/proc/tty/driver": open /proc/tty/driver: permission denied BTW, it's okay for rootfull mode. Valentin, is the result Alex is seeing in rootless expected? https://bugzilla.redhat.com/show_bug.cgi?id=1936927#c13 The result is *not* expected. I missed to backport one change to address the rootless EPERMs but I opened a PR to fix that in v3.0.1-rhel: https://github.com/containers/podman/pull/9732 Thank you Alex for catching it. Setting back to assigned and to Valentin. https://github.com/containers/podman/pull/9732#event-4472291008 has merged, assigning to Jindrich for packaging needs and setting to POST. This bug has been verified on podman-3.0.1-6.module+el8.4.0+10398+842aaf04 w/ rootless enabled. [test@hpe-dl380pgen8-02-vm-10 ~]$ podman cp myctr:/ /tmp/foo/bar [test@hpe-dl380pgen8-02-vm-10 ~]$ ls /tmp/foo/bar bin dummy.txt etc home lib media mnt opt root run sbin srv tmp usr var In addition, all of existing upstream tests for podman cp are passed on podman-3.0.1-6.module+el8.4.0+10398+842aaf04 w/ rootless and rootful mode enabled, including system and e2e tests. 1. system tests podman cp file from host to container podman cp file from host to container tmpfs mount podman cp file from host to container and check ownership podman cp file from container to host podman cp dir from host to container podman cp dir from container to host podman cp symlinked directory from container podman cp file from host to container volume podman cp file from host to container mount podman cp * - wildcard copy multiple files from container to host podman cp - will not recognize symlink pointing into host space podman cp - will not expand globs in host space (#3829) podman cp - will not expand wildcard podman cp into container: weird symlink expansion podman cp into a subdirectory matching GraphRoot podman cp from stdin to container podman cp from container to stdout 17 tests, 0 failures 2. e2e tests podman cp volume 1.854742 podman cp the root directory from the ctr to an existing directory on the host 2.421050 podman cp symlink 2.449840 podman cp from ctr chown 2.813634 podman cp file 2.933309 Ran 5 of 1388 Specs in 171.117 seconds SUCCESS! -- 5 Passed | 0 Failed | 0 Pending | 1383 Skipped PASS 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 |