yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #79003
[Bug 1780727] Re: Handle HostMappingNotFound when deleting a service
** Also affects: nova/ocata
Importance: Undecided
Status: New
** Changed in: nova/ocata
Status: New => Confirmed
** Changed in: nova/ocata
Importance: Undecided => High
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1780727
Title:
Handle HostMappingNotFound when deleting a service
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) ocata series:
In Progress
Status in OpenStack Compute (nova) pike series:
Fix Committed
Status in OpenStack Compute (nova) queens series:
Fix Committed
Bug description:
While deleting a service, we also try to delete the HostMapping before
it here:
https://github.com/openstack/nova/blob/fcf406003bcde2b60a515f694f2640e27a9d65fd/nova/api/openstack/compute/services.py#L243
. However there could be a situation where we do not find the
HostMapping (for instance when we run nova-manage cell_v2 delete_host
before nova service-delete). This needs to be handled in the try catch
block and if we do not find the host_mapping, we just need to proceed
to deleting the service as opposed to the current behaviour where it
gives a 500.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1780727/+subscriptions
References