r/openstack • u/[deleted] • 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.
2
u/slaweq Apr 21 '21
Generally bridges are similar to what is with ML2/OVS backend so:
- br-int - it is integration bridge to which all ports (VMs, routers, etc.) are plugged,
- br-ex (or any other bridge configured in bridge mapping, like in Your case br-tenant also probably) are bridges used by the provider networks. Provider networks are vlan or flat networks in neutron. Such network has some physical_network configured in neutron db so packets send to that network from vm will be visible in the bridge which is mapped to that physical network on the node.
- in ML2/OVS case there is also bridge called br-tun which is used for the tenant networks like vxlan and there are tunnel endpoints in that bridge created. I don't have any ML2/OVN running env now to check that for sure but I'm not sure if there is such bridge in OVN case too. You will need to check that.