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.
Reviewed: https:/ /review. openstack. org/582674 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ee6e0c1e7eb 861e56915c5b6c6 0a214b75240366
Committed: https:/
Submitter: Zuul
Branch: master
commit ee6e0c1e7eb861e 56915c5b6c60a21 4b75240366
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
Closes-Bug: #1780727