]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Don't fail when trying to unbind a router
authorEd Bak <ed.bak2@hp.com>
Mon, 29 Sep 2014 20:15:52 +0000 (14:15 -0600)
committerCarl Baldwin <carl.baldwin@hp.com>
Tue, 7 Oct 2014 14:19:16 +0000 (14:19 +0000)
commit75f34fbbd930a143ed2c4b868f33c117e467e98e
tree2b9092efa8e6182e75b3b45caf5c5a56d1eac974
parent205162f58050fcb94db53cd51b674d2093dfe700
Don't fail when trying to unbind a router

If a router is already unbound from an l3 agent, don't fail.  Log
the condition and go on.  This is harmless since it can happen
due to a delete race condition between multiple neutron-server
processes.  One delete request can determine that it needs to
unbind the router.  A second process may also determine that it
needs to unbind the router.  The exception thrown will result
in a port delete failure and cause nova to mark a deleted instance
as ERROR.

Change-Id: Ia667ea77a0a483deff8acfdcf90ca84cd3adf44f
Closes-Bug: 1367892
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/test_ml2_plugin.py