Comment 4 for bug 1815791

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

Reviewed: https://review.openstack.org/640772
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=81b0e5a0680883d68d12253af64f8e10200df746
Submitter: Zuul
Branch: stable/rocky

commit 81b0e5a0680883d68d12253af64f8e10200df746
Author: Jim Rollenhagen <email address hidden>
Date: Wed Feb 13 12:59:53 2019 -0500

    ironic: check fresh data when sync_power_state doesn't line up

    We return cached data to sync_power_state to avoid pummeling the ironic
    API. However, this can lead to a race condition where an instance is
    powered on, but nova thinks it should be off and calls stop(). Check
    again without the cache when this happens to make sure we don't
    unnecessarily kill an instance.

    Closes-Bug: #1815791
    Change-Id: I907b69eb689cf6c169a4869cfc7889308ca419d5
    (cherry picked from commit 19cb8280232fd3b0ba0000a475d061ea9fb10e1a)