KeyError in host_manager for _get_host_states
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Matthew Booth | ||
Ocata |
Fix Committed
|
High
|
Matt Riedemann | ||
Pike |
Fix Committed
|
High
|
Matt Riedemann |
Bug Description
https:/
In _get_host_states, a list of all computes nodes is retrieved with a `state_key` of `(host, node)`.
https:/
https:/
The small piece of code here removes all of the dead compute nodes from host_state_map
https:/
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:/
Changed in nova: | |
assignee: | Matthew Booth (mbooth-9) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Matthew Booth (mbooth-9) |
I assume your second to last link was this?
https:/ /github. com/openstack/ nova/blob/ master/ nova/scheduler/ host_manager. py#L716