hpc / charliecloud

Now hosted on GitLab.
https://gitlab.com/charliecloud/main
Apache License 2.0
313 stars 61 forks source link

xattrs problem downloading `redhat/ubi8` #1766

Open reidpr opened 11 months ago

reidpr commented 11 months ago
$ cat ~/Dockerfile
FROM redhat/ubi8:latest
RUN dnf install --assumeyes --installroot=/foo filesystem
$ ch-image build --storage=$NFS_FILESYSTEM/ch -t test ~
initializing storage directory: v7 /.../reidpr/ch
initializing empty build cache
  1. FROM redhat/ubi8:latest
manifest list: downloading: 100%
manifest: downloading: 100%
config: downloading: 100%
layer 1/1: 9434331: downloading: 75.6/75.6 MiB (100%)
flattening image
layer 1/1: 9434331: listing
validating tarball members
layer 1/1: 9434331: changed 46 absolute symbolic and/or hard links to relative
resolving whiteouts
layer 1/1: 9434331: extracting
image arch: amd64
copying image from cache ...
something went wrong, rolling back ...
deleting image: redhat/ubi8:latest
error: can’t list xattrs: /.../ch/img/redhat%ubi8+latest: Operation not supported
trace: charliecloud.py:785:ossafe, build_cache.py:281:__init__, build_cache.py:374:git_prepare, build_cache.py:1017:git_prepare, build_cache.py:801:commit, build_cache.py:1076:pull_lazy, build.py:1172:prepare, build.py:246:__default__, visitors.py:241:_call_userfunc, visitors.py:269:visit_topdown, build.py:194:main, ch-image:323:main
reidpr commented 8 months ago

I can’t reproduce and --xattrs is no longer the default, so demoting.

$ export CH_IMAGE_STORAGE=$NFS/storage
$ printf 'FROM redhat/ubi8:latest\nRUN true\n' | ch-image build --xattrs -t foo -
  1. FROM redhat/ubi8:latest
[...]
copying image from cache ...
  2. RUN.S true
copying image from cache ...
ignoring un-restorable file: /var/lib/rpm/__db.001
ignoring un-restorable file: /var/lib/rpm/__db.002
ignoring un-restorable file: /var/lib/rpm/__db.003
--force=seccomp: modified 0 RUN instructions
grown in 2 instructions: foo