[ovs-git] [openvswitch/ovs] c37225: ovn: Delete stale MAC_Bindings that result in Refe...

GitHub noreply at github.com
Fri Aug 26 17:05:24 UTC 2016


  Branch: refs/heads/branch-2.6
  Home:   https://github.com/openvswitch/ovs
  Commit: c37225141d22d587286e065848aed2d5405ce2d7
      https://github.com/openvswitch/ovs/commit/c37225141d22d587286e065848aed2d5405ce2d7
  Author: Chandra S Vejendla <csvejend at us.ibm.com>
  Date:   2016-08-26 (Fri, 26 Aug 2016)

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

  Log Message:
  -----------
  ovn: Delete stale MAC_Bindings that result in Referential Integrity Violation

The MAC_Bindings have a strong reference to the Datapath_Binding. However the
MAC_Bindings are never deleted anywhere, and when the Datapath (associated
with a MAC_Binding) is deleted, the ovsdb-server returns Referential
Integrity Violation. This prevents newer operations initiated from the CMS
from being committed to the Southbound DB.

The patch fixes this  by deleting the MAC_Binding entry when the
logical_port referred in the mac_binding entry is deleted.

Signed-off-by: Chandra Sekhar Vejendla <csvejend at us.ibm.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list