[ovs-git] [openvswitch/ovs] da6ada: OVN: assign new addresses at the end of build_ipam...

GitHub noreply at github.com
Tue Nov 6 15:50:12 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: da6adacd78f6d41599ba13728b5cdd319717ddcf
      https://github.com/openvswitch/ovs/commit/da6adacd78f6d41599ba13728b5cdd319717ddcf
  Author: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M ovn/northd/ovn-northd.c

  Log Message:
  -----------
  OVN: assign new addresses at the end of build_ipam routine

Visit all ovn datapaths before adding new dynamic addresses to the
system in order to avoid possible L2 address duplication when
the same MAC address is configured on different ovn logical switches.
Current implementation can miss the duplicated address since macam
is cleared at each ovn run and there is no guarantee on visit order
of ovn datapath hash table

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


  Commit: c814545b43acc760a85d165c2c5676f06deccde1
      https://github.com/openvswitch/ovs/commit/c814545b43acc760a85d165c2c5676f06deccde1
  Author: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

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

  Log Message:
  -----------
  OVN: configure L2 address according to the used IP address

Configure L2 dynamic address according to used IPv4 address.
This patch allows to define a deterministic relationship between
L2 and L3 addresses when dynamic IPAM is used.
This patch allows to fix a possible L2/L3 address mismatch than can
occur when pods are created and destroyed at high rate [1] since if
there is no relation between MAC and IP addresses ARP cache can be
poisoned with a wrong correspondence

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1626217

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/282e53576530...c814545b43ac
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list