[Moabusers] $HOSLIST = NULL in PROLOGE
Justin Bronder
jsbronder at gmail.com
Fri May 11 09:53:42 MDT 2007
The hostlist variable is returning NULL in Moab 5.1.0p2 when used from the
JOBPROLOG interface. This did work in Moab 5.0.0, and I'm using the
documentation located here:
http://www.clusterresources.com/products/mwm/docs/3.5credoverview.shtml#jobprolog
I just set this up now to check that the newest Moab is working correctly
before I roll it out into the cluster, so it's likely that I just missed
something foolish in the configuration. Any suggestions?
jbronder at silver ~/pbs $ mschedctl --version
moab client version 5.1.0p2 (snap NA) (rev. 6762)
/* Moab.cfg */
CLASSCFG[gentoo] JOBPROLOG='/usr/local/sbin/cidcapt_wrapper $HOSTLIST $JOBID gentoo'
/* cidcapt_wrapper */
#!/bin/bash
echo "$0 $1 $2 $3" >> /var/log/cidcapt.log
/usr/local/sbin/cidcapt -n $1 -j $2 -i $3
rc=$?
echo "$0 exited with $rc"
exit $rc
/* /var/log/cidcapt.log */
jbronder at silver ~/pbs $ cat /var/log/cidcapt.log
/usr/local/sbin/cidcapt_wrapper NULL 3 gentoo
/* PBS Script */
jbronder at silver ~/pbs $ cat go
#!/bin/bash
#PBS -q gentoo
#PBS -l walltime=10:00
#PBS -l nodes=2
hostname
Initially, checkjob will show two nodes allocated to the job. Then the
prolog fails because we need the hostlist to be set to call cidcapt. After
which the job gets a batch hold placed upon it.
--
Justin Bronder
High Performance Computing
University of Maine, Orono
20 Godfrey Dr
Orono, ME 04473
www.clusters.umaine.edu
More information about the moabusers
mailing list