-
Notifications
You must be signed in to change notification settings - Fork 5
fix(vm): migration condition clearing #1891
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
base: main
Are you sure you want to change the base?
Conversation
08b25f6 to
3dfa74c
Compare
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> remove unused Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com> remove Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
70dd645 to
4b71acb
Compare
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
|
Workflow has started. The target step completed with status: failure. |
|
Workflow has started. The target step completed with status: failure. |
|
Workflow has started. The target step completed with status: failure. |
|
Workflow has started. The target step completed with status: failure. |
Description
Fixed the logic for clearing the
Migratingcondition in theMigratingHandler. The changes ensure that the condition is properly removed when migrations are completed, failed, or not requested, and improve the handling of migration state synchronization.Why do we need it, and what problem does it solve?
Previously, the
Migratingcondition could remain in the VM status even after migrations were completed or failed, leading to:What is the expected result?
When migration completes successfully: The
Migratingcondition is removed from the VM status whenVMOPreachesReasonOperationCompletedorVMOPPhaseCompleted.When migration fails: The
Migratingcondition is removed whenVMOPreachesVMOPPhaseFailedphase, ensuring failed migrations don't leave stale conditions.When VM is stopped (KVVMI is nil): The
Migratingcondition is removed since live migration cannot occur without a running VM instance.When migration operation is terminating: The condition is removed when
VMOPentersVMOPPhaseTerminatingphase.When no migration is requested: The condition is removed if there's no active migration operation.
Checklist
Changelog entries