hepsw / docks

a set of Dockerfiles defining docker containers for HEP software and appliances.
BSD 3-Clause "New" or "Revised" License
17 stars 13 forks source link

cvmfs content for cvmfs-atlas #5

Closed berghaus closed 9 years ago

berghaus commented 9 years ago

Hi,

I'm trying to setup the ATLAS software environment. On by way there I ran into this issue when looking into the atlas.cern.ch repository:

$ docker run --privileged hepsw/cvmfs-atlas -c "ls /cvmfs/"
atlas-condb.cern.ch 
atlas.cern.ch
cernvm-prod.cern.ch
sft.cern.ch

$ docker run --privileged hepsw/cvmfs-atlas -c "ls /cvmfs/atlas.cern.ch/"

$ docker run --privileged hepsw/cvmfs-atlas -c "ls /cvmfs/atlas.cern.ch/repo"
ls: cannot access /cvmfs/atlas.cern.ch/repo: No such file or directory

That last directory should be getting cached in. So the repository exists, but I cannot get any of the content in the repository.

sbinet commented 9 years ago

Hi Frank, I am currently on the move. I'll have a look at this next week.

berghaus commented 9 years ago

Thanks! Happy travels.

sbinet commented 9 years ago

hi Frank,

when you run the container like so:

$ docker run --privileged hepsw/cvmfs-atlas -c "some command"

the /root/.bashrc file is not executed so /root/run-cvmfs.sh is, in turn, not run. so, no CVMFs daemon is running, hence, no real meat under /cvmfs/xyz.

the following works, though:

$ docker run --privileged hepsw/cvmfs-atlas -c "/root/run-cvmfs.sh; ls /cvmfs/atlas.cern.ch/repo/"
::: mounting FUSE...
CernVM-FS: running with credentials 499:497
CernVM-FS: loading Fuse module... done
CernVM-FS: mounted cvmfs on /cvmfs/cernvm-prod.cern.ch
CernVM-FS: running with credentials 499:497
CernVM-FS: loading Fuse module... done
CernVM-FS: mounted cvmfs on /cvmfs/sft.cern.ch
CernVM-FS: running with credentials 499:497
CernVM-FS: loading Fuse module... done
CernVM-FS: mounted cvmfs on /cvmfs/atlas.cern.ch
CernVM-FS: running with credentials 499:497
CernVM-FS: loading Fuse module... done
CernVM-FS: mounted cvmfs on /cvmfs/atlas-condb.cern.ch
::: mounting FUSE... [done]
ATLASLocalRootBase
conditions
dev
sw
tools

I am tempted to close this as "working as intended" although I am quite aware launching the CVMFs daemon in a more robust way is in dire need.

(so... closing, but feel free to re-open)