]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix l3 agent scheduling logic to avoid unwanted failures
authorEugene Nikanorov <enikanorov@mirantis.com>
Tue, 19 Aug 2014 19:01:11 +0000 (23:01 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Wed, 27 Aug 2014 05:42:19 +0000 (09:42 +0400)
commit89e76a8afae19c5f66d532538607aedaac59722a
treef58c5c197c8f9ac1924dd337b4fdd17805ab68a1
parentdaa619c02f3da25a2dfedebf3031b6af9a51931c
Fix l3 agent scheduling logic to avoid unwanted failures

In case router is being added to l3 agent which is already hosting
the router it is fine to let such a request to succeed.
This patch also adds a check for unnecessary scheduling that might happen
twice in described case and lead to unwanted messages in the logs.

Change-Id: Id104b36ba7e1e6f6a9378ee600c33e9962230521
Closes-Bug: #1358636
neutron/db/l3_agentschedulers_db.py
neutron/tests/unit/openvswitch/test_agent_scheduler.py
neutron/tests/unit/test_l3_schedulers.py