]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fixes race condition and boosts the scheduling performance
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Wed, 15 Apr 2015 04:34:33 +0000 (21:34 -0700)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Fri, 17 Apr 2015 16:07:05 +0000 (09:07 -0700)
commitc65d3ab6ad4589e6e4a6b488d2eb5d1e4cfee138
treedcd12dfca6edd28bdd4abe51435b4ef986b3451c
parentcdd73ba053edd0df8fe9a916030cd80f630e183c
Fixes race condition and boosts the scheduling performance

This patch fixes a race-condition that occurs when the
scheduler tries to check for dvr serviceable ports before
it schedules a router when a subnet is associated with
a router.

Sometimes the dhcp port creation is delayed and so the
router is not scheduled to the l3-agent.

Also it boosts the scheduling performance on dvr-snat
node for scheduling a router.

This patch will provide a work around to fix this race
condition and to boost the scheduling performance
by scheduling a router on a dvr-snat when
dhcp is enabled on the provided subnet, instead of checking
all the available ports on the subnet.

Closes-Bug: #1442494

Change-Id: I089fefdd8535bdc9ed90b3230438ab0bfb6aab4f
neutron/db/l3_agentschedulers_db.py
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py