]> git.proxmox.com Git - ovs.git/commit
ovn: Delete stale MAC_Bindings that result in Referential Integrity Violation
authorChandra S Vejendla <csvejend@us.ibm.com>
Thu, 25 Aug 2016 19:04:13 +0000 (12:04 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 26 Aug 2016 17:03:58 +0000 (10:03 -0700)
commit6e31816f719925b5b56a14ac564d3b6194f2df68
tree6be5e9a8239d0f9070144fa151e42fd4b21c4e3a
parent9dba43815bc6d09125ba033fb9a766fc243afb8e
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@us.ibm.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/northd/ovn-northd.c
tests/ovn.at