[ovs-dev] [PATCH v2] ovn: Delete stale MAC_Bindings that result in Referential Integrity Violation

Ben Pfaff blp at ovn.org
Fri Aug 26 17:05:42 UTC 2016


On Thu, Aug 25, 2016 at 12:04:13PM -0700, Chandra S Vejendla wrote:
> 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>
> ---
> v1->v2:
>  Call cleanup_mac_bindings only when ports are deleted

Thanks, applied to master and branch-2.6.



More information about the dev mailing list