Ironic: Better handle InstanceNotFound on destroy()
After telling Ironic to delete the instance the destroy() code in the
Ironic nova driver keeps waiting for the provision state of that node
to change. If the instance have been already cleaned up in Ironic the
nova code should just ignore it and continue. This also skip trying to
update the node to remove the instance association if the instance was
already removed in Ironic.
Missing unittests to the _unprovision() method were added as part of
this patch since it touches it.
Reviewed: https:/ /review. openstack. org/204995 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5eddd50537f 1666021f71b2df7 f49d58400ec31f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5eddd50537f1666 021f71b2df7f49d 58400ec31f
Author: Lucas Alvares Gomes <email address hidden>
Date: Thu Jul 23 10:54:12 2015 +0100
Ironic: Better handle InstanceNotFound on destroy()
After telling Ironic to delete the instance the destroy() code in the
Ironic nova driver keeps waiting for the provision state of that node
to change. If the instance have been already cleaned up in Ironic the
nova code should just ignore it and continue. This also skip trying to
update the node to remove the instance association if the instance was
already removed in Ironic.
Missing unittests to the _unprovision() method were added as part of
this patch since it touches it.
Closes-Bug: #1436568 8b7bb2b46fdaba1 92922926420
Change-Id: I0b1b710056d48c