Skip to content

Change disk-only VM snapshot removal message#11182

Open
JoaoJandre wants to merge 2 commits intoapache:4.22from
scclouds:change-gui-message
Open

Change disk-only VM snapshot removal message#11182
JoaoJandre wants to merge 2 commits intoapache:4.22from
scclouds:change-gui-message

Conversation

@JoaoJandre
Copy link
Copy Markdown
Contributor

Description

This PR changes the warning given to users when deleting disk-only VM snapshots on KVM. When deleting disk-only VM snapshots on KVM, the VM is not paused.

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

When deleting Disk-only VM snapshot:
image

When deleting Disk And Memory VM snapshot:
image

How Has This Been Tested?

Created two VM snapshots, one with and one without memory. I checked that the messages were being shown accordingly.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.09%. Comparing base (3e688b0) to head (f918513).

Additional details and impacted files
@@             Coverage Diff              @@
##               4.22   #11182      +/-   ##
============================================
+ Coverage     17.68%   18.09%   +0.40%     
- Complexity    15792    16721     +929     
============================================
  Files          5922     6037     +115     
  Lines        533087   542551    +9464     
  Branches      65206    66432    +1226     
============================================
+ Hits          94269    98159    +3890     
- Misses       428176   433373    +5197     
- Partials      10642    11019     +377     
Flag Coverage Δ
uitests 3.52% <ø> (-0.18%) ⬇️
unittests 19.25% <ø> (+0.49%) ⬆️

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.

Comment thread ui/public/locales/pt_BR.json
Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/11182 (QA-JID-829)

@kiranchavala
Copy link
Copy Markdown
Member

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@kiranchavala a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@kiranchavala
Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@kiranchavala a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress.

@kiranchavala kiranchavala self-assigned this Jan 29, 2026
@blueorangutan
Copy link
Copy Markdown

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

@kiranchavala
Copy link
Copy Markdown
Member

@JoaoJandre

Looks like there is some caching issue

  1. Launched 2 vms ( vm1, vm2)

  2. Take a vm snapshot with disk and memory for vm 1

  3. Take a vm snapshot with disk for vm 2

In a incognito window, try to delete the vm snapshots ,we get the same error message

Screen.Recording.2026-01-29.at.6.22.56.PM.mov
Screen.Recording.2026-01-29.at.6.20.22.PM.mov

@JoaoJandre
Copy link
Copy Markdown
Contributor Author

@kiranchavala I think there might've been an issue with the version that I was basing this PR on. I have merged the main branch on my branch and tested and it looks good. Could you test again?
If you find an issue, could you detail which steps you took to get to the issue?

@weizhouapache weizhouapache added this to the 4.23.0 milestone May 7, 2026
@weizhouapache
Copy link
Copy Markdown
Member

@JoaoJandre
is this still applicable ?
which branch should be targeted, 4.22 or main ?

@weizhouapache weizhouapache modified the milestones: 4.23.0, 4.22.1 May 7, 2026
@JoaoJandre
Copy link
Copy Markdown
Contributor Author

@JoaoJandre is this still applicable ? which branch should be targeted, 4.22 or main ?

Yes, both. I'll target 4.22

@JoaoJandre JoaoJandre force-pushed the change-gui-message branch from 43e3805 to f918513 Compare May 7, 2026 16:43
@JoaoJandre JoaoJandre requested a review from rp- as a code owner May 7, 2026 16:43
@JoaoJandre JoaoJandre changed the base branch from main to 4.22 May 7, 2026 16:44
@sureshanaparti
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@sureshanaparti 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
Copy Markdown

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

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

Copy link
Copy Markdown
Member

@kiranchavala kiranchavala left a comment

Choose a reason for hiding this comment

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

@JoaoJandre i am observing the same behaviour

  1. Launch 2 vm

  2. Take a vm snapshot (Disk) of vm 1

  3. Take a vm snapshot (Disk and Memory) of vm 2

  4. Navigate to compute > Instance Snapshots > Delete snapshot 2

Error message
Image

  1. Delete snapshot 1

Same Error messaage

Image

@sureshanaparti
Copy link
Copy Markdown
Contributor

@JoaoJandre I've noticed the other way in my testing, could see the same message for both types.

Screenshot 2026-05-08 at 3 35 51 PM

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