-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[UI] Allow quiescevm and asyncbackup flags while taking volume snapshot from UI when these are supported for the volume #10265
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
Conversation
@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10265 +/- ##
=========================================
Coverage 15.16% 15.17%
- Complexity 11332 11333 +1
=========================================
Files 5415 5415
Lines 474912 474938 +26
Branches 57926 57930 +4
=========================================
+ Hits 72043 72057 +14
- Misses 394814 394823 +9
- Partials 8055 8058 +3
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:
|
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 |
@sureshanaparti can you comment on @Rubueno 's results? |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13120 |
@Rubueno Fixed to set quiescevm in the snapshot payload (from the quiescevm parameter) while taking a snapshot from volume, please check. |
@harikrishna-patnala thanks for testing, I've verified "quiescevm" for all the 3 forms, it is honored as set in the UI. Changes done for "quiescevm" in "Take Instance Snapshot" form to show for VMware, KVM hypervisors only - it is used for VMware, the support of it depends on the underlying storage for KVM, ignored/unused for XenServer. |
@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. |
2bbbfca
to
57126b7
Compare
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13122 |
Thank you both for your efforts. I'm traveling right now and unable to test myself. |
@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. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13131 |
Noticed below issues in the Simulator CI tests, seems to be python (version) issue. cc @DaanHoogland
|
@blueorangutan test |
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
@sureshanaparti |
[SF] Trillian test result (tid-13086)
|
...apshot/src/main/java/org/apache/cloudstack/storage/vmsnapshot/StorageVMSnapshotStrategy.java
Show resolved
Hide resolved
@sureshanaparti , is it realistic to have this finished/fixed before 4.19.3? |
@DaanHoogland no further changes required on this PR. |
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.
LGTM. The 'quiescevm' option is now displayed consistently in modals. If the volume response has 'quiescevm' enabled, only then you can see that option on both "Take Instance volume Snapshot" ( "Compute" -> "Instances") and "Take Snapshot" ("Volumes") UI.
Description
This PR allows quiescevm and asyncbackup flags while taking volume snapshot from UI when these are supported for the volume, addresses #10106.
Also, updated snapshot forms to show quiescevm for VMware & KVM hypervisors.
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?