yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #70072
[Bug 1739323] Re: KeyError in host_manager for _get_host_states
** Also affects: nova/ocata
Importance: Undecided
Status: New
** Also affects: nova/pike
Importance: Undecided
Status: New
** Changed in: nova
Assignee: Matt Riedemann (mriedem) => Matthew Booth (mbooth-9)
** Changed in: nova/ocata
Status: New => Confirmed
** Changed in: nova/pike
Status: New => Confirmed
** Changed in: nova/pike
Importance: Undecided => High
** 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/1739323
Title:
KeyError in host_manager for _get_host_states
Status in OpenStack Compute (nova):
In Progress
Status in OpenStack Compute (nova) ocata series:
Confirmed
Status in OpenStack Compute (nova) pike series:
Confirmed
Bug description:
https://github.com/openstack/nova/blob/master/nova/scheduler/host_manager.py#L674-L718
In _get_host_states, a list of all computes nodes is retrieved with a
`state_key` of `(host, node)`.
https://github.com/openstack/nova/blob/master/nova/scheduler/host_manager.py#L692
https://github.com/openstack/nova/blob/master/nova/scheduler/host_manager.py#L708
The small piece of code here removes all of the dead compute nodes
from host_state_map
https://github.com/openstack/nova/blob/master/nova/scheduler/host_manager.py#L708
However, the result is returned by iterating over all seen nodes and
using that index for host_state_map, some of which have been deleted
by the code above, resulting in a KeyError.
https://github.com/openstack/nova/blob/master/nova/scheduler/host_manager.py#L718
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1739323/+subscriptions
References