Skip to content

fix(rss): restore CEs in getSiteElements#8480

Merged
fstagni merged 1 commit intoDIRACGrid:integrationfrom
aldbr:fix_rss-state
Mar 11, 2026
Merged

fix(rss): restore CEs in getSiteElements#8480
fstagni merged 1 commit intoDIRACGrid:integrationfrom
aldbr:fix_rss-state

Conversation

@aldbr
Copy link
Contributor

@aldbr aldbr commented Mar 10, 2026

Fix CSHelpers.getSiteElements() to include ComputingElements alongside StorageElements when determining elements belonging to a site

Problem:

After #8446 (removal of node/queue tables), getSiteElements() was left returning only StorageElements for a given site. This broke the PropagationCommand, which determines site status by checking if any element belonging to a site is Active.

Sites that have no StorageElements (only ComputingElements) now get an empty element list, causing propagationCommand.doCache() to fall through to the default Banned status with reason "There is no Active element in the site ###".
This is what caused the mass banning of sites in LHCb.

Fix:
getSiteElements() now also queries getCESiteMapping() to include CEs for the site. The original code (before #8446) included both SEs and queues — removing queues was correct, but CEs should have been preserved. If the CE mapping call fails, it is handled gracefully (SEs are still returned).

BEGINRELEASENOTES
*ResourceStatus
FIX: restore CEs in getSiteElements
ENDRELEASENOTES

@aldbr aldbr marked this pull request as ready for review March 10, 2026 10:44
@aldbr aldbr requested review from atsareg and fstagni as code owners March 10, 2026 10:44
@aldbr aldbr removed the request for review from atsareg March 10, 2026 10:45
@fstagni fstagni closed this Mar 10, 2026
@fstagni fstagni reopened this Mar 10, 2026
@fstagni fstagni closed this Mar 11, 2026
@fstagni fstagni reopened this Mar 11, 2026
@fstagni fstagni merged commit da8dcd9 into DIRACGrid:integration Mar 11, 2026
63 of 67 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants