]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix DB Duplicate error when scheduling distributed routers
authorarmando-migliaccio <armamig@gmail.com>
Fri, 1 Aug 2014 02:20:00 +0000 (19:20 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Fri, 1 Aug 2014 13:51:45 +0000 (06:51 -0700)
commit0b4e42fe11bf918e18ea8f240d9055b3967b60bb
tree5cb93fb52e1c90541bd0cce2953fb13e7f7cd8d6
parentf32c0ebe68f0ad27ac7a9717ef3f6e3406f953a1
Fix DB Duplicate error when scheduling distributed routers

The error was caused by binding the router to an agent
candidate that was already selected during the scheduling
process.

A DB lookup was also saved by passing the router object
around; this led to a minor style cleanup.

Closes-bug: #1351123

Change-Id: Ib71a0140c8a7fbd5b230609d33487f8adba252e7
neutron/db/l3_dvrscheduler_db.py
neutron/scheduler/l3_agent_scheduler.py
neutron/tests/unit/test_l3_schedulers.py