Search before creating an issue
Bug Description
We have set/Resources/Computing/CEDefaults/NumberOfGPUsin the Configuration, as we have a maximum of one or two test queues with GPUs (and none on the pre-prod servers).
This results in the following errors:
2026-04-13T15:02:36,534211Z WorkloadManagement/SiteDirectorLz INFO: Getting GPUs from /Resources/Computing/CEDefaults/NumberOfGPUs
2026-04-13T15:02:36,534314Z WorkloadManagement/SiteDirectorLz ERROR: Could not find NumberOfGPUs: missing siteName or gridCE or queue. Returning '0'
Steps to Reproduce
Install DIRAC v9.0.20 and set /Resources/Computing/CEDefaults/NumberOfGPUs = 0
Error appears in SiteDirector log.
Expected Behavior
A sensible default should be possible without triggering an error.
Actual Behavior
See above
Environment
Vanilla DIRAC 9.0.20
Relevant Log Output
Additional Context
Simon says: The code logic looks like the default option will always be picked if the default value is not set to zero. And it it is set to zero, it triggers an error. Would it not make more sense to check the specific cases first and then only use the default if nothing specific found ?
Search before creating an issue
Bug Description
We have set/Resources/Computing/CEDefaults/NumberOfGPUsin the Configuration, as we have a maximum of one or two test queues with GPUs (and none on the pre-prod servers).
This results in the following errors:
Steps to Reproduce
Install DIRAC v9.0.20 and set
/Resources/Computing/CEDefaults/NumberOfGPUs = 0Error appears in SiteDirector log.
Expected Behavior
A sensible default should be possible without triggering an error.
Actual Behavior
See above
Environment
Vanilla DIRAC 9.0.20
Relevant Log Output
Additional Context
Simon says: The code logic looks like the default option will always be picked if the default value is not set to zero. And it it is set to zero, it triggers an error. Would it not make more sense to check the specific cases first and then only use the default if nothing specific found ?