Avoid live migrate overwriting the other task_state
As commit 4082c8375a6ae7e7e67c7ad2e263be2d5fc3dd1f says,
one ordinary task is running, so that task_state is set. The
live_migrate task is accepted at API, and will change task_state to
MIGRATING. However the first task may continue to update task_state or
set it to None as it finishes.
This patch avoids it by updating task_state in compute.api.live_migrate
level with expected_task_state=None.
Reviewed: https:/ /review. openstack. org/12859 github. com/openstack/ nova/commit/ a3bdc1624fd557e 0699acb049b1ca0 c1ef894c2f
Committed: http://
Submitter: Jenkins
Branch: master
commit a3bdc1624fd557e 0699acb049b1ca0 c1ef894c2f
Author: Jian Wen <email address hidden>
Date: Wed Sep 12 17:45:03 2012 +0800
Avoid live migrate overwriting the other task_state
As commit 4082c8375a6ae7e 7e67c7ad2e263be 2d5fc3dd1f says,
one ordinary task is running, so that task_state is set. The
live_migrate task is accepted at API, and will change task_state to
MIGRATING. However the first task may continue to update task_state or
set it to None as it finishes.
This patch avoids it by updating task_state in compute. api.live_ migrate task_state= None.
level with expected_
Add test case for compute. api.live_ migrate.
Fixes bug 1049533
Change-Id: Ida8cef4797de42 1a7e356c9f5e882 fe926535639