-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix secondary storage selectors feature #10546
base: 4.20
Are you sure you want to change the base?
Fix secondary storage selectors feature #10546
Conversation
@blueorangutan package |
@winterhazel 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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10546 +/- ##
=========================================
Coverage 16.00% 16.01%
- Complexity 13104 13115 +11
=========================================
Files 5651 5651
Lines 495841 495841
Branches 60044 60045 +1
=========================================
+ Hits 79365 79411 +46
+ Misses 407613 407566 -47
- Partials 8863 8864 +1
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:
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12741 |
lgtm, @vishesh92 , can you check if there was a pressing reason the string |
...org/apache/cloudstack/storage/heuristics/presetvariables/GenericHeuristicPresetVariable.java
Show resolved
Hide resolved
It was just to improve logging. |
@blueorangutan package |
@winterhazel 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 12795 |
@blueorangutan test |
@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-12802)
|
Description
The secondary storage selectors feature is not working in the 4.20 and main branches.
PR #9873 changed the return of
org.apache.cloudstack.storage.heuristics.presetvariables.GenericHeuristicPresetVariable#toString
; however, as this method is used to build the secondary storage selection script, the changes made it stop working.Here's how the script looked like before #9873:
And how it looks like now:
This PR reverts the method to its previous state.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
How Has This Been Tested?
Before the changes, the snapshot process would fail due to an exception thrown by the JS interpreter. Applying the patch made it work again and correctly directed the snapshot to the secondary storage that I specified.