HomeClusterLabs Projects

pengine: Allow use of resource params and meta-params in location rules

Description

pengine: Allow use of resource params and meta-params in location rules

This would allow following syntax:
<rule id="resource-require-home-zone-rule" score="-INFINITY" boolean-op="or">

<expression id="resource-require-home-zone-expr-0" attribute="node-zone"
  operation="not_defined" />
<expression id="resource-require-home-zone-expr-1" attribute="node-zone"
  operation="ne" value="resource-zone" value-source="meta" />

</rule>

Suggested syntax in crmsh terms:
location resource-require-home-zone /resource-.+/ \

rule -inf: not_defined node-zone or node-zone ne meta{resource-zone}

Details

Provenance
Vladislav Bogdanov <bubble@hoster-ok.com>Authored on Apr 27 2017, 7:39 AM
Parents
rP2a75d9e0644b: Merge pull request #1266 from kgaillot/fixes
Branches
Unknown
Tags
Unknown

Event Timeline