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

Comparing COMP/CRAB/python/SchedulerGlite.py (file contents):
Revision 1.78 by spigafi, Wed Feb 3 14:59:30 2010 UTC vs.
Revision 1.80 by farinafa, Thu Apr 29 10:23:06 2010 UTC

# Line 45 | Line 45 | class SchedulerGlite(SchedulerGrid):
45      def rb_configure(self, RB):
46          url ='http://cmsdoc.cern.ch/cms/LCG/crab/config/'
47          from Downloader import Downloader
48 +        import httplib
49          common.logger.debug('Downloading config files for WMS: '+url)
50          ## 25-Jun-2009 SL: patch to use Cream enabled WMS
51          if ( self.cfg_params.get('GRID.use_cream',None) ):
# Line 54 | Line 55 | class SchedulerGlite(SchedulerGrid):
55          configFileName = 'glite_wms_'+str(RB)+'.conf'
56  
57          results = Downloader(url)
58 <        gliteConfig  = results.filePath(configFileName)
58 >        try:
59 >            gliteConfig  = results.filePath(configFileName)
60 >        except httplib.HTTPException, ex:
61 >            raise CrabException( "Problem getting RB config file: %s, reason:"%(configFileName, ex) )
62  
63          if (gliteConfig ):
64              rb_param_file = gliteConfig
# Line 166 | Line 170 | class SchedulerGlite(SchedulerGrid):
170          sched_param+='MyProxyServer = "' + self.proxyServer + '";\n'
171          sched_param+='VirtualOrganisation = "' + self.VO + '";\n'
172          sched_param+='RetryCount = '+str(self.EDG_retry_count)+';\n'
173 +        sched_param+='DefaultNodeRetryCount = '+str(self.EDG_retry_count)+';\n'
174          sched_param+='ShallowRetryCount = '+str(self.EDG_shallow_retry_count)+';\n'
175 +        sched_param+='DefaultNodeShallowRetryCount = '+str(self.EDG_shallow_retry_count)+';\n'
176  
177          return sched_param
178  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines