From 0259c4a3d1a666c4db77fb861bc5ab9ce0175b40 Mon Sep 17 00:00:00 2001 From: fstagni Date: Fri, 3 Nov 2023 16:25:39 +0100 Subject: [PATCH] feat: getting CVMFS locations from pilot_newSchema --- Pilot/pilotTools.py | 4 ++++ tests/CI/pilot_newSchema.json | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Pilot/pilotTools.py b/Pilot/pilotTools.py index 79ec3c3e..6f9a0f30 100644 --- a/Pilot/pilotTools.py +++ b/Pilot/pilotTools.py @@ -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.). diff --git a/tests/CI/pilot_newSchema.json b/tests/CI/pilot_newSchema.json index 977001c5..8caa6f5a 100644 --- a/tests/CI/pilot_newSchema.json +++ b/tests/CI/pilot_newSchema.json @@ -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": { @@ -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": { @@ -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": [