]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Catch DBReferenceError exception during binding a router
authorEugene Nikanorov <enikanorov@mirantis.com>
Mon, 17 Nov 2014 16:49:09 +0000 (20:49 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Wed, 19 Nov 2014 07:55:28 +0000 (11:55 +0400)
commite0e8a2e9e81c2f6293eaa8556c5ecdac910358cb
tree7814de1d59fa4dbe57538a62ce884dc137d49900
parentbf286e064ae9ef1d613d0327c21d9d4f6def68c7
Catch DBReferenceError exception during binding a router

In some cases (Concurrent API tests) router can be deleted
before it is bound to an agent by scheduler.
That may lead to traces on L3 agent side returned via RPC.
Need to handle this case in more graceful way.

Change-Id: Ic52c26ace7f32a615150bd6098b244ae0b98250c
Closes-Bug: #1385257
neutron/scheduler/l3_agent_scheduler.py
neutron/tests/unit/test_l3_schedulers.py