Page MenuHomeClusterLabs Projects

Deprecate role, score, and score-attribute in rules, and implement score-attribute in location constraints without rules
Open, NormalPublic

Assigned To
None
Authored By
kgaillot
Apr 2 2024, 9:51 PM
Tags
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

Currently, rule elements beneath a location constraint can have a role attribute. However, the role does not affect rule evaluation in any way, but rather changes the constraint's role filter.

The location constraint itself has a role attribute for that purpose, but it is ignored (and disallowed by the schema) if the constraint has a rule. If a rule in a location constraint has subrules, their role attributes are ignored, which is unexpected behavior.

score behaves simlarly. score-attribute can currently only be used on rule, not rsc_location, but non-rule location constraints could and should support it as well.

Implement score-attribute for location constraints without rules, deprecate all three attributes for rule, change the schema to allow them on rsc_location even if it has a rule, and have any attribute set on rsc_location take precedence over the same attribute set on its rule.

Event Timeline

kgaillot triaged this task as Normal priority.Apr 2 2024, 9:51 PM
kgaillot created this task.
kgaillot created this object with edit policy "Restricted Project (Project)".
kgaillot renamed this task from Deprecate role in rules to Deprecate role, score, and score-attribute in rules, and implement score-attribute in location constraints without rules.Apr 2 2024, 10:18 PM
kgaillot updated the task description. (Show Details)