Skip to content

Conversation

@wenningerk
Copy link
Contributor

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.

@wenningerk wenningerk force-pushed the fix_promotable_follows_promotable_with_attribute branch from 40ca725 to 6ce4fed Compare October 7, 2025 05:10
@wenningerk
Copy link
Contributor Author

oops adding the test to the list ended up in the fix commit - have to move that to the test commit

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"),
Copy link
Contributor

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".

Copy link
Contributor

@clumens clumens left a 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.

@clumens clumens added the review: in progress PRs that are currently being reviewed label Nov 5, 2025
@clumens
Copy link
Contributor

clumens commented Nov 5, 2025

@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.
@wenningerk wenningerk force-pushed the fix_promotable_follows_promotable_with_attribute branch from 6ce4fed to b5c2ab8 Compare November 7, 2025 16:57
@clumens clumens merged commit cdc7085 into ClusterLabs:main Nov 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: in progress PRs that are currently being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants