]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix: Skip rescheduling networks if no DHCP agents available
authorOleg Bondarev <obondarev@mirantis.com>
Wed, 5 Aug 2015 14:43:02 +0000 (17:43 +0300)
committerOleg Bondarev <obondarev@mirantis.com>
Wed, 5 Aug 2015 14:52:29 +0000 (17:52 +0300)
commit6e3817433e443fd008ef433f54068c197c78465b
treebbc6367693f3dacec13347fc60477f0e1c193203
parentc58441796736a763c910a7486646d1969ec1b98c
Fix: Skip rescheduling networks if no DHCP agents available

This fixes commit 1318437a0caf38e695a819848832a955fef7d909
which has inaccurate check for dead agents: in a case where
there is only one network scheduled to a subset of dhcp agents,
number of all dhcp agents will be not equal to the number of
dead binded agents

The unit test is updated to cover the described case.

Closes-Bug: #1461714
Change-Id: I1c9501316c931293aa8ba755a98779a7da27578d
neutron/db/agentschedulers_db.py
neutron/tests/unit/scheduler/test_dhcp_agent_scheduler.py