-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix update network offering domainids size limitation #12431
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
base: 4.20
Are you sure you want to change the base?
Fix update network offering domainids size limitation #12431
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.20 #12431 +/- ##
============================================
- Coverage 16.23% 16.23% -0.01%
+ Complexity 13382 13380 -2
============================================
Files 5657 5657
Lines 498997 498997
Branches 60566 60566
============================================
- Hits 81032 81030 -2
- Misses 408929 408931 +2
Partials 9036 9036
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:
|
|
I found some more occurrences where the zoneIds parameter is used without the length annotation (There was only one for domainIds which is fixed here). @nvazquez would you please fix these as well? UpdateVPCOfferingCmd
@Parameter(name = ApiConstants.ZONE_ID,
type = CommandType.STRING,
description = "The ID of the containing zone(s) as comma separated string, all for all zones offerings",
since = "4.13")
private String zoneIds;UpdateServiceOfferingCmd
@Parameter(name = ApiConstants.ZONE_ID,
type = CommandType.STRING,
description = "The ID of the containing zone(s) as comma separated string, all for all zones offerings",
since = "4.13")
private String zoneIds;UpdateDiskOfferingCmd
@Parameter(name = ApiConstants.ZONE_ID,
type = CommandType.STRING,
description = "The ID of the containing zone(s) as comma separated string, all for all zones offerings",
since = "4.13")
private String zoneIds; |
DaanHoogland
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.
clgtm
|
@abh1sar do we need to support a lot of zones? |
|
Thanks @abh1sar @DaanHoogland - I can address those in a separate PR so we keep domainIds on this one fixing the reported issue |
|
@blueorangutan package |
|
@nvazquez 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. |
It might not be required, but there are other places where we use the length annotation with zoneIds. So this will keep the behaviour consistent. |
abh1sar
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.
LGTM
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16385 |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Description
This PR fixes the updateNetworkOffering API in case the
domainidparameter exceeds 255 characters (default String value size), by increasing the parameter size to 4096 characters. UUIDs are 36 characters strings, the PR increases the possible domains from ~7 domains to +100 domains, useful for large environments.Before the fix (tested with 10 domains):
After the fix (same operation succeeded)
Fixes: #12399
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?