]> 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)
committerEd Bak <ed.bak2@hp.com>
Wed, 1 Oct 2014 20:47:09 +0000 (14:47 -0600)
commit239b2d94339574f63afe0c6df120bfea2974ef7f
tree33267756569dba0156e3454f426799e07ccdbab4
parent058aec2bf00c32e7c86f166ccf31b43326e551d1
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