Bug 538436

Summary: Spool dir absence/creation needs to be accounted for in dependent scripts
Product: Red Hat Enterprise MRG Reporter: Pete MacKinnon <pmackinn>
Component: gridAssignee: Pete MacKinnon <pmackinn>
Status: CLOSED DUPLICATE QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: DevelopmentCC: iboverma, matt, willb
Target Milestone: 1.3   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-12 22:10:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pete MacKinnon 2009-11-18 15:45:08 UTC
Recent changes have been made such that Condor doesn't necessarily create a local spool dir unless explicitly configured.

http://condor-wiki.cs.wisc.edu/index.cgi/chngview?cn=16085

Some of the packaged scripts such as sshd.sh and lamscript (MPI wrapper) rely on a non-null value of _CONDOR_REMOTE_SPOOL_DIR. We need to address this in documentation or changes to the affected scripts so that there is no assumption that the spool directory is present.

./condor_scripts/lamscript:_CONDOR_REMOTE_SPOOL_DIR=$_CONDOR_REMOTE_SPOOL_DIR
./condor_scripts/sshd.sh:_CONDOR_REMOTE_SPOOL_DIR=$_CONDOR_REMOTE_SPOOL_DIR
./condor_scripts/sshd.sh:$CONDOR_CHIRP put -perm 0700 $idkey $_CONDOR_REMOTE_SPOOL_DIR/$_CONDOR_PROCNO.key
./condor_scripts/sshd.sh:	$CONDOR_CHIRP put -mode cwa - $_CONDOR_REMOTE_SPOOL_DIR/contact 
./condor_scripts/sshd.sh:			$CONDOR_CHIRP fetch $_CONDOR_REMOTE_SPOOL_DIR/contact $_CONDOR_SCRATCH_DIR/contact
./condor_scripts/sshd.sh:						$CONDOR_CHIRP fetch $_CONDOR_REMOTE_SPOOL_DIR/$node.key $_CONDOR_SCRATCH_DIR/tmp/$node.key
./condor_scripts/sshd.sh:						$CONDOR_CHIRP remove $_CONDOR_REMOTE_SPOOL_DIR/$node.key 
./condor_scripts/sshd.sh:				$CONDOR_CHIRP remove $_CONDOR_REMOTE_SPOOL_DIR/contact

Comment 3 Pete MacKinnon 2010-04-12 21:27:44 UTC
We could create a spool dir by checking for WANT_REMOTE_IO in the submit. However, it's unclear we even need the SPOOL dir for things like sshd.sh (/tmp anyone?)

Comment 4 Matthew Farrellee 2010-04-12 22:10:46 UTC

*** This bug has been marked as a duplicate of bug 549432 ***