Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jnpkrn opened this issue Dec 18, 2019 · 1 comment

Comments

@jnpkrn
Copy link
Contributor

jnpkrn commented Dec 18, 2019

# 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

@tomjelinek
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants