[ovs-dev] [PATCH v2] ovn: Delete stale MAC_Binding records
Liran Schour
LIRANS at il.ibm.com
Mon Aug 22 07:52:10 UTC 2016
Amitabha Biswas <azbiswas at gmail.com> wrote on 20/08/2016 08:14:36 AM:
> We have seen our Cloud deployment and usage come to a halt after
> deleting a Logical Router, due the problem being addressed below.
> 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 (in our case OpenStack) from being
> committed to the Southbound DB (the northd keeps getting the
> violation for newer commits).
>
> Another way to avoid the Referential Integrity Violation in this
> case is to make the datapath Column have a weak reference (default
> is strong) to the Datapath_Binding row and allow the column to be
> empty (min 0). We can probably add that on top of the current patch.
> I?m making that assumption that it won?t affect the conditional
> monitoring patch (791a7747427310f6a09c7b2f57a99d65338dfb45) which
> introduced the Data_Binding column strong reference.
>
Yes it will work but I think that it is better to delete a MAC_Binding row
when the logical port is deleted. There is no sense on keeping a
MAC_Binding row of a deleted logical port.
More information about the dev
mailing list