]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Minor refactoring of auto_schedule_routers
authorarmando-migliaccio <armamig@gmail.com>
Fri, 15 Aug 2014 22:55:21 +0000 (15:55 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Fri, 22 Aug 2014 15:16:38 +0000 (08:16 -0700)
commit2fc7fd6eb1b7e728b45e6a202cd9011dbb920950
tree91ab99e61109f930e5d7d944ea90cf5ebe66a513
parent921969d374b102b2fad9bae0ae9a522af35108d2
Minor refactoring of auto_schedule_routers

The method is more complicated than it needs to be, and it makes it difficult
to target fixes for it.

This is done in preparation of fix for DB lock timeout errors observed while
dealing with DVR routers.

Test coverage is already provided, and more granular coverage is added to
reflect the new structure being introduced.

Partial-bug: #1356121

Change-Id: Ifb7a742b64139f3a5d9b88c3c6261b1b890946f9
neutron/db/agents_db.py
neutron/scheduler/l3_agent_scheduler.py
neutron/tests/unit/db/test_agent_db.py
neutron/tests/unit/test_l3_schedulers.py