Add expected_task for instance.save() used by block_device mapping in compute.manager._build_resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
For large scale deployment, command can be sent concurrently, and for several times, when an instance was asked to be delete during it is launching, we observed that the vm_state and task_state of that instance has changed abnormally like this:
When we delete the instance while its' task state is networking:
scheduling-
The expected task_state should be:
networking-
and the vm_state changes like this:
BUILD-ACIVE-
After we dive deeper, we found out that in the _build_resource code, the instance.save() for block_device_
https:/
How about we add some expected_task_state also for block_device_
The expected task states can be NETWORKING, SCHEDULING, and none.
Changed in nova: | |
assignee: | nobody → Zhenyu Zheng (zhengzhenyu) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
assignee: | Hans Lindgren (hanlind) → Stephen Finucane (stephenfinucane) |
Changed in nova: | |
status: | In Progress → New |
assignee: | Stephen Finucane (stephenfinucane) → nobody |
Is there a patch in progress for this? I don't see one linked...