Short-circuit local delete path for cells v2 and InstanceNotFound
When we're going down the local delete path for cells v2 in the API
and instance.destroy() fails with an InstanceNotFound error, we are
racing with a concurrent delete request and know that the instance
is alread deleted, so we can just return rather than fall through to
the rest of the code in the _delete() method, like for BDMs and
console tokens.
Reviewed: https:/ /review. openstack. org/453840 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5a9cc2fb7af 3e3a9db44646bbd 23cfcfb16891f5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5a9cc2fb7af3e3a 9db44646bbd23cf cfb16891f5
Author: Matt Riedemann <email address hidden>
Date: Wed Apr 5 15:12:41 2017 -0400
Short-circuit local delete path for cells v2 and InstanceNotFound
When we're going down the local delete path for cells v2 in the API
and instance.destroy() fails with an InstanceNotFound error, we are
racing with a concurrent delete request and know that the instance
is alread deleted, so we can just return rather than fall through to
the rest of the code in the _delete() method, like for BDMs and
console tokens.
Change-Id: I58690a25044d28 04573451983323d de05be9e5d6
Closes-Bug: #1680211