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

Instance: Fix placement when moving within same cluster group #12148

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

roosterfish
Copy link
Contributor

First observed in #12143.

When moving instances within the same cluster group, the node which is currently hosting the instance should not be selected by the scheduler due to having the least amount of instances.

GetNodeWithLeastInstances() most probably returned the instances in a different order than usual. This led the scheduler to pick the node that is already hosting the instance as candidate.

When moving an instance to the same cluster target group it already belongs to, another node
needs to be picked in case it currently hosts the instance and got selected due to least amount of instances.

Signed-off-by: Julian Pelizäus <[email protected]>
test/suites/clustering_move.sh Outdated Show resolved Hide resolved
@roosterfish roosterfish force-pushed the fix_mv_instance_placement branch from 67133be to 58e3e9b Compare August 14, 2023 07:12
@tomponline tomponline merged commit 37eab80 into canonical:main Aug 17, 2023
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

Successfully merging this pull request may close these issues.

3 participants