ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/cmscp.py
(Generate patch)

Comparing COMP/CRAB/python/cmscp.py (file contents):
Revision 1.93 by fanzago, Thu Sep 13 11:14:31 2012 UTC vs.
Revision 1.94 by belforte, Wed Jan 9 14:59:47 2013 UTC

# Line 8 | Line 8 | except:
8   from ProdCommon.Storage.SEAPI.SElement import SElement, FullPath
9   from ProdCommon.Storage.SEAPI.SBinterface import *
10   from ProdCommon.Storage.SEAPI.Exceptions import *
11 + from ProdCommon.FwkJobRep.SiteLocalConfig import loadSiteLocalConfig
12 +
13  
14  
15   class cmscp:
# Line 179 | Line 181 | class cmscp:
181              ## here we can add support for any kind of protocol,
182              ## maybe some local schedulers need something dedicated
183              pass
184 +        
185 +        # force lstore protocol for Vanderbilt, waiting for better
186 +        # long term solution
187 +        if os.path.exists('/usr/local/cms-stageout') and \
188 +           ( os.uname()[1].endswith('.vampire') or \
189 +             os.uname()[1].endwith('vanderbilt.edu') ):
190 +            print "*** I am at Vanderbilt. Trying lstore first ***"
191 +            supported_protocol.insert(0, ('lstore','') )
192 +            
193          return supported_protocol
194  
195  
# Line 460 | Line 471 | class cmscp:
471              return results
472  
473          self.hostname = Destination_SE.hostname
474 <        if Destination_SE.protocol in ['gridftp','rfio','srmv2','hadoop','local']:
474 >        if Destination_SE.protocol in ['gridftp','rfio','srmv2','hadoop','lstore','local']:
475              try:
476                  self.createDir( Destination_SE, Destination_SE.protocol )
477              except OperationException, ex:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines