]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid auto-scheduling for distributed routers
authorarmando-migliaccio <armamig@gmail.com>
Wed, 20 Aug 2014 19:15:42 +0000 (12:15 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Tue, 2 Sep 2014 17:22:36 +0000 (10:22 -0700)
commit1105d732b2cb6ec66d042c85968d47fe6d733f5f
treec2a401b22b9a557696c34c123ebe30b227b355bf
parent735d6779b880fca87b7619a8e831fe686b1e67e9
Avoid auto-scheduling for distributed routers

The reason for this is twofold:

- It may relieve contention on DB access while
  both servers and l3 agents are busy setting up
  and syncing routers down respectively.

- It prevents accidental placement of namespaces
  during the L3 sync_routers process, as auto
  scheduling without taking into account the state
  of the L3 agents, as well as the state of the
  routers being processed, may overrule the placement
  decision made during router operations.

Partial-bug: #1356121
Partial-bug: #1359326

Change-Id: Ia677ce212145d6cee65adeb1d8ae594e6ac5e34d
neutron/scheduler/l3_agent_scheduler.py
neutron/tests/unit/test_l3_schedulers.py