Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Other options that can be set also in the Operations part of the CS include:
| *CVMFS_locations* | CVMFS locations to use for finding pilot | CVMFS_locations = /cvmfs/lhcb.cern.ch/,/cvmfs/lhcbdev.cern.ch |
| | files, DIRAC installations, CAs, CRLS | |
+------------------------------------+--------------------------------------------+-------------------------------------------------------------------------+
| *workDir* | Local directory of the master CS where the | workDir = /tmp/pilotSyncDir |
| | files will be downloaded before the upload | There is no default (so /opt/dirac/runit/Configuration/Server) |
| *ArchitectureScript* | The script to be used for | ArchitectureScript = dirac-apptainer-exec dirac-platform |
| | discovering the local architecture. | Default: dirac-platform |
+------------------------------------+--------------------------------------------+-------------------------------------------------------------------------+


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ Inside this section, you should define the following options, and give them a me
Installation = mycfg.cfg # For an optional configuration file, used by the installation script.
PreInstalledEnv = /cvmfs/some/where/specific/bashrc # A specific rc file to source for setting up DIRAC
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
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. Those same locations will also be used by the Pilot Wrapper to try and find the pilot files in /cvmfs/some/{releaseProject}dirac/pilot/.
# For the Matcher
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).

Expand Down
5 changes: 5 additions & 0 deletions src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,11 @@ def _getPilotOptions(self, queue: str) -> list[str]:
else:
self.log.info("DIRAC project will be installed by pilots")

# Architecture script to use
architectureScript = opsHelper.getValue("Pilot/ArchitectureScript", "")
if architectureScript:
pilotOptions.append(f"--architectureScript={architectureScript}")

# Preinstalled environment or list of CVMFS locations defined ?
preinstalledEnv = opsHelper.getValue("Pilot/PreinstalledEnv", "")
preinstalledEnvPrefix = opsHelper.getValue("Pilot/PreinstalledEnvPrefix", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def test_getPilotWrapper(mocker, sd, pilotWrapperDirectory):
# Get pilot options
pilotOptions = sd._getPilotOptions("ce1.site1.com_condor")
assert {
"--architectureScript=123",
"--preinstalledEnv=123",
"--wnVO=dteam",
"-n LCG.Site1.com",
Expand Down
Loading