pcs icon indicating copy to clipboard operation
pcs copied to clipboard

[input validation] pcs shall check that location constraint always relates to some nodes in one way or another

Open jnpkrn opened this issue 5 years ago • 1 comments

# pcs constraint location dummy rule id=till-the-new-year score=-INFINITY date gt 2020-01-01 
# echo $?
> 0

->

      <rsc_location id="location-dummy" rsc="dummy">
        <rule id="till-the-new-year" score="-INFINITY">
          <date_expression id="till-the-new-year-expr" operation="gt" start="2020-01-01"/>
        </rule>
      </rsc_location>

This is a degenerate location constraint that achieves exactly nothing but more complex overall configuration -- there's no actual "location" specified in there.

At the very least, this shall raise a warning.

Relevant: https://bugs.clusterlabs.org/show_bug.cgi?id=5415

jnpkrn avatar Dec 18 '19 15:12 jnpkrn

ack, tracked at https://bugzilla.redhat.com/show_bug.cgi?id=1791791

tomjelinek avatar Jan 16 '20 13:01 tomjelinek