Skip to content

Commit 096bb08

Browse files
authored
Merge pull request #7341 from fstagni/80_fixes80
[8.0] docs: added doc for PreInstalledPilotEnv
2 parents 460fa7a + 8618ff8 commit 096bb08

File tree

2 files changed

+14
-16
lines changed
  • docs/source
    • AdministratorGuide/Systems/WorkloadManagement/Pilots
    • UserGuide/GettingStarted/InstallingClient

2 files changed

+14
-16
lines changed

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

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DIRAC pilots
88
:keywords: Pilots3, Pilot3, Pilot
99

1010
This page describes what are DIRAC pilots, and how they work.
11-
To know how to develop DIRAC pilots, please refer to the Developers documentation
11+
To know how to develop DIRAC pilots, please refer to the Developers documentation.
1212

1313
Pilot development is done in https://github.com/DIRACGrid/Pilot
1414

@@ -29,16 +29,18 @@ or IAAC (Infrastructure as a Client) provided that these machines are properly c
2929

3030
A pilot has, at a minimum, to:
3131

32-
- install DIRAC
32+
- install or setup DIRAC, or an extension of it
3333
- configure DIRAC
3434
- run the JobAgent
3535

36-
A pilot has to run on each and every computing resource type, provided that:
36+
where:
3737

38-
- Python 2.6+ on the WN
39-
- It is an OS onto which we can install a DIRAC client.
40-
- if that's not possible, we plan to add support for singularity
38+
- install means installing DIRAC like described in :ref:`dirac_install`
39+
- setup means that DIRAC code can already be found in the current file system, and it is only a matter of invoking a rc file that would add DIRAC paths
40+
- configure means adding dirac specific configuration files (which, at a minimum, should include the location of a DIRAC configuration service)
4141

42+
43+
A pilot has to run on each and every computing resource type, provided that Python 2.6+ is on the WN.
4244
The same pilot script can be used everywhere.
4345

4446
.. image:: Pilots2.png
@@ -72,18 +74,20 @@ Administration
7274

7375
The following CS section is used for administering the DIRAC pilots::
7476

75-
Operations/<Setup>/Pilot
77+
Operations/Defaults/Pilot
7678

7779
These parameters will be interpreted by the WorkloadManagementSystem/SiteDirector agents, and by the WorkloadManagementSystem/Matcher.
7880
They can also be accessed by other services/agents, e.g. for syncing purposes.
7981

8082
Inside this section, you should define the following options, and give them a meaningful value (here, an example is given)::
8183

82-
# Needed by the SiteDirector:
83-
Version = v7r2p1 # DIRAC version(s)
84+
# For the SiteDirector:
85+
Version = 8.0.32 # DIRAC version(s) -- a comma-separated list can be provided
8486
Project = myVO # Your project name: this will end up in the /LocalSite/ReleaseProject option of the pilot cfg, and will be used at matching time
8587
Extensions = myVO # The DIRAC extension (if any)
8688
Installation = mycfg.cfg # For an optional configuration file, used by the installation script.
89+
PreInstalledEnv = /cvmfs/some/where/specific/bashrc # A specific rc file to source for setting up DIRAC
90+
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
8791
# For the Matcher
8892
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).
8993

@@ -242,19 +246,13 @@ A simple example using the LHCbPilot extension follows::
242246
DIRAC_PILOT='https://lhcb-portal-dirac.cern.ch/pilot/dirac-pilot.py'
243247
DIRAC_PILOT_TOOLS='https://lhcb-portal-dirac.cern.ch/pilot/pilotTools.py'
244248
DIRAC_PILOT_COMMANDS='https://lhcb-portal-dirac.cern.ch/pilot/pilotCommands.py'
245-
DIRAC_PILOT_LOGGER='https://lhcb-portal-dirac.cern.ch/pilot/PilotLogger.py'
246-
DIRAC_PILOT_LOGGERTOOLS='https://lhcb-portal-dirac.cern.ch/pilot/PilotLoggerTools.py'
247-
DIRAC_PILOT_MESSAGESENDER='https://lhcb-portal-dirac.cern.ch/pilot/MessageSender.py'
248249
LHCbDIRAC_PILOT_COMMANDS='https://lhcb-portal-dirac.cern.ch/pilot/LHCbPilotCommands.py'
249250

250251
#
251252
##get the necessary scripts
252253
wget --no-check-certificate -O dirac-pilot.py $DIRAC_PILOT
253254
wget --no-check-certificate -O pilotTools.py $DIRAC_PILOT_TOOLS
254255
wget --no-check-certificate -O pilotCommands.py $DIRAC_PILOT_COMMANDS
255-
wget --no-check-certificate -O PilotLogger.py $DIRAC_PILOT_LOGGER
256-
wget --no-check-certificate -O PilotLoggerTools.py $DIRAC_PILOT_LOGGERTOOLS
257-
wget --no-check-certificate -O MessageSender.py $DIRAC_PILOT_MESSAGESENDER
258256
wget --no-check-certificate -O LHCbPilotCommands.py $LHCbDIRAC_PILOT_COMMANDS
259257

260258
#run the dirac-pilot script

docs/source/UserGuide/GettingStarted/InstallingClient/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.. _dirac_install:
21

32
.. set highlighting to console input/output
43
.. highlight:: console
54

5+
.. _dirac_install:
66

77
=======================
88
Installing DIRAC client

0 commit comments

Comments
 (0)