Race condition between lease creation and event thread
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Fix Released
|
High
|
Pierre Riteau |
Bug Description
If a lease is created to start immediately, there is a possible race condition between the lease creation function (create_lease() in blazar/
The race condition happens in the following fashion:
1. create_lease() calls db_api.
2. The manager thread running events is triggered by its periodic timer. It finds that the start_lease event is ready to run and executes _basic_action(). Since there is no reservation yet, _basic_action() only
marks the event status as 'DONE'.
3. create_lease() finishes running by creating reservations associated with the lease.
4. Reservations stay in "pending" status forever because the start_lease event has already run.
Changed in blazar: | |
importance: | Undecided → High |
assignee: | nobody → Pierre Riteau (priteau) |
milestone: | none → 0.3.0 |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. openstack. org/483884
Review: https:/