-
Notifications
You must be signed in to change notification settings - Fork 349
Fix promotable follows promotable with attribute #3975
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
Fix promotable follows promotable with attribute #3975
Conversation
40ca725 to
6ce4fed
Compare
|
oops adding the test to the list ended up in the fix commit - have to move that to the test commit |
cts/cts-scheduler.in
Outdated
| SchedulerTest("no_quorum_demote", "Promotable demotion and primitive stop with no-quorum-policy=\"demote\""), | ||
| SchedulerTest("no-promote-on-unrunnable-guest", "Don't select bundle instance for promotion when container can't run"), | ||
| SchedulerTest("leftover-pending-monitor", "Prevent a leftover pending monitor from causing unexpected stop of other instances"), | ||
| SchedulerTest("promotable-colocation-with-node-attribute", "Promote dependend clone on nodes belonging to a site that has a primary clone promoted"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to the second patch, and I think you meant "Promote dependent" instead of "Promote dependend".
clumens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just had one little comment. I think this is okay, though this is very much not my area of expertise. I ran it through regression and cts-lab tests without failure.
|
@wenningerk This fixes RHEL-120932 and RHEL-81951, right? Could you add that to the commit message as well? |
Add testcase. Previous fix attribute based colocation didn't adhere the attribute with promoted state with promoted state.
Previously attribute based colocation didn't adhere the attribute with promoted state with promoted state.
6ce4fed to
b5c2ab8
Compare
This attempts to fix https://projects.clusterlabs.org/T975
Unexpectedly collocation with promoted status works quite differently than collocation with a primitive.
Maybe the cleaner approach here would be to make that more alike.
Alternatively passing a node-attribute down to pcmk__instance_matches at least does the job.