Error setting up pivot dir
I run podman on lustre filesystem. When I run "podman load -i centos7.9.2009.tar.gz", in order to import an image. The following error is output. ------------------------------------ Getting image source signatures Copying blob 174f56854903 done ERRO[0003] Error while applying layer: ApplyLayer exit status 1 stdout: stderr: Error setting up pivot dir: mkdir /public1/home/wugh/.local/share/containers/storage/vfs/dir/174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02/.pivot_root527142738: permission denied Error: payload does not match any of the supported image formats (oci, oci-archive, dir, docker-archive) ------------------------------------ I think there is something to be supported on lustre. $ podman version Version: 3.3.1 API Version: 3.3.1 Go Version: go1.16.13 Git Commit: 08e1bd24196d92e1b377d4d38480581cfa9bf7ac-dirty Built: Tue Mar 15 15:02:28 2022 OS/Arch: linux/amd64
Thanks for reaching out! On Wed, Mar 16, 2022 at 8:28 AM None via Podman <podman@lists.podman.io> wrote:
I run podman on lustre filesystem. When I run "podman load -i centos7.9.2009.tar.gz", in order to import an image. The following error is output. ------------------------------------ Getting image source signatures Copying blob 174f56854903 done ERRO[0003] Error while applying layer: ApplyLayer exit status 1 stdout: stderr: Error setting up pivot dir: mkdir /public1/home/wugh/.local/share/containers/storage/vfs/dir/174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02/.pivot_root527142738: permission denied Error: payload does not match any of the supported image formats (oci, oci-archive, dir, docker-archive) ------------------------------------ I think there is something to be supported on lustre.
Does `podman pull` work? Any chance to try out a more recent version of Podman? Kind regards, Valentin
$ podman version Version: 3.3.1 API Version: 3.3.1 Go Version: go1.16.13 Git Commit: 08e1bd24196d92e1b377d4d38480581cfa9bf7ac-dirty Built: Tue Mar 15 15:02:28 2022 OS/Arch: linux/amd64 _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
My host is centos-7.9.2009, so I only build podman-3.3.1. I had built podman-4.0, but there is some diffcutly. $ origpodman pull quay.io/centos/centos:centos7.9.2009 Trying to pull quay.io/centos/centos:centos7.9.2009... Getting image source signatures Copying blob 2d473b07cdd5 done ERRO[0059] Error while applying layer: ApplyLayer exit status 1 stdout: stderr: Error setting up pivot dir: mkdir /public1/home/wugh/.local/share/containers/storage/vfs/dir/174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02/.pivot_root036571359: permission denied Error: writing blob: adding layer with blob "sha256:2d473b07cdd5f0912cd6f1a703352c82b512407db6b05b43f2553732b55df3bc": ApplyLayer exit status 1 stdout: stderr: Error setting up pivot dir: mkdir /public1/home/wugh/.local/share/containers/storage/vfs/dir/174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02/.pivot_root036571359: permission denied
On Wed, Mar 16, 2022 at 11:33 AM None via Podman <podman@lists.podman.io> wrote:
My host is centos-7.9.2009, so I only build podman-3.3.1. I had built podman-4.0, but there is some diffcutly.
That explains the issue. CentOS 7 is much too old. Please stick with Podman v1.6.4 on 7. For more recent versions, please upgrade to Stream 8 or Stream 9.
$ origpodman pull quay.io/centos/centos:centos7.9.2009 Trying to pull quay.io/centos/centos:centos7.9.2009... Getting image source signatures Copying blob 2d473b07cdd5 done ERRO[0059] Error while applying layer: ApplyLayer exit status 1 stdout: stderr: Error setting up pivot dir: mkdir /public1/home/wugh/.local/share/containers/storage/vfs/dir/174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02/.pivot_root036571359: permission denied Error: writing blob: adding layer with blob "sha256:2d473b07cdd5f0912cd6f1a703352c82b512407db6b05b43f2553732b55df3bc": ApplyLayer exit status 1 stdout: stderr: Error setting up pivot dir: mkdir /public1/home/wugh/.local/share/containers/storage/vfs/dir/174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02/.pivot_root036571359: permission denied _______________________________________________ Podman mailing list -- podman@lists.podman.io To unsubscribe send an email to podman-leave@lists.podman.io
But when I add --root to podman, it runs successfully. $ podman --root /tmp/wugh/.local/share/containers/storage pull quay.io/centos/centos:centos7.9.2009 Trying to pull quay.io/centos/centos:centos7.9.2009... Getting image source signatures Copying blob 2d473b07cdd5 [--------------------------------------] 0.0b / 0.0b Copying config 8652b9f0cb done Writing manifest to image destination Storing signatures 8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf
None via Podman <podman@lists.podman.io> writes:
I run podman on lustre filesystem. When I run "podman load -i centos7.9.2009.tar.gz", in order to import an image. The following error is output. ------------------------------------ Getting image source signatures Copying blob 174f56854903 done ERRO[0003] Error while applying layer: ApplyLayer exit status 1 stdout: stderr: Error setting up pivot dir: mkdir /public1/home/wugh/.local/share/containers/storage/vfs/dir/174f5685490326fc0a1c0f5570b8663732189b327007e47ff13d2ca59673db02/.pivot_root527142738: permission denied Error: payload does not match any of the supported image formats (oci, oci-archive, dir, docker-archive) ------------------------------------ I think there is something to be supported on lustre.
lustre is a network filesystem and likely it doesn't work from a user namespace, you can use it as root though. Newer podman versions have some checks in place that will automatically switch to use fuse-overlayfs with network file systems but that feature is not going to be backported to RHEL 7. Regards, Giuseppe
participants (3)
-
Giuseppe Scrivano -
ugiwgh@qq.com -
Valentin Rothberg