]> 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)
committerKyle Mestery <mestery@mestery.com>
Fri, 17 Apr 2015 13:23:39 +0000 (13:23 +0000)
commite2f6902315de76a1020aa87ea161c8fdc6697ed7
tree507d3129643261f60adcfa13a40a803b571c0a77
parent2add4e5ad4d12c817737d04ddb973b3aeeb25af3
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
(cherry picked from commit c65d3ab6ad4589e6e4a6b488d2eb5d1e4cfee138)
neutron/db/l3_agentschedulers_db.py
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py