feat(vmop): add operation supersede flow#2338
Open
danilrwx wants to merge 6 commits into
Open
Conversation
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> test(api, vmop): align supersede e2e with framework style Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
yaroslavborbat
requested changes
May 14, 2026
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
yaroslavborbat
approved these changes
May 14, 2026
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.
Description
Add the first VMOP supersede flow for compatible VirtualMachineOperation pairs.
Implemented changes:
Supersededreason for theCompletedVMOP condition;CompletedwithCompleted=Trueandreason=Superseded;Why do we need it, and what problem does it solve?
Previously, any active VMOP for a VM blocked newer VMOPs until it finished. This made recovery and escalation scenarios inconvenient: for example, a pending Start could not be interrupted by Stop, and a graceful Stop could not be escalated to force Stop.
The supersede flow lets a newer compatible operation take precedence, safely completes the older operation as superseded, and lets the newer operation continue normally.
What is the expected result?
Start -> Stop;Stop -> Stop(force).status.phase: Completed;Completed=True;reason=Superseded.Stop -> StartorStart -> Start, and verify admission rejects the newer VMOP while the older operation is active.Checklist
Changelog entries