-
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 13378 +1
=========================================
Files 5657 5657
Lines 498865 498878 +13
Branches 60545 60546 +1
=========================================
+ Hits 80991 81011 +20
+ Misses 408843 408834 -9
- Partials 9031 9033 +2
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..?
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?