-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ui: Allow edit source CIDR on load balancer rule #11766
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: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11766 +/- ##
============================================
- Coverage 17.50% 17.50% -0.01%
Complexity 15427 15427
============================================
Files 5894 5894
Lines 526847 526851 +4
Branches 64335 64337 +2
============================================
- Hits 92234 92233 -1
- Misses 424236 424241 +5
Partials 10377 10377
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:
|
@CodeBleu a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
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.
Didn't test this, but UI changes LGTM. I'm assuming this editing CIDR is available via API
@CodeBleu , I tested this in QA, but it silently fails, i.e. it reports success but does not change the cidr. Have a look at https://qa.cloudstack.cloud/client/pr/11766/#/publicip/e7314c68-c570-42c5-939e-e61f5b30cb4b |
@DaanHoogland I believe this is because the QA build is not running the version needed to actually make the changes via the API. |
ah, you might have a point, I’ll create a lab env. |
@blueorangutan package |
@DaanHoogland 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, this is the API code that was already merged #11568 |
@rosi-shapeblue can you help testing this, we'd like to include it in 4.22 |
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 15325 |
@blueorangutan package |
@harikrishna-patnala 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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15333 |
@CodeBleu , I see the same behaviour in a lab env build with the code in this PR. |
@DaanHoogland are you sure you are using a lab that has this code in it? - #11568 ? It works for me. Here is it working for me: ![]() ![]() lb-test-2025-10-08_09.32.48.mp4 |
I created packages #11766 (comment), which is based on this PR merged in main. It should contain all the code. |
Could it not be including the code because it's in the code to use 4.22, and the packaging is not including it? I'm not sure exactly how that works. I just manually built it from the main branch locally and used that to test with. I'm just not able to reproduce your issue, so it's hard for me to do anything differently if it's working for me. If you let me know the steps you are taking, I can try to reproduce. How does one get the package from the package build ? #11766 (comment) |
I understand, but the packeging job creates a merge commit and builds from that.
So I build a clean set of packages from this PR merged into main (the standard at blueorangutan package) and then I build a virtualised environment from that. I tried several formats. As the last one exactly the one you show in your clip; I first made it empty (that was successful) and then I added two cidrs back in. I tried with “1.1.1.1/32,2.2.2.0/24” and with “1.2.3.4/32,5.6.7.8/32”. Both failed to add. When finally I add a single cidr it succeeds (e.g. “1.2.3.0/24”) Are you sure you don’t have an extra fix (in comparison to main) in your environment? ![]() ![]() ![]() |
I’ll double-check @DaanHoogland 's findings on my test environment and update |
@blueorangutan package |
@vladimirpetrov 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 15354 |
@blueorangutan package |
@vladimirpetrov 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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15355 |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15356 |
@DaanHoogland , @CodeBleu - I’ve completed testing this on my test environment.
Failed to edit rule ![]() The input was entered correctly (no spaces), but during the edit flow the UI alters the CIDR string - a space replaces the first comma between the CIDRs, resulting in a malformed value being sent to the backend. Browser console shows: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'push') ➝ This confirms the issue is UI-related, not API-related. ![]() Backend log showing malformed CIDR string (space between 1st and 2nd CIDR) received during UpdateLoadBalancerRuleCmd. Screencast.from.2025-10-09.15-02-15.webmScreencast.from.2025-10-09.15-19-14.webmSummary:
Happy to retest after a fix. |
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.
For more information, please check: #11766 (comment)
ok @CodeBleu so basically @rosi-shapeblue confirms my testing. Are you sure you have added all your code to the PR? |
Description
This PR allows editing the source CIDR of a load balancer rule.
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?
Followed steps in ui/README.md
Ran on Cloudstack environment using the update cidr API fix (#11568) and confirmed access based on IP's added to source CIDR.