Skip to content

[Bug]: genericOptions should be a list of options but only last given option takes effect #284

Description

@maxnoe

Search before creating an issue

  • I have searched existing issues and confirmed this is not a duplicate

Bug Description

dirac-pilot/Pilot/pilotTools.py
910:        self.genericOption = ""
1209:                self.genericOption = v

dirac-pilot/Pilot/pilotCommands.py
378:            if "diracInstallOnly" in self.pp.genericOption:
400:            if "cvmfsOnly" in self.pp.genericOption:

dirac/src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py
651:            for genericOption in queueDict["GenericOptions"].split(","):
652:                pilotOptions.append(f"-o {genericOption.strip()}")

From the code, it is clear that:

  • genericOption is meant to be given multiple times
  • but the parsing code only stores the last of the given -o options

Steps to Reproduce

No response

Expected Behavior

No response

Actual Behavior

No response

Environment

No response

Relevant Log Output

2026-08-25T13:18:36.258748Z DEBUG [PilotParams] Options list: [('-l', 'CTA'), ('-e', 'CTA'), ('-N', 'dirac-ce'), ('-Q', 'normal'), ('-n', 'CT
AO.CI.de'), ('--wnVO', 'ctao.dpps.test'), ('-o', 'cvmfsOnly'), ('-o', '/LocalSite/SharedArea=/home/dirac'), ('--userEnvVariables', 'RUCIO_CON
FIG:::/cvmfs/sw.ctao.dpps.test/rucio/etc/rucio.cfg'), ('--PollingTime', '10'), ('--CVMFS_locations', '/'), ('--pilotUUID', 'd8d38f28fe154c3ba
fb28ecf25b6aaa6')]

...

2026-08-25T13:18:36.273046Z INFO [InstallDIRAC] Evaluating env script /ctadirac/3.0.14/Linux-x86_64/diracosrc
/ctadirac/3.0.14/Linux-x86_64 not found
2026-08-25T13:18:36.273258Z ERROR [InstallDIRAC] Exception when trying to source the DIRAC environment: release not found
2026-08-25T13:18:36.273295Z WARN [InstallDIRAC] Source of the DIRAC environment NOT DONE: starting traditional DIRAC installation
2026-08-25T13:18:36.273318Z INFO [InstallDIRAC] Installing DIRAC locally
2026-08-25T13:18:36.273390Z INFO [InstallDIRAC] Executing command bash /cvmfs/dirac.egi.eu/installSource/DIRACOS-Linux-x86_64.sh 2>&1
bash: /cvmfs/dirac.egi.eu/installSource/DIRACOS-Linux-x86_64.sh: No such file or directory

2026-08-25T13:18:36.278817Z WARN [InstallDIRAC] Could not install DIRACOS from CVMFS [ERROR 127]
2026-08-25T13:18:39.078477Z INFO [InstallDIRAC] Executing command bash DIRACOS-Linux-x86_64.sh 2>&1

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions