| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Report❌ Patch coverage is 47.05882% with 9 lines in your changes missing coverage. Please review. @@ Coverage Diff @@
## main #11568 +/- ##
=========================================
Coverage 17.39% 17.39%
- Complexity 15285 15286 +1
=========================================
Files 5888 5888
Lines 526130 526142 +12
Branches 64232 64234 +2
=========================================
+ Hits 91542 91546 +4
- Misses 424255 424259 +4
- Partials 10333 10337 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry.
|
Sorry, something went wrong.
There was a problem hiding this comment.
code lgtm
Sorry, something went wrong.
|
@weizhouapache 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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 14834 |
Sorry, something went wrong.
There was a problem hiding this comment.
code lgtm.
Sorry, something went wrong.
|
@Pearl1594 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. |
Sorry, something went wrong.
|
@Pearl1594 @weizhouapache Can I get one of you to manually test this and post results? Once that is complete, I believe I can merge it 😄 |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 14835 |
Sorry, something went wrong.
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
There was a problem hiding this comment.
code LGTM
Sorry, something went wrong.
|
[SF] Trillian test result (tid-14205)
|
Sorry, something went wrong.
|
@harikrishna-patnala Would you be able to test this and post results? I believe I'm just needed that from someone and then I can merge. Unless @weizhouapache the following Trillian test counts?
|
Sorry, something went wrong.
@CodeBleu , do you have a friend and/or colleague that can test? We usually trust any viable test report. Shapeblue has some time/people to test but we are usually stuffed with customer work. Another thing that might help is to write an integration test that shows it works;
|
Sorry, something went wrong.
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
Sorry, something went wrong.
- Replace manual null-check comparison with Objects.equals for clarity and null safety
- Simplify CIDR list rollback to always restore backup value unconditionally
- Add JavaDoc for setCidrList method for improved documentation
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 15007 |
Sorry, something went wrong.
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-14348)
|
Sorry, something went wrong.
There was a problem hiding this comment.
c still lgtm
Sorry, something went wrong.
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-14354)
|
Sorry, something went wrong.
|
manually tested: > update loadbalancerrule cidrlist=7.5.3.2/32 name=blob id=2095d12e-4921-4454-b6a2-2fb10556bd31
{
"loadbalancer": {
"account": "admin",
"algorithm": "roundrobin",
"cidrlist": "7.5.3.2/32",
"domain": "ROOT",
"domainid": "2e4aebe1-92db-11f0-9310-1e00fe000184",
"domainpath": "/",
"fordisplay": true,
"id": "2095d12e-4921-4454-b6a2-2fb10556bd31",
"name": "blob",
"networkid": "939ad915-aa47-4801-a1d8-94b8de65944f",
"privateport": "34",
"protocol": "tcp",
"publicip": "10.0.57.124",
"publicipid": "f77d4217-a3b2-4e86-83c5-f1a76a020dd7",
"publicport": "34",
"state": "Add",
"tags": [],
"zoneid": "460b948c-8de9-406f-be6a-def0433f52b4",
"zonename": "pr11568-t14354-kvm-ol8"
}
}
|
Sorry, something went wrong.
|
@CodeBleu , I will merge but please consider adding this to the UI as well. |
Sorry, something went wrong.
|
Awesome work, congrats on your first merged pull request! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Switching base to main from 4.19 , SEE #10968 for Comment history
Description
This PR will allow the updating of a loadbalancer rules CIDR list via the API.
* Should fix #9313
I have tested this code in 4.19, 4.20, and main branches via simulator and all works
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Before, the Source CIDR list was blank (Simulator env)

(localcloud) :penguin: > list loadbalancerrules { "count": 1, "loadbalancerrule": [ { "account": "admin", "algorithm": "roundrobin", "cidrlist": "", "domain": "ROOT", "domainid": "5b6a2947-416b-11f0-9a39-564a8191c23c", "domainpath": "/", "fordisplay": true, "id": "0d8e3cb9-767b-45f3-834d-3f9ce85df901", "name": "newlbtest", "networkid": "5bb3ecfb-cde3-4821-8822-0c4c8a8e9559", "privateport": "3306", "protocol": "tcp", "publicip": "192.168.2.10", "publicipid": "9b2638d7-7330-49c7-9d6e-5b5777f6ca16", "publicport": "3306", "state": "Add", "tags": [], "zoneid": "7cb86a09-676e-4f00-ad39-012f0eb2e69d", "zonename": "Sandbox-simulator" } ] } (localcloud) :penguin: > update loadbalancerrule id="0d8e3cb9-767b-45f3-834d-3f9ce85df901" cidrlist="1.2.3.4/32" { "loadbalancer": { "account": "admin", "algorithm": "roundrobin", "cidrlist": "1.2.3.4/32", "domain": "ROOT", "domainid": "5b6a2947-416b-11f0-9a39-564a8191c23c", "domainpath": "/", "fordisplay": true, "id": "0d8e3cb9-767b-45f3-834d-3f9ce85df901", "name": "newlbtest", "networkid": "5bb3ecfb-cde3-4821-8822-0c4c8a8e9559", "privateport": "3306", "protocol": "tcp", "publicip": "192.168.2.10", "publicipid": "9b2638d7-7330-49c7-9d6e-5b5777f6ca16", "publicport": "3306", "state": "Add", "tags": [], "zoneid": "7cb86a09-676e-4f00-ad39-012f0eb2e69d", "zonename": "Sandbox-simulator" } } (localcloud) :penguin: > update loadbalancerrule id="0d8e3cb9-767b-45f3-834d-3f9ce85df901" cidrlist= { "loadbalancer": { "account": "admin", "algorithm": "roundrobin", "cidrlist": "", "domain": "ROOT", "domainid": "5b6a2947-416b-11f0-9a39-564a8191c23c", "domainpath": "/", "fordisplay": true, "id": "0d8e3cb9-767b-45f3-834d-3f9ce85df901", "name": "newlbtest", "networkid": "5bb3ecfb-cde3-4821-8822-0c4c8a8e9559", "privateport": "3306", "protocol": "tcp", "publicip": "192.168.2.10", "publicipid": "9b2638d7-7330-49c7-9d6e-5b5777f6ca16", "publicport": "3306", "state": "Add", "tags": [], "zoneid": "7cb86a09-676e-4f00-ad39-012f0eb2e69d", "zonename": "Sandbox-simulator" } }Tested on actual test environment and below is where you can see when it was restricted it didn't connect to mysql, but when opened up and CIDR set to 0.0.0.0/0 it worked. I tested with specific Public IP in CIDR as well (x.x.0.118/32) and this works and you can see in the virtual router for haproxy it set the ACL.
Restricted with wrong IP in source CIDR of LB
With correct source CIDR or 0.0.0.0/0
How Has This Been Tested?
How did you try to break this feature and the system with this change?
Ran multiple tests with Cloudmonkey against simulator and actual test environment. See above for testing info