Add task_states.REBOOT_STARTED and REBOOT_PENDING to the filters
when doing _poll_rebooting_instances.
When doing reboot, the task status will be REBOOT_STARTED for
long time in some cases, it's better to add this status
when polling the rebooting instances and try to trigger
reboot again.
for REBOOT_PENDING, it is also reasonable to be added.
besides, this patch also adds new unit test case for
_poll_rebooting_instances.
Reviewed: https:/ /review. openstack. org/123392 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=cb42b79c1bf 3a260c52087416c e46d4602bf2941
Committed: https:/
Submitter: Jenkins
Branch: master
commit cb42b79c1bf3a26 0c52087416ce46d 4602bf2941
Author: Eli Qiao <email address hidden>
Date: Tue Sep 23 16:15:57 2014 +0800
Add more status when do _poll_rebooting _instances
Add task_states. REBOOT_ STARTED and REBOOT_PENDING to the filters _instances.
when doing _poll_rebooting
When doing reboot, the task status will be REBOOT_STARTED for
long time in some cases, it's better to add this status
when polling the rebooting instances and try to trigger
reboot again.
for REBOOT_PENDING, it is also reasonable to be added.
besides, this patch also adds new unit test case for rebooting_ instances.
_poll_
Change-Id: I84e8cb402291ab 1401d432cac8701 d34a82d2d60
Closes-Bug: 1372812