Add expected_task for used by block_device mapping in compute.manager._build_resources

Bug #1512563 reported by Zhenyu Zheng on 2015-11-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)

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:
The expected task_state should be:
and the vm_state changes like this:
BUILD-ACIVE-disappear , which is also very strange for user.

After we dive deeper, we found out that in the _build_resource code, the for block_device_mapping doesn't contain expected_task_state: , so it also saved "deleting" and two process keep working which causes the above situation.

How about we add some expected_task_state also for block_device_mapping?
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
Jay Pipes (jaypipes) wrote :

Is there a patch in progress for this? I don't see one linked...

Changed in nova:
importance: Undecided → Medium
Zhenyu Zheng (zhengzhenyu) wrote :

Didn't notice this, the patch for this bug is:

Fix proposed to branch: master

Changed in nova:
assignee: Zhenyu Zheng (zhengzhenyu) → Hans Lindgren (hanlind)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Reason: This code hasn't been updated in a long time, and is in merge conflict. I am going to abandon this review, but feel free to restore it if you're still working on this.

Changed in nova:
assignee: Hans Lindgren (hanlind) → Stephen Finucane (stephenfinucane)

Change abandoned by Stephen Finucane (<email address hidden>) on branch: master

Changed in nova:
status: In Progress → New
assignee: Stephen Finucane (stephenfinucane) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers