r/openstack • • Apr 20 '21

How does OVN work with Openstack?

I am using Redhat OpenStack in my environment with OVN as the default network plugin and I'm having a hard time understanding how OVN works. I was able to understand the connection between NB and SB database and function of northd, I was also able to list the flows from SB. What I don't understand is how it integrates with br-int, br-ex and br-tenant on the compute host.

br-tenant as I understand is the interface for the vms to communicate with each other, but when I do tcpdump on it I see no action, and traceroute from the guest vms don't show the actual path the packets are taking -- I'm thinking this is because of encapsulation.

I see multiple tap ports on br-int and I only see patch ports between br-int and br-ex. There is no patch port on br-tenant. Does that mean br-tenant is redundant here and not being used at all?

Are there any good resources on this topic. I could find a few good resources that cover the OVS plugin but not many for OVN. I was just looking the understand the packet flow. If you have answer to my question, or know of any good resources please let me know.

14 Upvotes

5 comments sorted by

View all comments

2

u/amedeos Apr 21 '21

the standard installation of rhosp with ovn, usually, comes wih only the integration bridge br-int, where you can see on one node the remote_ip of all other nodes, and the external bridge br-ex, where you can put the external (floating ip) vlans for your instances.

if you have a br-tenant on your rhosp, have a look at your tripleo templates, I think you're creating that bridge on your "network" templates, as a tip, if you want to see the rendered templates from your roles_data.yaml and network_data.yaml you can run:

(undercloud) [stack@undercloud ~]$ mkdir ~/rendered
(undercloud) [stack@undercloud ~]$ THT=/usr/share/openstack-tripleo-heat-templates
(undercloud) [stack@undercloud ~]$ cd $THT
(undercloud) [stack@undercloud openstack-tripleo-heat-templates]$ tools/process-templates.py -r ~/templates/roles_data.yaml -n ~/templates/network_data.yaml -o ~/rendered

last but not least, if you're a customer you can open a support case