summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorDevananda van der Veen <devananda.vdv@gmail.com>2013-02-10 23:30:13 -0800
committerDevananda van der Veen <devananda.vdv@gmail.com>2013-02-11 15:00:24 -0800
commitb0582603a401b2e71348e9a862b83acc426097df (patch)
treedf3c226cabbcba029324f6495e804b4dd29254ce /nova/exception.py
parent20424b987946ee56e39f88aed7fddd35c54d7207 (diff)
downloadnova-b0582603a401b2e71348e9a862b83acc426097df.tar.gz
nova-b0582603a401b2e71348e9a862b83acc426097df.tar.xz
nova-b0582603a401b2e71348e9a862b83acc426097df.zip
Make scheduler remove dead nodes from its cache.
Scheduler HostManager maintains and updates a cache of all compute nodes in its host_state_map. However, entries were never deleted from this mapping, even when the compute nodes were marked as deleted. This patch removes a state_key from host_state_map when it is not returned from db.compute_node_get_all, and logs a notice about it. It also adds unit tests which check for this behaviour. Change-Id: Ibe6c98dd6c2eb02983db47f263d86cb1b76e1c98
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions