]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Clean out namespaces even if we don't delete namespaces
authorCarl Baldwin <carl.baldwin@hp.com>
Tue, 1 Apr 2014 22:16:59 +0000 (22:16 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Fri, 4 Apr 2014 16:04:57 +0000 (16:04 +0000)
commit8ab6fd6d7e521a3692f57542e5c5c5d513d57ccc
treea179f288d2453ed0ecceb6a2609a84fda0d5e4f2
parenta86bc415b61b7d452b7fe201e63565e75e9c60c2
Clean out namespaces even if we don't delete namespaces

Even when we don't enable namespace deletion, we still want to run the
code that cleans out the namespaces so that the devices get unplugged,
etc.  Otherwise, routers deleted while the agent is down will continue
to operate as if they were never deleted.

The trade-off to consider here is that if there are many stale
namespaces this will slow down the restart of the L3 agent.  The best
option is to get namespace deletion working correctly.  However, where
that has not been worked out yet, this patch provides the cleaning
service for deleted routers.

Change-Id: Ic7b4608a23c4d9530f521d5faff3f8526200b92e
Closes-Bug: #1301042
Related-Bug: #1052535
neutron/agent/l3_agent.py
neutron/tests/unit/test_l3_agent.py