-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix: Condition for aborting migration, resume paused VMs on destination #12331
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: 4.20
Are you sure you want to change the base?
Conversation
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #12331 +/- ##
==========================================
Coverage 16.23% 16.23%
- Complexity 13377 13380 +3
==========================================
Files 5657 5657
Lines 498865 499017 +152
Branches 60545 60566 +21
==========================================
+ Hits 80991 81033 +42
- Misses 408843 408949 +106
- Partials 9031 9035 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16145 |
| DomainState dmState = null; | ||
| try { | ||
| dmState = destDomain.getInfo().state; | ||
| } catch (final LibvirtException e) { | ||
| logger.info("Failed to get domain state for VM: " + vmName + " due to: " + e.getMessage()); | ||
| } | ||
|
|
||
| if (dmState == DomainState.VIR_DOMAIN_PAUSED) { | ||
| logger.info("Resuming VM " + vmName + " on destination after migration"); | ||
| try { | ||
| destDomain.resume(); | ||
| } catch (final Exception e) { | ||
| logger.error("Failed to resume vm " + vmName + " on destination after migration due to : " + e.getMessage()); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new method..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| final int migrateDowntime = libvirtComputingResource.getMigrateDowntime(); | ||
| if (migrateDowntime > 0 ) { | ||
| try { | ||
| final int setDowntime = dm.migrateSetMaxDowntime(migrateDowntime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to call this every 100ms. We can use a variable to check and call this block only once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nvazquez would you consider making this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, thanks @abh1sar sorry for the delay, I have refactored it accordingly
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-15139)
|
|
Thanks @abh1sar @DaanHoogland I addressed your comments @blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16369 |
Description
This PR addresses the following:
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?