Skip to content

Commit c4fb2f2

Browse files
author
Maria A
committed
Adding X509 transfer support
1 parent 6db4fef commit c4fb2f2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lumberjack/bin/lumberjack_start.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ if [[ ${HTC_ROLE} == *"CentralManager"* ]]; then
3434
SINGULARITY_IMAGE="htcondor_centralmgr_lumberjack.sif"
3535
test -e $JOB_QUEUE_FILE || (echo "Job queue file does not exist" ; exit 1)
3636
echo "I am a central manager, writing my info at ${PWD}/90_central_mgr_info"
37-
env
3837
n=`printf %05d $COBALT_PARTNAME`
3938
MY_NODEID="nid$n"
4039
cat >${PWD}/90_central_mgr <<EOF
@@ -60,7 +59,7 @@ echo "$timestamp Configuring CVMFS, if successful, start HTCondor"
6059
# singularity run --env JOB_QUEUE_FILE=/srv/job_queue.log --env SPOOL_DIR=${SPOOL_DIR} --env LOG_DIR=${LOG_DIR} --bind /etc/hosts --bind /projects/HEPCloud-FNAL/job_area/${SLOT_PREFIX}:/srv --bind /cvmfs --bind ${SSD_SCRATCH} --home /srv ${SSD_SCRATCH}/${SINGULARITY_IMAGE}
6160
# singularity instance start --containall --bind /etc/hosts --bind ${PWD}/${SLOT_PREFIX}/local_dir:/srv --bind ${PWD}/${SLOT_PREFIX}/condor:/etc/condor --hostname ${CONTAINER_NAME} /root/fnalhpc_startd/lumberjack/singularity/${SINGULARITY_IMAGE} ${CONTAINER_NAME}
6261
echo "singularity run --containall --bind /etc/hosts --bind local_dir:/srv --bind condor:/etc/condor /projects/HEPCloud-FNAL/containers/${SINGULARITY_IMAGE}"
63-
singularity --debug --verbose run --containall --bind /etc/hosts --bind local_dir:/srv --bind condor:/etc/condor /projects/HEPCloud-FNAL/containers/${SINGULARITY_IMAGE}
62+
singularity run --containall --bind /etc/hosts --bind local_dir:/srv --bind condor:/etc/condor /projects/HEPCloud-FNAL/containers/${SINGULARITY_IMAGE}
6463
} ||
6564
{
6665
echo "$timestamp Startd or cvmfsexec exited with errors, stopping local squid and cleaning up"

lumberjack/bin/minicondor_hpc_submit

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ do
137137
FILE_LIST="${FILE_LIST},"\"$file\"
138138
# echo "scp root@${ORIG_SCHEDD_HOST}:${ORIG_IWD}/$file ${NEWLOC}"
139139
done
140+
141+
ORIG_X509=$(grep -wR 'x509userproxy' job_queue.log | awk '{print $4}' | sort -u | awk -F/ '{print $NF}' | tr -d \")
142+
FILE_LIST="${FILE_LIST},"\"${ORIG_X509}\"
143+
140144
echo -e "${MGT}# Tips:"
141145
echo "To pull the files from the local(HPC) login node, first make sure that there is networking connectivity between the login node and the remote schedd via SSH (port 22), files will be copied via 'scp'. If both networking and authentication via ssh are possible from the login node to the remote Schedd, this script will automatically atemmpt to run the following scp command and pull the necessary files:" | fold | awk '{ print "\t" $0 }'
142146
echo ""
@@ -215,4 +219,4 @@ echo Submitting COBALT job
215219
# Submit cobalt job
216220
cd ${THETA_BASE_DIR}; qsub -A ${ALLOCATION} -q ${QUEUE} -t ${TIME} -n ${NODE_CNT} --jobname=${SLOT_PREFIX} --attr ssds=required:enable_ssh=1 job.cobalt
217221
echo ""
218-
echo Done!!! check your job and files at ${THETA_BASE_DIR}
222+
echo Done.. Check your job and files at ${THETA_BASE_DIR}

0 commit comments

Comments
 (0)