<div dir="ltr"> Hi Rodolfo,<div><br></div><div>you helped a lot. I managed configure this, manually. Just for future reference let me write down what I did.</div><div>- First I already had the interface br-ex2 configured and correctly assigned physical interfaces in it</div><div>- I added the bridge mappings to the OVN DB:</div><div>ovs-vsctl set open . external-ids:ovn-bridge-mappings=datacentre:br-ex,m-storage:br-ex2<br></div><div><br></div><div>- I added my nw m-storage to ml2_conf.ini:</div><div>[ml2_type_vlan]<br>network_vlan_ranges=datacentre:1:2700,m-storage:3700:4000</div><div><br>[ml2_type_flat]<br>flat_networks=datacentre,m-storage<br></div><div><br></div><div>- I restarted the neutron service</div><div>- since I already had the m-storage nw created in openstack, but as provider "datacenter" and I already had instance ports using it (but it was not working), I had to create a new network and subnet. Delete the original ports and recreate and reassign it to the instances.</div><div><br></div><div>If I may, now I have two questions:</div><div>1. Shouldn't I also define this in ml2_conf.ini</div><div>[ovs]</div><div>bridge_mappings = datacentre:br-ex,m-storage:br-ex2<br></div><div><br></div><div>or is the setting of the vswitch register via ovs-vsctl persistent between redeployments or reboots?</div><div><br></div><div>2. Which parameters in tripleo-heat-templates sets the above ml2_conf.ini? I found these params:</div><div>NeutronFlatNetworks<br>NeutronNetworkVLANRanges<br>NeutronBridgeMappings</div><span class="gmail-im" style="color:rgb(80,0,80)"><div><br></div><div>Thanks for your help</div><div><br></div><div>Tomas</div><div><br></div></span></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ut 7. 3. 2023 o 10:13 Rodolfo Alonso Hernandez <<a href="mailto:ralonsoh@redhat.com">ralonsoh@redhat.com</a>> napísal(a):<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>Hello Tomáš:</div><div><br></div><div>You need to follow the steps in [1]:</div><div>* You need to create the new physical bridge "br-ex2".</div><div>* Then you need to add to the bridge the physical interface.</div><div>* In the compute node you need to add the bridge mappings to the OVN database Open vSwitch register</div><div>* In the controller, you need to add the reference for this second provider network in "flat_networks" and "network_vlan_ranges" (in the ml2.ini file). Then you need to restart the Neutron server to read these new parameters (this step is not mentioned in this link).</div><div> $ cat ./etc/neutron/plugins/ml2/ml2_conf.ini</div><div> [ml2_type_flat]<br></div><div> flat_networks = public,public2</div><div> [ml2_type_vlan]<br></div><div> network_vlan_ranges = public:11:200,public2:11:200<br></div><div><br></div><div>Regards.<br></div><div><br></div><div>[1]<a href="https://docs.openstack.org/networking-ovn/pike/admin/refarch/provider-networks.html" target="_blank">https://docs.openstack.org/networking-ovn/pike/admin/refarch/provider-networks.html</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 7, 2023 at 12:33 AM Tomáš Bredár <<a href="mailto:tomas.bredar@gmail.com" target="_blank">tomas.bredar@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,<div><br></div><div>I have a running production OpenStack deployment - version Wallaby installed using TripleO. I'm using the default OVN/OVS networking.</div><div>For provider networks I have two bridges on the compute nodes br-ex and br-ex2. Instances mainly use br-ex for provider networks, but there are some instances which started using a provider network which should be mapped to br-ex2, however I didn't specify "bridge_mappings" on ml2_conf.ini, so the traffic wants to flow through the default datacentre:br-ex.</div><div>My questions is, what services should I restart on the controller and compute nodes after defining bridge_mappings in [ovs] in ml2_conf.ini. And if this operation is safe and if the instances already using br-ex will lose connectivity?</div><div><br></div><div>Thanks for your help</div><div><br></div><div>Tomas</div></div>
</blockquote></div>
</blockquote></div>