Skip to content

Conversation

@nvazquez
Copy link
Contributor

Description

This PR addresses the following:

  • Change the logic for checking if the sleepTime is absolutely equal to 1s to greater than or equal to 1s in case of thread’s duration skips to make it more robust
  • In the Abort Migration logic, it only checks for VMs in Running state. This doesn’t allow migration to be aborted if the VM has already been paused by the ‘Pause VM’ logic below it and migration still hasn’t completed by the timeout for aborting migration has been reached.
  • Resuming the VM on the destination host on migration successfully completing if it is in the Paused state -- avoiding manual restart of the VM upon successful migration.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@nvazquez nvazquez added this to the 4.20.3 milestone Dec 24, 2025
@nvazquez nvazquez requested a review from abh1sar December 24, 2025 02:18
@nvazquez
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@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
Copy link

codecov bot commented Dec 24, 2025

Codecov Report

❌ Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.23%. Comparing base (b394b5b) to head (0960b4c).

Files with missing lines Patch % Lines
...resource/wrapper/LibvirtMigrateCommandWrapper.java 0.00% 14 Missing and 1 partial ⚠️
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     
Flag Coverage Δ
uitests 4.00% <ø> (ø)
unittests 17.09% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16145

Comment on lines +317 to +331
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());
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new method..?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants