Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fanzago cmsathome #11513

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 48 additions & 3 deletions src/python/WMCore/Storage/DeleteMgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,55 @@ def __init__(self, **overrideParams):
if self.override == False:
self.siteCfg = loadSiteLocalConfig()

if self.override:
self.initialiseOverride()
if self.siteCfg.siteName == "T3_CH_CMSAtHome":
self.initialiseCmsAtHome()
else:
self.initialiseSiteConf()
if self.override:
self.initialiseOverride()
else:
self.initialiseSiteConf()

def initialiseCmsAtHome(self):
"""
_initialiseCmsAtHome_

Extract required information about site from the fallback section

"""
overrideParams = {
"command": None,
"option": None,
"phedex-node": None,
"lfn-prefix": None,
}

msg = "### self.siteCfg obj\n"
msg += "%s\n" % self.siteCfg.__dict__

implName = self.siteCfg.fallbackStageOut[0].get("command", None)
if implName == None:
msg = "Unable to retrieve command\n"
raise StageOutInitError(msg)
overrideParams['command'] = implName

pnn = self.siteCfg.fallbackStageOut[0].get("phedex-node", None)
if pnn == None:
msg = "Unable to retrieve phedex-node\n"
raise StageOutInitError(msg)
overrideParams['phedex-node'] = pnn

lfnprefix = self.siteCfg.fallbackStageOut[0].get("lfn-prefix", None)
if lfnprefix == None:
msg = "Unable to retrieve the lfn-prefix\n"
raise StageOutInitError(msg)
overrideParams['lfn-prefix'] = lfnprefix

self.fallbacks.append(overrideParams)
self.pnn = overrideParams['phedex-node']
self.override = True
msg += "### self.fallbacks %s\n" % self.fallbacks
self.logger.info(msg)
return

def initialiseSiteConf(self):
"""
Expand Down