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.
Conflicts: nova/compute/api.py
NOTE(mriedem): The conflict is due to not having change
edf51119fa59ff8a3337abb9107a06fa33d3c68f in stable/ocata.
Change-Id: I58690a25044d2804573451983323dde05be9e5d6
Closes-Bug: #1680211
(cherry picked from commit 5a9cc2fb7af3e3a9db44646bbd23cfcfb16891f5)
Reviewed: https:/ /review. openstack. org/453939 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=eaa38bc973d 65f897078157e20 08653ef47e3d47
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit eaa38bc973d65f8 97078157e200865 3ef47e3d47
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.
Conflicts:
nova/ compute/ api.py
NOTE(mriedem): The conflict is due to not having change 9ff8a3337abb910 7a06fa33d3c68f in stable/ocata.
edf51119fa5
Change-Id: I58690a25044d28 04573451983323d de05be9e5d6 9db44646bbd23cf cfb16891f5)
Closes-Bug: #1680211
(cherry picked from commit 5a9cc2fb7af3e3a