commit 22d9e3d2ae7a36ef28ee3b539210e3362f486724
Author: Michael Still <email address hidden>
Date: Thu Sep 3 13:41:10 2015 +1000
Handle nova-compute failure during a soft reboot
A soft reboot is soft in the sense that we let the instance
respond to ACPI events before shutdown. We still shutdown the
libvirt domain however.
Therefore, if nova-compute crashes having shutdown the instance
domain, but before starting it again, when nova-compute
restarts it will see an instance in a task_state indicating a
soft reboot, but with the power_state being shutdown. This was
unexpected and caused an instance.save() to crash out.
In those cases, change the task_state to one corresponding to
a hard reboot, and continue on.
Reviewed: https:/ /review. openstack. org/219980 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=22d9e3d2ae7 a36ef28ee3b5392 10e3362f486724
Committed: https:/
Submitter: Jenkins
Branch: master
commit 22d9e3d2ae7a36e f28ee3b539210e3 362f486724
Author: Michael Still <email address hidden>
Date: Thu Sep 3 13:41:10 2015 +1000
Handle nova-compute failure during a soft reboot
A soft reboot is soft in the sense that we let the instance
respond to ACPI events before shutdown. We still shutdown the
libvirt domain however.
Therefore, if nova-compute crashes having shutdown the instance
domain, but before starting it again, when nova-compute
restarts it will see an instance in a task_state indicating a
soft reboot, but with the power_state being shutdown. This was
unexpected and caused an instance.save() to crash out.
In those cases, change the task_state to one corresponding to
a hard reboot, and continue on.
Change-Id: Icdde0bc2e8c8c9 0ba20f48f010f23 0ae4d4dca54
Closes-Bug: #1072751