]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Delete DVR namespaces on node after removing last VM
authorStephen Ma <stephen.ma@hp.com>
Wed, 6 Aug 2014 22:33:32 +0000 (22:33 +0000)
committerStephen Ma <stephen.ma@hp.com>
Wed, 13 Aug 2014 22:56:38 +0000 (22:56 +0000)
commit69ce923ca30faf0865f3d59de4157fec21ed6e0d
tree07b8eba24ca48b87634948815ab9011a4a8f5c35
parentce2d3ffd9e49030b04bf3f410149d76703331041
Delete DVR namespaces on node after removing last VM

After removing the last VM using a distributed router,
the router's namespaces are still present on the VM host
The problem is that the neutron API server sent the router
remove notification to the L3 agent using the name of the
host running the L3 agent instead of the agent's uuid. This
caused an error when sending the notification. So the L3
agent never had the chance to cleanup the namespace.
This problem is fixed here.

Afterwards, it was found that the notification was still not
sent. The reason is that the router/L3-agent binding has
already been deleted before the routine that sends the
router removed notification was called. The notifier routine
errored out when it tried to delete the same router/L3 agent
binding. This problem is fixed in this patch by removing the
binding removal step from the DVR scheduler.

Change-Id: I6323d7ff438bb6c31e4a794bd3da96bf132fdc85
Closes-Bug: 1353165
neutron/db/l3_dvrscheduler_db.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/test_ml2_plugin.py