Skip to content

Commit

Permalink
fix: actually using CVMFS for creating the pilot wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Dec 20, 2023
1 parent 200ec47 commit 5421252
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ 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
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
2 changes: 2 additions & 0 deletions src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,12 +1108,14 @@ def _writePilotScript(self, workingDirectory, pilotOptions, proxy=None, pilotExe
self.log.exception("Exception during pilot modules files compression", lException=be)

location = Operations().getValue("Pilot/pilotFileServer", "")
CVMFS_locations = Operations().getValue("Pilot/CVMFS_locations")
localPilot = pilotWrapperScript(
pilotFilesCompressedEncodedDict=pilotFilesCompressedEncodedDict,
pilotOptions=pilotOptions,
pilotExecDir=pilotExecDir,
envVariables=envVariables,
location=location,
CVMFS_locations=CVMFS_locations
)

return _writePilotWrapperFile(workingDirectory=workingDirectory, localPilot=localPilot)
Expand Down

0 comments on commit 5421252

Please sign in to comment.