-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image which moves symlink aside and then adds file built with rootless container upsets k3s ctr images import #1195
Comments
…age is built with rootless podman. Addressing + sudo k3s ctr images import freeipa-server-fedora-35.tar time="2022-03-25T07:23:38Z" level=info msg="apply failure, attempting cleanup" error="failed to extract layer sha256:64e8fb95a984e12e57b3212ac58af9e22d5b61d5aedded66b0defc4511b1b9ba: operation not permitted: unknown" key="extract-94102839-Psjp sha256:447f847d9efe9ab32775aa4159049ddecc371b39351f2f3438f1914bf1f2e88d" ctr: failed to extract layer sha256:64e8fb95a984e12e57b3212ac58af9e22d5b61d5aedded66b0defc4511b1b9ba: operation not permitted: unknown unpacking localhost/freeipa-server:fedora-35 (sha256:a1c20fa99d9b18f677a97db08099bea6f1e2e360d1a0e9d397e9fff42464df9b)... Workaround https://github.com/containers/podman/issues/13819
…age is built with rootless podman. Addressing + sudo k3s ctr images import freeipa-server-fedora-35.tar time="2022-03-25T07:23:38Z" level=info msg="apply failure, attempting cleanup" error="failed to extract layer sha256:64e8fb95a984e12e57b3212ac58af9e22d5b61d5aedded66b0defc4511b1b9ba: operation not permitted: unknown" key="extract-94102839-Psjp sha256:447f847d9efe9ab32775aa4159049ddecc371b39351f2f3438f1914bf1f2e88d" ctr: failed to extract layer sha256:64e8fb95a984e12e57b3212ac58af9e22d5b61d5aedded66b0defc4511b1b9ba: operation not permitted: unknown unpacking localhost/freeipa-server:fedora-35 (sha256:a1c20fa99d9b18f677a97db08099bea6f1e2e360d1a0e9d397e9fff42464df9b)... Workaround https://github.com/containers/podman/issues/13819
Hi @adelton , Thanks for creating the issue, are you using I am not at all sure if |
Maybe this issue can be moved away from |
All I really know about that |
Looks like kernel overlay, not fuse-overlay, from the output of |
The difference looks like it's a native-diff/naive-diff difference. Whiteouts created by naive diff (which is what you're seeing when you're root) have 0 permissions, but whiteouts converted from native diff output (which is what you're seeing when you're not root) are getting their mode set to 0o600. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When an image is built which adds a symlink, moves it aside, and then adds a file instead, importing such image to k3s' containerd fails when it was built with rootless podman. The only difference that I could find compared to
sudo podman
anddocker
built images is ownership and permissions on the whiteout file.Steps to reproduce the issue:
Dockerfile.busybox
withpodman build -t localhost/remove-symlink:podman-rootless -f Dockerfile.busybox .
podman save localhost/remove-symlink:podman-rootless > remove-symlink-podman-rootless.tar
sudo k3s ctr images import remove-symlink-podman-rootless.tar
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
The
manifest.json
says (output ofjq
):The third tar which moves the symlink aside is
When I do the same steps with
sudo podman
ordocker
, that tar has the whiteout files with permissions completely cleared:While I did not find any information about the expected permissions on those whiteout files, it seems rootless podman does something slightly different / incompatible. It should likely create the
.wh.nothing
file in the tarball with permissions 000. And/or use the numerical uid/gid.The GitHub Actions reproducer is at https://github.com/adelton/freeipa-container/actions/runs/2143864363.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
I see this on GitHub Action's ubuntu-20.04.
The text was updated successfully, but these errors were encountered: