]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Descheduling DVR routers when ports are unbound from VM
authorStephen Ma <stephen.ma@hp.com>
Fri, 28 Aug 2015 14:00:48 +0000 (14:00 +0000)
committerStephen Ma <stephen.ma@hp.com>
Thu, 10 Sep 2015 00:06:16 +0000 (00:06 +0000)
commitd5a8074ec3c67ed68e64a96827da990f1c34e10f
treeede7fb219dd3d3ba7b2fd1b4ffffb8110d9524f3
parentaa1c040a20addcc4f5d3b35b3ad45cf5a25fde6f
Descheduling DVR routers when ports are unbound from VM

When a VM is deleted, the DVR port used by the VM could be unbound
from the compute node. When it is unbounded, it is no longer
in use on the node. Currently the unbind doesn't trigger a check
to determine whether the DVR router can be unscheduled from the
L3-agent running on the compute node. This patch makes the check
and unschedule the router, if necessary.

Closes-Bug: 1489184
Change-Id: I882e0682bfc7695b3b23e36eb4d7e35a5d19748e
neutron/db/l3_dvrscheduler_db.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/plugins/ml2/test_plugin.py
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py