"dev" <dev-boun...@openvswitch.org> wrote on 08/24/2016 02:10:29 AM:
> From: Chandra Sekhar Vejendla/San Jose/IBM@IBMUS > To: dev@openvswitch.org > Date: 08/24/2016 02:11 AM > Subject: [ovs-dev] [PATCH] ovn: Delete stale MAC_Bindings that > result in Referential Integrity Violation > Sent by: "dev" <dev-boun...@openvswitch.org> > > 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 <csvej...@us.ibm.com> > --- I've run the test without and with the ovn-northd.c patch and verified that without the patch it fails, and with the patch it succeeds. I've followed this up by stacking the patch with tip of the tree openstack master and verified that without the patch, trying to clean up the default router made by stacking does not clean up the Datapath_Binding because of a stale MAC_Binding entry, while with the patch, everything cleans up correctly. Lastly, I've run the stock rally create-and-delete-routers job and verified that all Datapath_Binding entries for routers created by rally are cleaned up correctly (i.e. there are no stale MAC_Binding entries), so... Acked-by: Ryan Moats <rmo...@us.ibm.com> Tested-by: Ryan Moats <rmo...@us.ibm.com> _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev