"dev" <[email protected]> wrote on 08/24/2016 02:10:29 AM:
> From: Chandra Sekhar Vejendla/San Jose/IBM@IBMUS > To: [email protected] > 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" <[email protected]> > > 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 <[email protected]> > --- 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 <[email protected]> Tested-by: Ryan Moats <[email protected]> _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
