Project

General

Profile

Support #19658

Change in Singularity requires a change in the wrapper script

Added by Marco Mambelli almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Immediate
Category:
-
Target version:
Start date:
04/11/2018
Due date:
% Done:

0%

Estimated time:
Stakeholders:
Duration:

Description

In the new version of Singularity released today --contain is incompatible w/ mounting by hand tmp "--scratch /var/tmp --scratch /tmp"
The current options in the wrapper script will cause a failure:

        exec "$GWMS_SINGULARITY_PATH" exec $GWMS_SINGULARITY_EXTRA_OPTS \
                               --home $PWD:/srv \
                               --pwd /srv --scratch /var/tmp --scratch /tmp \
                               --contain --ipc --pid  \
                               "$GWMS_SINGULARITY_IMAGE" $JOB_WRAPPER_SINGULARITY  $CMD

The --scratch options should be removed.

History

#1 Updated by Dave Dykstra almost 2 years ago

The version of singularity is 2.4.6. It was released by the singularity project last Friday. OSG hasn't released it yet, it is in testing.

#2 Updated by Marco Mambelli almost 2 years ago

Singularity is invoked in both creation/web_base/frontend/default_singularity_wrapper.sh (fixed in 3.2.22.1) and creation/web_base/singularity_setup.sh (forgotten)

More details
Starting w/ Singularity 2.4.6, available in osg-testing RPM repo (production has still 2.4.2-1.osg34.el6) remounting of directories are not possible
--contain mounts /tmp /var/tmp and other directories (the list is not in the documentation)
--scratch /var/tmp and --scratch /tmp remount those directories, causing a failure

v3/19658 contains all fixes:
creation/web_base/frontend/default_singularity_wrapper.sh and creation/web_base/singularity_setup.sh

#3 Updated by Marco Mambelli almost 2 years ago

  • Status changed from New to Feedback
  • Assignee changed from Marco Mambelli to Dennis Box

#5 Updated by Marco Mambelli almost 2 years ago

  • Target version changed from v3_2_22 to 3_2_22_1

#6 Updated by Marco Mambelli almost 2 years ago

  • Status changed from Feedback to Closed
  • Assignee changed from Dennis Box to Marco Mambelli
  • Target version changed from 3_2_22_1 to 3_2_22_2

Changes part in v3_2_21_post and part in v3/19658
Both files changed (wrapper and setup)



Also available in: Atom PDF