task_state may be overwritten in race condition
Bug #1037372 reported by
Yun Mao
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Yun Mao |
Bug Description
task_state acts like a guard to avoid concurrent tasks to be scheduled. There might be two race conditions:
1) two tasks are concurrently accepted by api, check task_state to be None and allow the tasks to be executed concurrently.
2) one ordinary task is running, so that task_state is set. The delete task is accepted at API, and will "take over" and change task_state to DELETING. However the first task may continue to update task_state or set it to None as it finishes.
Changed in nova: | |
assignee: | nobody → Yun Mao (yunmao) |
importance: | Undecided → High |
status: | New → Triaged |
milestone: | none → folsom-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/11895
Review: https:/