Repository navigation
Block scheduling on the source host of in-use failover host reservations - #1514
Open
PhilippMatthes wants to merge 1 commit into
Open
PhilippMatthes wants to merge 1 commit into
PhilippMatthes wants to merge 1 commit into
Conversation
PhilippMatthes
requested review from
SoWieMarkus,
auhlig,
juliusclausnitzer,
mblos and
umswmayj
as code owners
November 11, 2026 12:10
filter_failover_host removed only the reserved target host, so new VMs could still be scheduled onto a failed host while a gang evacuation was draining it. That works against the drain and keeps the source from ever going empty, so the completion controller could never release the reservation. For non-evacuation requests the filter now also removes the in-use reservation's status.failoverHostReservation.sourceHost. An evacuation's candidates are destinations, never the source, so the evacuation itself is unaffected. Documented in the scheduling-behavior section. Signed-off-by: Philipp Matthes <p.matthes@sap.com>
PhilippMatthes
force-pushed
the
feat/failover-host-source-block
branch
from
November 11, 2026 14:13
3d157fc to
16d83e7
Compare
This branch has not been deployed
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.
Stacked on #1513 (targets
feat/failover-host-completion-controller).filter_failover_hostpreviously removed only a reservation's reserved target host from the candidate set, so new VMs could still be scheduled onto a failed host while a gang evacuation was draining it. That works against the drain and keeps the source host from ever going empty, so the completion controller (#1513) could never see it empty and release the reservation.For non-evacuation requests the filter now also removes the in-use reservation's
status.failoverHostReservation.sourceHost.SourceHostis only set once a reservation isInUse, so this blocks exactly the hosts a gang evacuation is actively draining. An evacuation's own candidates are destinations (never the source), so the evacuation itself is unaffected.Documented in the "How failover host reservations affect scheduling → The filter" section. Covered by a new test case asserting both the reserved target and the in-use source host are pruned.