pacemaker: write preferred_host as its own constraint - #102
Merged
Merged
Conversation
crm resource move names its constraint cli-prefer-<vm>, which looks like a manual move and is removed by crm resource clear. Write seapath-preferred-<vm> with the same infinite score instead. Signed-off-by: Florent Carli <florent.carli@rte-france.com>
insatomcat
force-pushed
the
preferred-host-constraint
branch
from
September 27, 2026 09:59
a3f20a8 to
33cc162
Compare
|
insatomcat
added a commit
to insatomcat/seapath-webui
that referenced
this pull request
Sep 27, 2026
vm_manager now writes preferred_host as seapath-preferred-<guest> (seapath/vm_manager#102) instead of a crm resource move, so the declared placement and an operator's move are two constraints, and a clear leaves the first. The VMs and Cluster pages take the rule in force as the move's cli-prefer where there is one, and the deployment's rule otherwise. Return is the clear alone beside that rule, and still writes preferred_host back on a guest an older vm_manager deployed. D34 is amended. Signed-off-by: Florent Carli <florent.carli@rte-france.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



preferred_hostis applied withcrm resource move, whosecli-prefer-<vm>constraint cannot be told apart from a manual move and is removed bycrm resource clear. This writesseapath-preferred-<vm>with the same infinite score instead.