[ovs-git] [ovn-org/ovn] 323fac: northd: Fix the routing for external logical ports...

numansiddique noreply at github.com
Wed Aug 19 15:39:27 UTC 2020


  Branch: refs/heads/branch-20.06
  Home:   https://github.com/ovn-org/ovn
  Commit: 323fac52db2140d3b4b76d7d80911861c0e2fc22
      https://github.com/ovn-org/ovn/commit/323fac52db2140d3b4b76d7d80911861c0e2fc22
  Author: Numan Siddique <numans at ovn.org>
  Date:   2020-08-19 (Wed, 19 Aug 2020)

  Changed paths:
    M northd/ovn-northd.8.xml
    M northd/ovn-northd.c
    M tests/ovn.at

  Log Message:
  -----------
  northd: Fix the routing for external logical ports of bridged logical switches.

Routing for external logical ports is broken if these ports belonged
to bridged logical switches (with localnet port) and 'ovn-chassis-mac-mappings'
is configured. External logical ports are those which are external to OVN,
but there is a logical port for it and it is claimed by one of the HA chassis.
The claimed chassis provides routing and other native OVN serices like dhcp and dns.

When the external port sends ARP request for the router IP, the claimed chassis
replies for the ARP request, but the arp.sha is set to the actual router mac instead
of the chassis mac. This causes the traffic from external port VM/container to be handled
incorrectly. A ping to the router ip, is replied by all the chassis which can see this
packet instead of just the claimed HA chassis.

This patch fixes this issue by adding a logical flow to drop any packet from the external
ports destined to the router port mac on all the chassis except the claimed chassis.

Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1829762
Reported-by: Daniel Alvarez <dalvarez at redhat.com>
Suggested-by: Dumitru Ceara <dceara at redhat.com>
Acked-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>

(cherry-picked from master commit ea6b7f06183a9cf524a139a685aca859ef8af441)




More information about the git mailing list