Handle HostMappingNotFound when deleting a compute service
If the compute service we're deleting has never been
discovered (mapped to a cell using discover_hosts) or the
host mapping was already deleted, we need to handle the
HostMappingNotFound error when deleting a compute service
so that we (1) don't 500 out of the API and (2) continue to
delete the compute service.
Change-Id: I0d7644db3537a67b94e75972b3c4fce25a623763
Closes-Bug: #1780727
(cherry picked from commit ee6e0c1e7eb861e56915c5b6c60a214b75240366)
(cherry picked from commit 0be8cbc302aa77b312e031f6a7a419e83afd6e3b)
Reviewed: https:/ /review. openstack. org/583567 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0b45fcd3ba3 45b3f400ce72999 2ffdca07548b0b
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 0b45fcd3ba345b3 f400ce729992ffd ca07548b0b
Author: Matt Riedemann <email address hidden>
Date: Fri Jul 13 15:42:03 2018 -0400
Handle HostMappingNotFound when deleting a compute service
If the compute service we're deleting has never been NotFound error when deleting a compute service
discovered (mapped to a cell using discover_hosts) or the
host mapping was already deleted, we need to handle the
HostMapping
so that we (1) don't 500 out of the API and (2) continue to
delete the compute service.
Change-Id: I0d7644db3537a6 7b94e75972b3c4f ce25a623763 56915c5b6c60a21 4b75240366) 312e031f6a7a419 e83afd6e3b)
Closes-Bug: #1780727
(cherry picked from commit ee6e0c1e7eb861e
(cherry picked from commit 0be8cbc302aa77b