Comment 5 for bug 1300288

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (milestone-proposed)

Reviewed: https://review.openstack.org/86722
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=80e26634af4d9e0ab943abe06583c4c1d0466c65
Submitter: Jenkins
Branch: milestone-proposed

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

    Change-Id: Ic3a502167103e84be041ca1ee06fd17d8140529c
    Closes-Bug: #1300288