Nova-compute would periodically sync the instance status. So in the
instance failure recovery workflow,it would stop instance random failed
because of conflict, which will terminate the recovery workflow.
This patch can catch the Confict exception and continue the recovery
workflow if the instance already stopped.
Closes-Bug: 1980736
Change-Id: I59a1f9d7078614c1ddc8f4c362e967a15b8ec5e8
(cherry picked from commit 7241101163550b3cd981262468dc523ccb25cc9e)
Reviewed: https:/ /review. opendev. org/c/openstack /masakari/ +/856586 /opendev. org/openstack/ masakari/ commit/ ebfbd6de4357b89 d836e9fdb1bb3b3 565dce023b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit ebfbd6de4357b89 d836e9fdb1bb3b3 565dce023b
Author: suzhengwei <email address hidden>
Date: Mon Jul 25 17:28:31 2022 +0800
Fix stopping stopped instances
Nova-compute would periodically sync the instance status. So in the
instance failure recovery workflow,it would stop instance random failed
because of conflict, which will terminate the recovery workflow.
This patch can catch the Confict exception and continue the recovery
workflow if the instance already stopped.
Closes-Bug: 1980736 c1ddc8f4c362e96 7a15b8ec5e8 cd981262468dc52 3ccb25cc9e)
Change-Id: I59a1f9d7078614
(cherry picked from commit 7241101163550b3