Comment 10 for bug 1072751

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/219980
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=22d9e3d2ae7a36ef28ee3b539210e3362f486724
Submitter: Jenkins
Branch: master

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.

    Change-Id: Icdde0bc2e8c8c90ba20f48f010f230ae4d4dca54
    Closes-Bug: #1072751