| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
In addition, also tested and verified: systemvms do get their ips from within the control.cidr and they are fully functional. |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-141 |
Sorry, something went wrong.
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Sorry, something went wrong.
|
Trillian test result (tid-172)
|
Sorry, something went wrong.
| Script.runSimpleBashScript("ip address add 169.254.0.1/16 dev " + linkLocalBr + ";" + "ip route add " + NetUtils.getLinkLocalCIDR() + " dev " + linkLocalBr + " src " + | ||
| NetUtils.getLinkLocalGateway()); | ||
| Script.runSimpleBashScript("ip address add " + NetUtils.getLinkLocalAddressFromCIDR(_controlCidr) + " dev " + linkLocalBr); | ||
| Script.runSimpleBashScript("ip route add " + _controlCidr + " dev " + linkLocalBr + " src " + NetUtils.getLinkLocalFirstAddressFromCIDR(_controlCidr)); |
There was a problem hiding this comment.
How about keeping NetUtils.getLinkLocalGateway() but extending it to accept a CIDR parameter? As internally it invokes getLinkLocalFirstAddressFromCIDR as well
Sorry, something went wrong.
There was a problem hiding this comment.
Could be, but there aren't many methods calling it. I see what you mean, I don't have a try preference for it though.
Sorry, something went wrong.
| Assert.assertTrue(driver.isValidProtocolAndVnetId("123", "vlan")); | ||
| Assert.assertTrue(driver.isValidProtocolAndVnetId("456", "vxlan")); | ||
| } | ||
|
|
There was a problem hiding this comment.
Extra line :)
Sorry, something went wrong.
There was a problem hiding this comment.
Argh!
Sorry, something went wrong.
| } | ||
|
|
||
| public static String getLinkLocalCIDR() { | ||
| return "169.254.0.0/16"; |
There was a problem hiding this comment.
Same as the comment above, instead of returning a hardcoded value, this method can return the configured CIDR and can make getLinkLocalGateway() above to be consistent with it.
Sorry, something went wrong.
There was a problem hiding this comment.
Do we have access to the configuration here? I don't think so. Therefor I changed it this way.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good
Sorry, something went wrong.
|
@wido cc @GabrielBrascher - can you review the oustanding comments. Tests LGTM. |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-168 |
Sorry, something went wrong.
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Sorry, something went wrong.
|
Left some remark, some changes I'll need to re-review, meanwhile I'll wait for regression tests to come back. |
Sorry, something went wrong.
|
Trillian test result (tid-191)
|
Sorry, something went wrong.
|
I think I addressed the comments above. Some seem to be a coding style thing but not really a technical change. Let me know if this PR is LGTM |
Sorry, something went wrong.
|
@wido can you comment on the IvsVifDriver removal? |
Sorry, something went wrong.
|
@rhtyd I did? The file is not referenced anywhere. I also think that it was a typo when the file was created. |
Sorry, something went wrong.
|
@wido nope, that's not a typo it's a driver for the indigo virtual switch introduced in #151 and it's not used anywhere because this is something one configures for the libvirt.vif.driver= in the agent.properties file. Kindly revert that change. |
Sorry, something went wrong.
There was a problem hiding this comment.
Changes requested.
Sorry, something went wrong.
There are certain scenarios where the 169.254.0.0/16 subnet is used for different purposes then CloudStack on a hypervisor. Once of such scenarios is a BGP+EVPN+VXLAN setup using BGP Unnumbered where the 169.254.0.1 address is used by Frr/Zebra BGP routing to send traffic to the neighboring router. The following settings can be changed in the agent.properties (default values added): control.cidr=169.254.0.0/16 Make sure the global setting 'control.cidr' matches the values defined in the agent.propeties! In the future the mgmt server can send this parameter to a KVM Agent on startup, but at the moment this framework is not in place and thus these values can't be send to the Agent in a proper manner. This commit also: - Adds Unit Tests - Removes the dead IvsVifDriver Signed-off-by: Wido den Hollander <wido@widodh.nl>
|
@rhtyd I see! The file is back with a few modifications. @nvazquez I also took another look at your comments and they should be adressed now. |
Sorry, something went wrong.
There was a problem hiding this comment.
Code LGTM
Sorry, something went wrong.
| } | ||
| _ivsIfUpPath = Script.findScript(utilScriptsDir, "qemu-ivs-ifup"); | ||
|
|
||
| libvirtVersion = (Long) params.get("libvirtVersion"); |
There was a problem hiding this comment.
Looks like libvirtVersion was not being used on this class, is that right?
Sorry, something went wrong.
There was a problem hiding this comment.
Not being used indeed. Dead variable which was never called
Sorry, something went wrong.
| } | ||
|
|
||
| public static String getLinkLocalCIDR() { | ||
| return "169.254.0.0/16"; |
There was a problem hiding this comment.
Looks good
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✔centos6 ✖centos7 ✔debian. JID-179 |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-183 |
Sorry, something went wrong.
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Sorry, something went wrong.
|
Trillian test result (tid-216)
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
There are certain scenarios where the 169.254.0.0/16 subnet is used for different
purposes then CloudStack on a hypervisor.
Once of such scenarios is a BGP+EVPN+VXLAN setup using BGP Unnumbered where the
169.254.0.1 address is used by Frr/Zebra BGP routing to send traffic to the
neighboring router.
The following settings can be changed in the agent.properties (default values added):
control.cidr=169.254.0.0/16
Make sure the global setting 'control.cidr' matches the values defined in the agent.propeties!
In the future the mgmt server can send this parameter to a KVM Agent on startup, but at the moment
this framework is not in place and thus these values can't be send to the Agent in a proper manner.
Fixes: #3488
Types of changes
How Has This Been Tested?
Ran local test on our cloud environment and verified cloud0 now has a different address.
root@hv-138-a05-23:~# ip addr show cloud0 58: cloud0: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether fe:00:a9:fe:f0:c9 brd ff:ff:ff:ff:ff:ff inet 169.254.240.1/20 scope global cloud0 valid_lft forever preferred_lft forever inet6 fe80::8c3c:82ff:fe5a:77c/64 scope link valid_lft forever preferred_lft forever root@hv-138-a05-23:~#