Giter VIP home page Giter VIP logo

Comments (3)

tomeichlersmith avatar tomeichlersmith commented on June 2, 2024

When blindly running a path via these unpacked images, I get a invalid reference format error.

ERRO[0000] cannot find mappings for user teichler: No subuid ranges found for user "teichler" in /etc/subuid
Error: unable to pull /cvmfs/singularity.opensciencegrid.org/cwinpy/cwinpy-containers/cwinpy-dev-python38:latest: error getting default registries to try: invalid reference format

CVMFS points out that updating podman's image store is necessary: https://cvmfs.readthedocs.io/en/stable/cpt-containers.html#podman-integration-pre-production
These instructions are labeled "pre production" so I am not surprised that I see an error when trying it out.

# write a new ~/.config/containers/storage.conf that has the same content as in CVMFS docs
$ podman images
Error: error retrieving label for image "c98db043bed913c5a7b59534cbf8d976122f98b75cb00baabf8af888041e4f9d": you may need to remove the image to resolve the error: error locating item named "sha256:3f57d9401f8d42f986df300f0c69192fc41da28ccc8d797829467780db3dd741" for image with ID "c98db043bed913c5a7b59534cbf8d976122f98b75cb00baabf8af888041e4f9d" (consider removing the image to resolve the issue): file does not exist   

from denv.

tomeichlersmith avatar tomeichlersmith commented on June 2, 2024

I was excited to see on the docs the possibility of using CVMFS as another image store for podman. With this in mind (and hoping to learn a bit more myself), I wanted to report an error I am seeing when attempting to use the test image inside the podmanStore on CVFMS.

I am testing at SLAC S3DF and I am not an admin so I may not be able to answer all clarification questions.

The ~/.config/containers/storage.conf file did not exist previously, so I created it with the contents provided in the docs.

[storage]
driver = "overlay"

[storage.options]
additionalimagestores = [ "/cvmfs/unpacked.cern.ch/podmanStore" ]
# mount_program = "/usr/bin/fuse-overlayfs"

[storage.options.overlay]
mount_program = "/usr/bin/fuse-overlayfs"

Then I get the following error

$ podman image ls
ERRO[0000] cannot find UID/GID for user eichl008: No subuid ranges found for user "eichl008" in /etc/subuid - check rootless mode in man pages.
WARN[0000] Using rootless single mapping into the namespace. This might break some images. Check /etc/subuid and /etc/subgid for adding sub*ids if not using a network user
Error: error retrieving label for image "c98db043bed913c5a7b59534cbf8d976122f98b75cb00baabf8af888041e4f9d": you may need to remove the image to resolve the error: error locating item named "sha256:3f57d9401f8d42f986df300f0c69192fc41da28ccc8d797829467780db3dd741" for image with ID "c98db043bed913c5a7b59534cbf8d976122f98b75cb00baabf8af888041e4f9d" (consider removing the image to resolve the issue): file does not exist

The first two messages appear like an issue with the podman installation/configuration, so I ran a test with an image manually downloaded into my own image store.

$ mv ~/.config/containers/storage.conf{,.cvmfs}
$ podman run --rm hello-world
!... Hello Podman World ...!

         .--"--.           
       / -     - \         
      / (O)   (O) \        
   ~~~| -=(,Y,)=- |         
    .---. /`  \   |~~      
 ~/  o  o \~~~~.----. ~~   
  | =(X)= |~  / (O (O) \   
   ~~~~~~~  ~| =(Y_)=-  |   
  ~~~~    ~~~|   U      |~~ 

Project:   https://github.com/containers/podman
Website:   https://podman.io
Desktop:   https://podman-desktop.io
Documents: https://docs.podman.io
YouTube:   https://youtube.com/@Podman
X/Twitter: @Podman_io
Mastodon:  @[email protected]
$ podman image ls
REPOSITORY            TAG         IMAGE ID      CREATED     SIZE
quay.io/podman/hello  latest      b1c06f48960c  4 days ago  1.7 MB

However, when I try to run the same image that is served in CVMFS's podman store, I get an error seemingly related to the other errors I saw before.

$ podman pull busybox:latest
Resolved "busybox" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/busybox:latest...
Getting image source signatures
Copying blob 7b2699543f22 done  
Error: writing blob: adding layer with blob "sha256:7b2699543f22d5b8dc8d66a5873eb246767bca37232dee1e7a3b8c9956bceb0c": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 65534:65534 for /home): Check /etc/subuid and /etc/subgid if configured locally and run podman-system-migrate: lchown /home: invalid argument
$ podman image ls
REPOSITORY            TAG         IMAGE ID      CREATED     SIZE
quay.io/podman/hello  latest      b1c06f48960c  4 days ago  1.7 MB

So perhaps this is an issue with SLAC's configuration of podman, but I find it suspect that the actual error reported by podman when attempting to read CVMFS's image store is a missing file error. Maybe this points to an issue with CVMFS's image store format?

Context

$ podman --version
podman version 4.1.1
$ cvmfs2 --version
CernVM-FS version 2.11.2
$ apptainer --version
apptainer version 1.2.5-1.el8

from denv.

tomeichlersmith avatar tomeichlersmith commented on June 2, 2024

https://docs.docker.com/reference/cli/docker/image/import/#import-from-a-local-directory gives me hope that we could at least copy an image from CVMFS into a docker/podman image format which can then be run.

from denv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.