Skip to content

Commit e9d5937

Browse files
authored
Merge pull request #7359 from fstagni/80_add_CVMFS_locations
[8.0] SiteDirector: add option for CVMFS_locations
2 parents 2c273ae + 6867ac9 commit e9d5937

File tree

2 files changed

+6
-2
lines changed
  • docs/source/AdministratorGuide/Systems/WorkloadManagement/Pilots
  • src/DIRAC/WorkloadManagementSystem/Agent

2 files changed

+6
-2
lines changed

docs/source/AdministratorGuide/Systems/WorkloadManagement/Pilots/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Inside this section, you should define the following options, and give them a me
8888
Installation = mycfg.cfg # For an optional configuration file, used by the installation script.
8989
PreInstalledEnv = /cvmfs/some/where/specific/bashrc # A specific rc file to source for setting up DIRAC
9090
PreInstalledEnvPrefix = /cvmfs/some/where/ # Location where DIRAC installations can be found. The Pilot will then try and find the following: /cvmfs/some/where/{Version/}{platform}/diracosrc
91+
CVMFS_locations = /cvmfs/some/ # Comma-separated list of locations where DIRAC installations, CAs and CRLs can be found. The Pilot will then try and find the following: /cvmfs/some/{releaseProject}dirac/{Version/}{platform}/diracosrc and /cvmfs/some/etc/grid-security/certificates
9192
# For the Matcher
9293
CheckVersion = False # True by default, if false any version would be accepted at matching level (this is a check done by the WorkloadManagementSystem/Matcher service).
9394

@@ -96,7 +97,7 @@ Further details:
9697
- *Version* is the version of DIRAC that the pilots will install. Add the version of your DIRAC extension if you have one. A list of versions can also be added here, meaning that all these versions will be accepted by the Matcher (see below), while only the first in the list will be the one used by the pilots for knowing which DIRAC version to install (e.g. if Version=v7r0p2,v7r0p1 then pilots will install version v7r0p2)
9798
- *Project* is, normally, the same as *Extensions*
9899
- When the *CheckVersion* option is "True", the version checking done at the Matcher level will be strict, which means that pilots running different versions from those listed in the *Versions* option will refuse to match any job. There is anyway the possibility to list more than one version in *Versions*; in this case, all of them will be accepted by the Matcher.
99-
100+
- DIRAC versions are pre-installed on CVMFS in the following location: `/cvmfs/dirac.egi.eu`. From there `/cvmfs/dirac.egi.eu/dirac` contains DIRAC installations, like `/cvmfs/dirac.egi.eu/dirac/v8.0.32`, which can be sourced with `. /cvmfs/dirac.egi.eu/dirac/v8.0.32/Linux-x86_64/diracosrc`
100101

101102

102103
Pilot Commands

src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,13 +1024,16 @@ def _getPilotOptions(self, queue, **kwargs):
10241024
else:
10251025
self.log.info("DIRAC project will be installed by pilots")
10261026

1027-
# Preinstalled environment defined ?
1027+
# Preinstalled environment or list of CVMFS locations defined ?
10281028
preinstalledEnv = opsHelper.getValue("Pilot/PreinstalledEnv", "")
10291029
preinstalledEnvPrefix = opsHelper.getValue("Pilot/PreinstalledEnvPrefix", "")
1030+
CVMFS_locations = opsHelper.getValue("Pilot/CVMFS_locations", "")
10301031
if preinstalledEnv:
10311032
pilotOptions.append(f"--preinstalledEnv={preinstalledEnv}")
10321033
elif preinstalledEnvPrefix:
10331034
pilotOptions.append(f"--preinstalledEnvPrefix={preinstalledEnvPrefix}")
1035+
elif CVMFS_locations:
1036+
pilotOptions.append(f"--CVMFS_locations={CVMFS_locations}")
10341037

10351038
# Pilot Logging defined?
10361039
if opsHelper.getValue("/Services/JobMonitoring/usePilotsLoggingFlag", False):

0 commit comments

Comments
 (0)