<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>3803</bug_id>
          
          <creation_ts>2005-10-05 18:26</creation_ts>
          <short_desc>Default scratchDirectory doesn&apos;t exist</short_desc>
          <delta_ts>2012-09-05 11:42:53</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>GRAM</product>
          <component>wsrf managed execution job service</component>
          <version>4.0.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.2.1</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jaime Frey">jfrey@cs.wisc.edu</reporter>
          <assigned_to name="Stuart Martin">smartin@mcs.anl.gov</assigned_to>
          <cc>dangulo@cs.uchicago.edu</cc>
    
    <cc>greenc@fnal.gov</cc>
    
    <cc>lane@mcs.anl.gov</cc>
    
    <cc>madduri@mcs.anl.gov</cc>
    
    <cc>roy@cs.wisc.edu</cc>
    
    <cc>rynge@isi.edu</cc>
    
    <cc>smartin@mcs.anl.gov</cc>

      

      
          <long_desc isprivate="0">
            <who name="Jaime Frey">jfrey@cs.wisc.edu</who>
            <bug_when>2005-10-05 18:26:00</bug_when>
            <thetext>At some point, the default value for scratchDirectory in WS-GRAM (set in $GL/etc/gram-service-*/jndi-
config.xml) was changed to ${GLOBUS_USER_HOME}/.globus/scratch. This directory doesn&apos;t exist, so jobs 
that try to use the scratch directory (like Condor-G) hang for long periods of time while RFT fails to create 
files under the directory. I don&apos;t know if or when RFT will time out or how GRAM will react. In the mean 
time, the client has no idea that there&apos;s a problem.

The default value for scratchDirectory should either already exist or be created automatically by Globus.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Peter Lane">lane@mcs.anl.gov</who>
            <bug_when>2005-11-02 20:25:35</bug_when>
            <thetext>We deliberately decided that the scratch directory should not be managed by GRAM
since we can&apos;t know the intentions of the administrator regarding the scratch
directory.  The substitution variable is provided as a convenience to the the
administrator for pointing people at the desired scratch area.  If the
administrator didn&apos;t create the scratch directory, then we are assuming that it
shouldn&apos;t be used.  I think the proper thing to do is to throw an error if
${SCRATCH_DIR} is used and scratchDirectory is not specified explicitly (i.e.
provide no default).  We debated this idea when we were changing it from the
dangerous default of ~/, but people (myself included, IIRC) thought that a sane
default was warranted.  It seems, though, that this just causes frustration and
false expectations.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jaime Frey">jfrey@cs.wisc.edu</who>
            <bug_when>2005-11-02 20:51:02</bug_when>
            <thetext>I think part of the problem is a difference in how the scratchDirectory is perceived. I&apos;ve also viewed it as a 
base directory, and every job should have a subdirectory under it. In writing Condor-G, I thought &quot;Globus 
tells me where to create my job&apos;s scratch directory, but I create it as part of the job.&quot; Since the 
scratchDirectory is shared across all jobs, it makes no sense to store job files directly in it (rather than in 
subdirectories). So I expected the scratchDirectory to already exist.

My design choice would be for GRAM to automatically create a scratch directory for every job and that&apos;s 
the default directory for the job. The directory is deleted along with the job. If the submitter wants the job 
to run in a different directory, they can say so and at worst you have an extra empty directory for the life 
of the job.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Peter Lane">lane@mcs.anl.gov</who>
            <bug_when>2006-10-12 11:13:26</bug_when>
            <thetext>*** Bug 4768 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Stuart Martin">smartin@mcs.anl.gov</who>
            <bug_when>2012-09-05 11:42:53</bug_when>
            <thetext>Doing some bugzilla cleanup...  Resolving old GRAM3 and GRAM4 issues that are no longer relevant since we&apos;ve moved on to GRAM5.  Also, we&apos;re now tracking issue in jira.  Any new issues should be added here:

http://jira.globus.org/secure/VersionBoard.jspa?selectedProjectId=10363</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>