Skip to content

Commit

Permalink
feat: getting CVMFS locations from pilot_newSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Nov 3, 2023
1 parent b023dbf commit 1aa64eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Pilot/pilotTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,10 @@ def __initJSON2(self):
self.releaseProject = pilotOptions.get("Project", self.releaseProject) # default from the code.
self.log.debug("Release project: %s" % self.releaseProject)

self.CVMFS_locations = pilotOptions.get("CVMFS_locations", self.CVMFS_locations) # default from the code.
self.log.debug("CVMFS locations: %s" % self.CVMFS_locations)


def getPilotOptionsDict(self):
"""
Get pilot option dictionary by searching paths in a certain order (commands, logging etc.).
Expand Down
9 changes: 6 additions & 3 deletions tests/CI/pilot_newSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
"UploadPath": "/gridpp/pilotlogs/",
"RemoteLoggerTimerInterval": 0,
"LoggingShifterName": "GridPPLogManager",
"PilotLogLevel": "DEBUG"
"PilotLogLevel": "DEBUG",
"CVMFS_locations": ["/cvmfs/grid.cern.ch", "/cvmfs/dirac.egi.eu"]
}
},
"dteam": {
Expand All @@ -127,7 +128,8 @@
"RemoteLogging": "True",
"RemoteLoggerURL": "https://lbcertifdirac70.cern.ch:8443/WorkloadManagement/TornadoPilotLogging",
"RemoteLoggerTimerInterval": 0,
"PilotLogLevel": "DEBUG"
"PilotLogLevel": "DEBUG",
"CVMFS_locations": ["/cvmfs/grid.cern.ch", "/cvmfs/dirac.egi.eu"]
}
},
"LHCb": {
Expand All @@ -139,7 +141,8 @@
"GenericPilotDN": "VAR_USERDN",
"RemoteLogging": "False",
"RemoteLoggerTimerInterval": 0,
"PilotLogLevel": "DEBUG"
"PilotLogLevel": "DEBUG",
"CVMFS_locations": ["/cvmfs/lhcb.cern.ch/", "$VO_LHCB_SW_DIR"]
}
},
"ConfigurationServers": [
Expand Down

0 comments on commit 1aa64eb

Please sign in to comment.