Skip to content

Conversation

@abh1sar
Copy link
Collaborator

@abh1sar abh1sar commented Jan 30, 2026

Description

This PR fixes #11272

On revert to an instance snapshot, VM instance details were fully replaced with only the snapshot-stored details (CPU_NUMBER, CPU_SPEED, MEMORY) for dynamic service offerings, so any other details (e.g. boot/UEFI, keyboard, or other custom settings) were lost. This change updates revert to only restore those three service-offering details via addDetail, leaving all other VM instance details unchanged.

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):

Before fix:

Initial settings
Screenshot 2026-01-30 at 2 44 53 PM

Settings after snapshot revert
Screenshot 2026-01-30 at 2 45 12 PM

How Has This Been Tested?

  1. Create a custom service offering
  2. Create an instance with the custom service offering
  3. Shut down Instance and set UEFI=Secure in Instance settings
  4. Start Instance Create Instance snapshot (with or without memory)
  5. Stop Instance and Revert to Snapshot
  6. Start Instance
  7. Verify that none of the VM settings are lost.

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

@abh1sar
Copy link
Collaborator Author

abh1sar commented Jan 30, 2026

@blueorangutan package

@blueorangutan
Copy link

@abh1sar 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 Jan 30, 2026

Codecov Report

❌ Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.26%. Comparing base (56a39e6) to head (5ce6633).
⚠️ Report is 85 commits behind head on 4.20.

Files with missing lines Patch % Lines
...a/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #12555      +/-   ##
============================================
+ Coverage     16.23%   16.26%   +0.02%     
- Complexity    13378    13427      +49     
============================================
  Files          5657     5660       +3     
  Lines        498866   499921    +1055     
  Branches      60545    60699     +154     
============================================
+ Hits          81011    81322     +311     
- Misses       408821   409526     +705     
- Partials       9034     9073      +39     
Flag Coverage Δ
uitests 4.16% <ø> (+0.15%) ⬆️
unittests 17.11% <77.77%> (+0.02%) ⬆️

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 ✖️ debian ✖️ suse15. SL-JID 16648

@abh1sar
Copy link
Collaborator Author

abh1sar commented Jan 30, 2026

@blueorangutan package

@blueorangutan
Copy link

@abh1sar 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.

@blueorangutan
Copy link

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

Copy link
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

clgtm

@sureshanaparti
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-15344)

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