DIRACGrid/DIRAC — Issue #382: InputDataByProtocol and close SEs
Author: fstagni
Created: 2011-12-15 14:04:55+00:00
State: open

Within the LHCb installation, we are experiencing an issue when trying to run jobs that use the InputDataByProtocol client.

Consider the following setup: the sites NIKHEF and SARA are both "sharing" the same SEs, this way: in the CS, under "Resources/Sites/" the SEs are attached only to SARA. In the "Operations/lhcb/SiteLocalSeMapping" section (wrong name IMO, it should be "SiteCloseSEmapping"), the same SEs are set to be close at NIKHEF. All this is true also for IN2P3 and IN2Pr3-T2.

When user jobs are running e.g. on SARA-DST data, "multiple" sites (NIKHEF and SARA) are selected, which is normal. When the job is run at SARA, everything is fine. When it's run at NIKHEF, it fails.
This is because the variable "localSEList" at line 43 of "InputDataByProtocol" is None. I didn't check all the code since I'm not the expert of the WMS, but seems to me this value is taken from the local job configuration "/LocalSite/LocalSE' which is apparently built from inspecting at the fixed CS location '/Resources/Sites/%s/%s/SE' (line 365 of the dirac-configure script).