Race condition in db floating_ip_create and floating_ip_bulk_create
Bug #1145216 reported by
Boris Pavlovic
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Boris Pavlovic |
Bug Description
floating_ip rows should have a unique value in address column.
At this moment we are checking that it doesn't exists in DB and then if it doesn't then we save it in DB.
Select then Insert and this will cause race conditions.
We should add unique constraint on (address, deleted) columns and then just try to insert.
Changed in nova: | |
assignee: | nobody → Boris Pavlovic (boris-42) |
Changed in nova: | |
milestone: | none → havana-1 |
importance: | Undecided → Medium |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-1 → 2013.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/23466
Review: https:/