<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 31, 2022 at 9:09 PM Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Luis,<div><br></div><div>Here are the requested things which you asked for. </div><div><br></div><div>### Versions </div><div><br></div><div>pyroute2 = 0.7.2<br></div><div>openvswitch-switch = 2.17.0-0ubuntu1~cloud0<br></div><div>ovn = 22.03.0-0ubuntu1~cloud0</div><div>devstack master branch </div><div><br></div><div>### Rack-1-host-2 </div><div><br></div><div>vagrant@rack-1-host-2:~$ ip rule<br>0: from all lookup local<br>1000: from all lookup [l3mdev-table]<br>32000: from all to <a href="http://10.0.0.1/26" target="_blank">10.0.0.1/26</a> lookup br-ex<br>32000: from all to 172.16.1.144 lookup br-ex<br>32000: from all to 172.16.1.148 lookup br-ex<br>32766: from all lookup main<br>32767: from all lookup default<br></div><div><br></div><div><br></div><div>vagrant@rack-1-host-2:~$ ip route show table br-ex<br>default dev br-ex scope link<br><a href="http://10.0.0.0/26" target="_blank">10.0.0.0/26</a> via 172.16.1.144 dev br-ex<br>172.16.1.144 dev br-ex scope link<br>172.16.1.148 dev br-ex scope link<br></div><div><br></div></div></blockquote><div><br></div><div>This above looks like it has worked, it exposed the network properly in there, so it seems it is just missing the IP addition for some reason.</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>### Rack-2-host-1<br></div><div><br></div><div>vagrant@rack-2-host-1:~$ ip rule<br>0: from all lookup local<br>1000: from all lookup [l3mdev-table]<br>32000: from all to 172.16.1.143 lookup br-ex<br>32766: from all lookup main<br>32767: from all lookup default<br></div><div><br></div><div><br></div><div>vagrant@rack-2-host-1:~$ ip route show table br-ex<br>default dev br-ex scope link<br>172.16.1.143 dev br-ex scope link<br></div><div><br></div><div><br></div><div>#### I have quickly cloned the latest branch of ovn-bgp-agent and ran and found the following error. Assuming your patch is part of that master branch. </div></div></blockquote><div><br></div><div>Yes, it is, it got merged yesterday.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>rack-1-host-2: <a href="https://paste.opendev.org/show/bWbhmbzbi8YHGZsbhUAb/" target="_blank">https://paste.opendev.org/show/bWbhmbzbi8YHGZsbhUAb/</a></div></div></blockquote><div><br></div><div>Umm, same error... I'll need to check that locally to see if I'm able to reproduce it.</div><div><br></div><div>Perhaps worth to rewrite this:</div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono","monospace",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(156,220,254)">extra_routes</span><span style="color:rgb(212,212,212)">.</span><span style="color:rgb(220,220,170)">append</span><span style="color:rgb(212,212,212)">(</span></div><div><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(156,220,254)">ndb</span><span style="color:rgb(212,212,212)">.routes[{</span><span style="color:rgb(206,145,120)">'table'</span><span style="color:rgb(212,212,212)">: </span><span style="color:rgb(156,220,254)">ovn_routing_tables</span><span style="color:rgb(212,212,212)">[</span><span style="color:rgb(156,220,254)">bridge</span><span style="color:rgb(212,212,212)">],</span></div><div><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(206,145,120)">'dst'</span><span style="color:rgb(212,212,212)">: </span><span style="color:rgb(156,220,254)">dst</span><span style="color:rgb(212,212,212)">,</span></div><div><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(206,145,120)">'family'</span><span style="color:rgb(212,212,212)">: </span><span style="color:rgb(79,193,255)">AF_INET</span><span style="color:rgb(212,212,212)">}]</span></div></div></div><div><br></div><div>As this to better see where the problem is:</div><div>ovn_table = ovn_routing_tables[bridge]</div><div>found_route = ndb.routes[{'table': ovn_table, 'dst': dst, 'family': AF_INET}]</div><div>extra_routes.append(round_route)<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div><br></div><div>Notes: This is bug or something else - <a href="https://opendev.org/x/ovn-bgp-agent/src/branch/master/ovn_bgp_agent/privileged/vtysh.py#L27" target="_blank">https://opendev.org/x/ovn-bgp-agent/src/branch/master/ovn_bgp_agent/privileged/vtysh.py#L27</a></div><div><br></div><div>I have to replace the above Line:27 code of vtysh to the following to fix the vtysh error. </div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:".AppleSystemUIFontMonospaced"">@ovn_bgp_agent.privileged.vtysh_cmd.entrypoint</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:".AppleSystemUIFontMonospaced"">def run_vtysh_config(frr_config_file):</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:".AppleSystemUIFontMonospaced""><span> </span>vtysh_command = "copy {} running-config".format(frr_config_file)</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:".AppleSystemUIFontMonospaced""><span> </span>full_args = ['/usr/bin/vtysh', '--vty_socket', constants.FRR_SOCKET_PATH, 'c']</p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:".AppleSystemUIFontMonospaced""><span> </span>full_args.extend(vtysh_command.split(' '))</p></div></div></blockquote><div><br></div><div>Umm, weird, what exception was being raised?</div><div><br></div><div> BTW, feel free to send any patch with fixes to the project!</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 31, 2022 at 3:51 AM Luis Tomas Bolivar <<a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 31, 2022 at 9:12 AM Luis Tomas Bolivar <<a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">See below<br><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 30, 2022 at 10:14 PM Satish Patel <<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Luis,</div><div><br></div><div>I have redeploy my lab and i have following components </div><div><br></div><div>rack-1-host-1 - controller<br></div><div>rack-1-host-2 - compute1<br></div><div>rack-2-host-1 - compute2 <br></div><div><br></div><div><br></div><div># I am running ovn-bgp-agent on only two compute nodes compute1 and compute2 </div><div>[DEFAULT]<br>debug=False<br>expose_tenant_networks=True<br>driver=ovn_bgp_driver<br>reconcile_interval=120<br>ovsdb_connection=unix:/var/run/openvswitch/db.sock<br></div><div><br></div><div>### without any VM at present i can see only router gateway IP on rack1-host-2 </div></div></blockquote><div><br></div><div>Yep, this is what is expected at this point.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>vagrant@rack-1-host-2:~$ ip a show ovn<br>37: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 0a:f7:6e:e0:19:69 brd ff:ff:ff:ff:ff:ff<br> inet <a href="http://172.16.1.144/32" target="_blank">172.16.1.144/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet6 fe80::8f7:6eff:fee0:1969/64 scope link<br> valid_lft forever preferred_lft forever<br></div><div><br></div><div><br></div><div>vagrant@rack-2-host-1:~$ ip a show ovn<br>15: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 56:61:6b:29:ac:29 brd ff:ff:ff:ff:ff:ff<br> inet6 fe80::5461:6bff:fe29:ac29/64 scope link<br> valid_lft forever preferred_lft forever<br></div><div><br></div><div><br></div><div>### Lets create vm1 which is endup on rack1-host-2 but it didn't expose vm1 ip (tenant ip) same with rack-2-host-1</div><div><br></div><div>vagrant@rack-1-host-2:~$ ip a show ovn<br>37: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 0a:f7:6e:e0:19:69 brd ff:ff:ff:ff:ff:ff<br> inet <a href="http://172.16.1.144/32" target="_blank">172.16.1.144/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet6 fe80::8f7:6eff:fee0:1969/64 scope link<br> valid_lft forever preferred_lft forever<br></div></div></blockquote><div><br></div><div>It should be exposed here, what about the output of "ip rule" and "ip route show table br-ex"?</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>vagrant@rack-2-host-1:~$ ip a show ovn<br>15: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 56:61:6b:29:ac:29 brd ff:ff:ff:ff:ff:ff<br> inet6 fe80::5461:6bff:fe29:ac29/64 scope link<br> valid_lft forever preferred_lft forever<br></div><div><br></div><div><br></div><div>### Lets attach a floating ip to vm1 and see. now i can see 10.0.0.17 vm1 ip got expose on rack-1-host-2 same time nothing on rack-2-host-1 ( ofc because no vm running on it)</div><div><br></div><div>vagrant@rack-1-host-2:~$ ip a show ovn<br>37: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 0a:f7:6e:e0:19:69 brd ff:ff:ff:ff:ff:ff<br> inet <a href="http://172.16.1.144/32" target="_blank">172.16.1.144/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet <a href="http://10.0.0.17/32" target="_blank">10.0.0.17/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet <a href="http://172.16.1.148/32" target="_blank">172.16.1.148/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet6 fe80::8f7:6eff:fee0:1969/64 scope link<br> valid_lft forever preferred_lft forever<br></div></div></blockquote><div><br></div><div>There is also a resync action happening every 120 seconds... Perhaps for some reason the initial addition of 10.0.0.17 failed and then the sync discovered it and added it (and it matched with the time you added the FIP more or less). <br></div><div><br></div><div>But events are managed one by one and those 2 are different, so adding the FIP is not adding the internal IP. It was probably a sync action.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div><br></div><div>vagrant@rack-2-host-1:~$ ip a show ovn<br>15: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 56:61:6b:29:ac:29 brd ff:ff:ff:ff:ff:ff<br> inet6 fe80::5461:6bff:fe29:ac29/64 scope link<br> valid_lft forever preferred_lft forever<br></div><div><br></div><div><br></div><div>#### Lets spin up vm2 which should end up on other compute node which is rack-2-host-1 ( no change yet.. vm2 ip wasn't exposed anywhere yet. )</div><div><br></div><div>vagrant@rack-1-host-2:~$ ip a show ovn<br>37: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 0a:f7:6e:e0:19:69 brd ff:ff:ff:ff:ff:ff<br> inet <a href="http://172.16.1.144/32" target="_blank">172.16.1.144/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet <a href="http://10.0.0.17/32" target="_blank">10.0.0.17/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet <a href="http://172.16.1.148/32" target="_blank">172.16.1.148/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet6 fe80::8f7:6eff:fee0:1969/64 scope link<br> valid_lft forever preferred_lft forever<br></div><div><br></div><div><br></div><div>vagrant@rack-2-host-1:~$ ip a show ovn<br>15: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 56:61:6b:29:ac:29 brd ff:ff:ff:ff:ff:ff<br> inet6 fe80::5461:6bff:fe29:ac29/64 scope link<br> valid_lft forever preferred_lft forever<br></div><div><br></div><div><br></div><div>#### Lets again attach floating ip to vm2 ( so far nothing changed, technically it should expose IP on rack-1-host-2 )</div><div><br></div><div>vagrant@rack-1-host-2:~$ ip a show ovn<br>37: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 0a:f7:6e:e0:19:69 brd ff:ff:ff:ff:ff:ff<br> inet <a href="http://172.16.1.144/32" target="_blank">172.16.1.144/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet <a href="http://10.0.0.17/32" target="_blank">10.0.0.17/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet <a href="http://172.16.1.148/32" target="_blank">172.16.1.148/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet6 fe80::8f7:6eff:fee0:1969/64 scope link<br> valid_lft forever preferred_lft forever<br></div><div><br></div><div>The IP of the second VM should be exposed here ^, in rack-1-host-2, while the FIP in the other compute (rack-2-host-1)<br></div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>vagrant@rack-2-host-1:~$ ip a show ovn<br>15: ovn: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovn-bgp-vrf state UNKNOWN group default qlen 1000<br> link/ether 56:61:6b:29:ac:29 brd ff:ff:ff:ff:ff:ff<br> inet <a href="http://172.16.1.143/32" target="_blank">172.16.1.143/32</a> scope global ovn<br> valid_lft forever preferred_lft forever<br> inet6 fe80::5461:6bff:fe29:ac29/64 scope link<br> valid_lft forever preferred_lft forever<br></div><div><br></div><div><br></div><div>Here is the logs - <a href="https://paste.opendev.org/show/bRThivJE4wvEN92DXJUo/" target="_blank">https://paste.opendev.org/show/bRThivJE4wvEN92DXJUo/</a> </div></div></blockquote><div><br></div><div>What node these logs belong to? rack-1-host-2?</div><div><br></div><div>And are you running with the latest code? Looks the problem is on the sync function when trying to ensure the routing table entry for br-ex. It prints this:</div><div><pre>2022-08-30 20:12:54.541 8318 DEBUG ovn_bgp_agent.utils.linux_net [-] Found routing table for br-ex with: ['200', 'br-ex']</pre></div><div>So definitely ovn_routing_tables should be initialized with {'br-ex': 200}, so I don't really get where the KeyError comes from...</div><div><br></div><div>Unless it is not accessing the dict, but accessing the ndb.routes... perhaps with the pyroute2 version you have, the family parameter is needed there. Let me send a patch that you can try with</div></div></div></blockquote><div><br></div><div>This is the patch <a href="https://review.opendev.org/c/x/ovn-bgp-agent/+/855062" target="_blank">https://review.opendev.org/c/x/ovn-bgp-agent/+/855062</a>. Give it a try and let me know if the error you are seeing in the logs goes away with it</div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 25, 2022 at 6:25 AM Luis Tomas Bolivar <<a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 25, 2022 at 11:31 AM Satish Patel <<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi Luis,<div><br></div><div>Very interesting, you are saying it will only expose tenant ip on gateway port node? Even we have DVR setup in cluster correct? </div></div></blockquote><div><br></div><div>Almost. The path is the same as in a DVR setup without BGP (with the difference you can reach the internal IP). In a DVR setup, when the VM is in a tenant network, without a FIP, the traffic goes out through the cr-lrp (ovn router gateway port), i.e., the node hosting that port which is connecting the router where the subnet where the VM is to the provider network.</div><div><br></div><div>Note this is a limitation due to how ovn is used in openstack neutron, where traffic needs to be injected into OVN overlay in the node holding the cr-lrp. We are investigating possible ways to overcome this limitation and expose the IP right away in the node hosting the VM.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br></div><div>Does gateway node going to expose ip for all other compute nodes? <br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br></div><div>What if I have multiple gateway node? </div></div></blockquote><div><br></div><div>No, each router connected to the provider network will have its own ovn router gateway port, and that can be allocated in any node which has "enable-chassis-as-gw". What is true is that all VMs in a tenant networks connected to the same router, will be exposed in the same location .</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br></div><div>Did you configure that flag on all node or just gateway node? </div></div></blockquote><div><br></div><div>I usually deploy with 3 controllers which are also my "networker" nodes, so those are the ones having the enable-chassis-as-gw flag.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Aug 25, 2022, at 4:14 AM, Luis Tomas Bolivar <<a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>I tested it locally and it is exposing the IP properly in the node where the ovn router gateway port is allocated. Could you double check if that is the case in your setup too?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 24, 2022 at 8:58 AM Luis Tomas Bolivar <<a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 23, 2022 at 6:04 PM Satish Patel <<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Folks,<br><div><br></div><div>I am setting up ovn-bgp-agent lab in "BGP mode" and i found everything working great except expose tenant network <a href="https://ltomasbo.wordpress.com/2021/02/04/ovn-bgp-agent-testing-setup/" target="_blank">https://ltomasbo.wordpress.com/2021/02/04/ovn-bgp-agent-testing-setup/</a> </div><div><br></div><div>Lab Summary:</div><div><br></div><div>1 controller node </div><div>3 compute node</div><div><br></div><div>ovn-bgp-agent running on all compute node because i am using "enable_distributed_floating_ip=True" <br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>ovn-bgp-agent config:</div><div><br></div><div>[DEFAULT]<br>debug=False<br>expose_tenant_networks=True<br>driver=ovn_bgp_driver<br>reconcile_interval=120<br>ovsdb_connection=unix:/var/run/openvswitch/db.sock<br></div><div><br></div><div>I am not seeing my vm on tenant ip getting exposed but when i attach FIP which gets exposed in loopback address. here is the full trace of debug logs: <a href="https://paste.opendev.org/show/buHiJ90nFgC1JkQxZwVk/" target="_blank">https://paste.opendev.org/show/buHiJ90nFgC1JkQxZwVk/</a> </div></div></blockquote><div><br></div><div>It is not exposed in any node, right? Note when expose_tenant_network is enabled, the traffic to the tenant VM is exposed in the node holding the cr-lrp (ovn router gateway port) for the router connecting the tenant network to the provider one.</div><div><br></div><div>The FIP will be exposed in the node where the VM is.</div><div><br></div><div>On the other hand, the error you see there should not happen, so I'll investigate why that is and also double check if the expose_tenant_network flag is broken somehow. <br></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div>Thanks!<br></div></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div>LUIS TOMÁS BOLÍVAR<br>Principal Software Engineer<br>Red Hat<br>Madrid, Spain<br><a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a> <br> <br></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div>LUIS TOMÁS BOLÍVAR<br>Principal Software Engineer<br>Red Hat<br>Madrid, Spain<br><a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a> <br> <br></div></div></div></div>
</div></blockquote></div></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div>LUIS TOMÁS BOLÍVAR<br>Principal Software Engineer<br>Red Hat<br>Madrid, Spain<br><a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a> <br> <br></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div>LUIS TOMÁS BOLÍVAR<br>Principal Software Engineer<br>Red Hat<br>Madrid, Spain<br><a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a> <br> <br></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div>LUIS TOMÁS BOLÍVAR<br>Principal Software Engineer<br>Red Hat<br>Madrid, Spain<br><a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a> <br> <br></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>LUIS TOMÁS BOLÍVAR<br>Principal Software Engineer<br>Red Hat<br>Madrid, Spain<br><a href="mailto:ltomasbo@redhat.com" target="_blank">ltomasbo@redhat.com</a> <br> <br></div></div></div></div>