-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix listServiceOfferings regression #9894
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 listServiceOfferings regression #9894
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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #9894 +/- ##
============================================
+ Coverage 15.08% 15.11% +0.02%
- Complexity 11203 11220 +17
============================================
Files 5404 5404
Lines 473423 473426 +3
Branches 59987 59988 +1
============================================
+ Hits 71429 71550 +121
+ Misses 394044 393878 -166
- Partials 7950 7998 +48
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11511 |
weizhouapache
left a comment
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.
code lgtm
not tested
kiranchavala
left a comment
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.
|
I am using CloudStack 4.19.1.3 but still i have same issue. Do i still have to run all these queries in mysql ? All these options are checked
|
|
@verendrakalsi this fix was not included in 4.19.1.3. It will be included in 4.19.2.0 and 4.20.0.0 (and onward). While 4.19.2.0 and 4.20.0.0 are not released, you can perform the dynamic scale of instances by directly calling the (admin) 🐵 > scale virtualmachine id=<id_of_the_vm> serviceofferingid=<id_of_the_service_offering> details[0].cpuNumber=<number_of_cpus> details[0].memory=<memory_in_mbs> |



Description
This PR fixes a regression introduced in 4.19.1.0 in the
listServiceOfferingsAPI.The API's query was being built with an AND where there previously was an OR. This regression caused the API to not return the expected offerings, breaking the dynamic scale of instances via the UI (#9879).
Fixes: #9879
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
How Has This Been Tested?
a) Before the regression, the following query would be performed:
Originally, the section that got regressed was:
b) With the regression, the following query is performed:
The problematic section:
c) With the patch:
The second AND was reverted to an OR: