Message boards : ATLAS application : Apptainer vs Singularity
Message board moderation

To post messages, you must log in.

AuthorMessage
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2386
Credit: 223,013,691
RAC: 136,258
Message 46537 - Posted: 27 Mar 2022, 8:08:53 UTC

It may be confusing but Apptainer is just a new name for the software package formerly known as Singularity.
See: https://github.com/apptainer/apptainer

At least on Opensuse Tumbleweed the Apptainer package distributed with the TW repository runs (nearly) out of the box with ATLAS native.
The only ToDo is to add the BOINC user account running ATLAS tasks to the new apptainer group and restart the BOINC service:
[sudo] usermod -a -G apptainer boinc
ID: 46537 · Report as offensive     Reply Quote
David Cameron
Project administrator
Project developer
Project scientist

Send message
Joined: 13 May 14
Posts: 387
Credit: 15,314,184
RAC: 0
Message 46548 - Posted: 29 Mar 2022, 12:47:54 UTC - in response to Message 46537.  

Apptainer is also available in the ATLAS CVMFS area at
/cvmfs/atlas.cern.ch/repo/containers/sw/apptainer/x86_64-el7/current/bin/apptainer


At the moment the functionality is identical to Singularity but it may diverge at some point. In the future ATLAS tasks will all have to switch to Apptainer instead of Singularity, so I will update the ATLAS scripts to be able to use both, then at a later date Singluarity will be phased out.
ID: 46548 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2071
Credit: 156,188,480
RAC: 104,768
Message 46550 - Posted: 29 Mar 2022, 17:01:05 UTC - in response to Message 46548.  

David,
we have this discussion https://lhcathome.cern.ch/lhcathome/forum_thread.php?id=5813
about CentOS9 and CVMFS, do you know something about this new CentOS inside Cern-IT?
ID: 46550 · Report as offensive     Reply Quote
David Cameron
Project administrator
Project developer
Project scientist

Send message
Joined: 13 May 14
Posts: 387
Credit: 15,314,184
RAC: 0
Message 47152 - Posted: 16 Aug 2022, 13:25:16 UTC

We are now testing using apptainer instead of singularity on the dev project

The idea is to use apptainer if it exists and works, and if it doesn't work fallback to singularity if it is installed locally. This means tasks should still work for people using a local singularity. If you would like to help out with testing please send me a private message for an invitation code to the dev project.
ID: 47152 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2071
Credit: 156,188,480
RAC: 104,768
Message 47243 - Posted: 11 Sep 2022, 11:22:39 UTC - in response to Message 47152.  

https://lhcathome.cern.ch/lhcathome/show_host_detail.php?hostid=10677417
[2022-09-11 04:56:22] apptainer is not installed, using version from CVMFS
[2022-09-11 04:56:22] Checking apptainer works with /cvmfs/atlas.cern.ch/repo/containers/sw/apptainer/x86_64-el7/current/bin/apptainer exec -B /cvmfs /cvmfs/atlas.cern.ch/repo/containers/fs/singularity/x86_64-centos7 hostname
[2022-09-11 04:56:23] apptainer isnt working: ERROR : Failed to create user namespace: user namespace disabled
[2022-09-11 04:56:23] 
[2022-09-11 04:56:23] It looks like user namespaces are not enabled, which are required when running apptainer from CVMFS.
[2022-09-11 04:56:23] Please run the following command as root to enable them:
[2022-09-11 04:56:23] echo "user.max_user_namespaces = 15000" > /etc/sysctl.d/90-max_user_namespaces.conf; sysctl -p /etc/sysctl.d/90-max_user_namespaces.conf
05:06:23 (6066): run_atlas exited; CPU time 0.254583
ID: 47243 · Report as offensive     Reply Quote

Message boards : ATLAS application : Apptainer vs Singularity


©2024 CERN