41 |
|
|
42 |
|
#check if using "private" Storage |
43 |
|
self.usePhedex = True |
44 |
+ |
stage_out_faq='https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrabFaq#How_to_store_output_with_CRAB_2' |
45 |
+ |
if not self.node : |
46 |
+ |
msg = 'Please specify the storage_element name in your crab.cfg section [USER].\n' |
47 |
+ |
msg +=' For further information please visit : %s'%stage_out_faq |
48 |
+ |
raise CrabException(msg) |
49 |
|
if (self.node.find('T1_') + self.node.find('T2_')+self.node.find('T3_')) == -3: self.usePhedex = False |
50 |
|
if not self.usePhedex and ( self.user_lfn == '' or self.user_se_path == '' ): |
51 |
|
msg = 'You are asking to stage out without using CMS Storage Name convention. In this case you \n' |
52 |
|
msg += ' must specify both lfn and storage_path in the crab.cfg section [USER].\n ' |
53 |
< |
msg += ' For further information please visit: ADD_TWIKI_LINK' |
53 |
> |
msg += ' For further information please visit : %s'%stage_out_faq |
54 |
|
raise CrabException(msg) |
55 |
|
self.sched = common.scheduler.name().upper() |
56 |
|
self.protocol = self.srm_version |
216 |
|
msg+=' OriginalSubmission: stageout path is not retrieved from %s \n'%fullurl |
217 |
|
raise CrabException(msg) |
218 |
|
else: |
219 |
< |
stageoutpfn = 'srm://'+self.node+':'+self.user_port+self.user_se_path+self.lfn |
219 |
> |
if self.sched in ['CAF','LSF'] : |
220 |
> |
stageoutpfn = self.user_se_path+self.lfn |
221 |
> |
else: |
222 |
> |
stageoutpfn = 'srm://'+self.node+':'+self.user_port+self.user_se_path+self.lfn |
223 |
|
|
224 |
|
return stageoutpfn |
225 |
|
|