commit 80e26634af4d9e0ab943abe06583c4c1d0466c65
Author: Devananda van der Veen <email address hidden>
Date: Tue Apr 1 16:16:02 2014 +0100
Fix Nova rescheduling tear down problem
If something fails in the spawn() method (e.g driver parameters, node
in maintenance mode) nova will try to rescheduler the instance (in case
the retry filter is enabled) as part of the rescheduling process nova
will call destroy() on that instance which was cause another problem
when Ironic tried to undeploy a node that wasn't deployed. This patch
is fixing the tear down problem by checking the provision_state of the
node before requesting Ironic to undeploy the node.
Cherry picked from 1b1d6b0cec64311ae62443b8647fd528d3c91f1d
Reviewed: https:/ /review. openstack. org/86722 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=80e26634af4 d9e0ab943abe065 83c4c1d0466c65
Committed: https:/
Submitter: Jenkins
Branch: milestone-proposed
commit 80e26634af4d9e0 ab943abe06583c4 c1d0466c65
Author: Devananda van der Veen <email address hidden>
Date: Tue Apr 1 16:16:02 2014 +0100
Fix Nova rescheduling tear down problem
If something fails in the spawn() method (e.g driver parameters, node
in maintenance mode) nova will try to rescheduler the instance (in case
the retry filter is enabled) as part of the rescheduling process nova
will call destroy() on that instance which was cause another problem
when Ironic tried to undeploy a node that wasn't deployed. This patch
is fixing the tear down problem by checking the provision_state of the
node before requesting Ironic to undeploy the node.
Cherry picked from 1b1d6b0cec64311 ae62443b8647fd5 28d3c91f1d
Change-Id: Ic3a502167103e8 4be041ca1ee06fd 17d8140529c
Closes-Bug: #1300288