In order to expose OVN LoadBalancers at OpenStack with BGP the traffic needs to be exposed on the chassis having the CR-LRP port. As this information is only available currently at the OVN SB DB, the ovn-bgp-agent [1] is connected to it. This forces making some assumptions about OVN SB DBs that may change in the future (such as the availability of a Load_Balancer table). In order not to double the number of connections to OVN DBs (i.e., SB + NB), it would be required to add the gateway chassis binding information to the NB. This would enable only connecting to NB to expose the routes though BGP. [1] https://opendev.org/x/ovn-bgp-agent
Hi Luis, I'm triaging this issue. I'm having trouble understanding which information you need in the northbound database. Can you be more specific about what you currently are getting from the southbound database and where in the northbound database you would like it to live? Is the issue that you have set multiple gateway chassis for a router port and you need to know which of the configured chassis the port is currently bound on? Or have I misinterpreted the request? Thanks!
Hi Mark, that is exactly what I need. For instance, https://opendev.org/x/ovn-bgp-agent is using this information to be able to expose ovn-lb through BGP (as the ARP reply comes from the cr-lrp port where the loadbalancer members are connected through) on the node currently holding the gateway chassis port. This information is available at SB DB, but not at NB DB. For what I saw, that is the only information I'm missing so that we could change the agent to use NB instead of SB.
Thanks, Luis. I'll mark triage complete.