wido opened a new issue #3488: cloud0 subnet should not be hardcoded to 
169.254.0.1/16
URL: https://github.com/apache/cloudstack/issues/3488
 
 
   We are setting up a BGP+EVPN+VXLAN setup using Frr and BGP Unnumbered and 
this is causing some problems with the *cloud0* bridge created by the 
cloudstack agent.
   
   Although the global setting *control.cidr* can be modified, the KVM Agent 
will still create this bridge with a hardcoded subnet:
   
   **com/cloud/hypervisor/kvm/resource/BridgeVifDriver.java**
   <pre>
           if (!foundLinkLocalBr) {
               Script.runSimpleBashScript("ip address add 169.254.0.1/16 dev " 
+ linkLocalBr + ";" + "ip route add " + NetUtils.getLinkLocalCIDR() + " dev " + 
linkLocalBr + " src " +
                       NetUtils.getLinkLocalGateway());
           }
   </pre>
   
   When using BGP Unnumbered it will try to create a route pointing to 
*169.254.0.1*
   
   This works until the CloudStack Agent is started:
   
   <pre>
   10.255.255.1 via 169.254.0.1 dev enp81s0f1 proto bgp metric 20 onlink 
   10.255.255.2 via 169.254.0.1 dev enp81s0f1 proto bgp metric 20 onlink 
   10.255.255.3 via 169.254.0.1 dev enp81s0f1 proto bgp metric 20 onlink 
   10.255.255.4 via 169.254.0.1 dev enp81s0f1 proto bgp metric 20 onlink 
   10.255.255.6 via 169.254.0.1 dev enp81s0f1 proto bgp metric 20 onlink 
   10.255.255.7 via 169.254.0.1 dev enp81s0f1 proto bgp metric 20 onlink 
   10.255.255.8 via 169.254.0.1 dev enp81s0f1 proto bgp metric 20 onlink 
   </pre>
   
   After the CloudStack Agent is started the 169.254.0.1/16 is added to cloud0 
and not allowing Frr to create these routes:
   
   <pre>
   zebra[5010]: 0:10.255.255.8/32: Route install failed
   zebra[4562]: Extended Error: Nexthop has invalid gateway
   </pre>
   
   The solution would be that through *agent.properties* this CIDR can be 
controlled and isn't hardcoded.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to