Skip to content

Commit 1467f2f

Browse files
authored
Merge pull request #8175 from fstagni/80_SD_archi_script3
[8.0] fix: the architecture script can be set in the options
2 parents 5b12abc + f57ce0e commit 1467f2f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Other options that can be set also in the Operations part of the CS include:
5050
| *CVMFS_locations* | CVMFS locations to use for finding pilot | CVMFS_locations = /cvmfs/lhcb.cern.ch/,/cvmfs/lhcbdev.cern.ch |
5151
| | files, DIRAC installations, CAs, CRLS | |
5252
+------------------------------------+--------------------------------------------+-------------------------------------------------------------------------+
53-
| *workDir* | Local directory of the master CS where the | workDir = /tmp/pilotSyncDir |
54-
| | files will be downloaded before the upload | There is no default (so /opt/dirac/runit/Configuration/Server) |
53+
| *ArchitectureScript* | The script to be used for | ArchitectureScript = dirac-apptainer-exec dirac-platform |
54+
| | discovering the local architecture. | Default: dirac-platform |
5555
+------------------------------------+--------------------------------------------+-------------------------------------------------------------------------+
5656

5757

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ 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. Those same locations will also be used by the Pilot Wrapper to try and find the pilot files in /cvmfs/some/{releaseProject}dirac/pilot/.
9291
# For the Matcher
9392
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).
9493

src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,11 @@ def _getPilotOptions(self, queue, **kwargs):
10271027
else:
10281028
self.log.info("DIRAC project will be installed by pilots")
10291029

1030+
# Architecture script to use
1031+
architectureScript = opsHelper.getValue("Pilot/ArchitectureScript", "")
1032+
if architectureScript:
1033+
pilotOptions.append(f"--architectureScript={architectureScript}")
1034+
10301035
# Preinstalled environment or list of CVMFS locations defined ?
10311036
preinstalledEnv = opsHelper.getValue("Pilot/PreinstalledEnv", "")
10321037
preinstalledEnvPrefix = opsHelper.getValue("Pilot/PreinstalledEnvPrefix", "")

0 commit comments

Comments
 (0)