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)
Reviewed: https:/ /review. openstack. org/640772 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=81b0e5a0680 883d68d12253af6 4f8e10200df746
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 81b0e5a0680883d 68d12253af64f8e 10200df746
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 c169a4869cfc788 9308ca419d5 0ba0000a475d061 ea9fb10e1a)
Change-Id: I907b69eb689cf6
(cherry picked from commit 19cb8280232fd3b