-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[UI] Allow quiescevm and asyncbackup flags while taking volume snapshot from UI when these are supported for the volume #10265
base: 4.19
Are you sure you want to change the base?
Conversation
…ot from UI when these are supported for the volume
@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10265 +/- ##
=========================================
Coverage 15.14% 15.14%
Complexity 11283 11283
=========================================
Files 5408 5408
Lines 473822 473823 +1
Branches 57825 57824 -1
=========================================
+ Hits 71762 71763 +1
Misses 394037 394037
Partials 8023 8023
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
UI build: ✔️ |
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.
clgtm
@Rubueno , any chance you can test this? |
Thanks for your efforts @DaanHoogland ! I'm abroad right now, but I'll try to find time next week. |
have a good trip @Rubueno , I hope to start on a release by the end of next week, no pressure ;) |
Thanks! I've just tested the change but it does not seem the quiesce option is present in the "Take Instance volume Snapshot" window. I've tested with local, RBD and NFS on KVM. |
You are right, I only see it on the take instance snapshot dialog. Can you comment @sureshanaparti ? |
quiesce option will not available in both VM -> "Take Instance volume Snapshot" & Volume -> "Take Snapshot" dialogs, when the volume response returns quiescevm as false. |
But in this case it is present in Volume -> "Take Snapshot" and VM -> "Take Instance Snapshot" dialogs |
Both these dialogs are in sync with the quiescevm param in the volume response, shows it when quiescevm param is true. Even when it is set, it fails here when unsupported: https://github.com/apache/cloudstack/blob/4.19/engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/snapshot/DefaultSnapshotStrategy.java#L496-L498 |
@Rubueno are you fine with these changes in this PR (both dialogs are in sync with respect to the volume response). ui/src/views/compute/CreateSnapshotWizard.vue (VM -> "Take Instance volume Snapshot" dialog) =>
ui/src/views/storage/TakeSnapshot.vue (Volume -> "Take Snapshot" dialog) =>
|
@sureshanaparti In our env I cannot proceed with testing this, and thus does not resolve issue #10106, as both dialog boxes give different output at the moment |
ok @Rubueno, does your env has the updated code / pkgs from this PR? |
@blueorangutan package |
@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. |
Yes I had built new packages based on 4.19 |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12308 |
Hmm an interesting development: When taking a snapshot from VM -> "Take Instance Snapshot" with "Quiesce Instance" enabled, it will make a snapshot and quiesce process works. When taking a snapshot from Volume -> "Take Snapshot" with "Quiesce Instance" enabled, it will not quiesce the instance and even logs VM -> "Take Instance Snapshot" logfile: https://pastebin.com/hYMHDxKF |
Description
This PR allows quiescevm and asyncbackup flags while taking volume snapshot from UI when these are supported for the volume, addresses #10106.
Changes from ui/src/views/storage/TakeSnapshot.vue were removed in #7873, re-added in this PR. Now, ui/src/views/compute/CreateSnapshotWizard.vue and ui/src/views/storage/TakeSnapshot.vue are in sync with respect to quiescevm and asyncbackup flags.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Checked the create snapshot UI from instance and volume.
How did you try to break this feature and the system with this change?