nova/nova/tests/unit/scheduler
Matt Riedemann 9bc9567532 Init HostState.failed_builds
If _update_from_compute_node returns early and the HostState is
not filtered out we can hit an AttributeError in the
BuildFailureWeigher because the failed_builds attribute is not
set. This simply initializes the attribute like the other stats
fields.

Change-Id: I5f8e4d32c6a1d6b61396b4fa11c5d776f432df0c
Closes-Bug: #1834691
(cherry picked from commit d540903463)
(cherry picked from commit 725b37f515)
(cherry picked from commit 5acbea506a)
2019-07-03 14:01:27 +00:00
..
client Disable limits if force_hosts or force_nodes is set 2018-07-29 00:58:30 +08:00
filters Added ability to configure default architecture for ImagePropertiesFilter 2018-05-15 12:28:43 +00:00
weights Change consecutive build failure limit to a weigher 2018-06-07 07:17:51 -07:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py placement: using the dict format for the allocation in claim_resources 2018-01-24 23:31:18 +08:00
ironic_fakes.py Set IronicNodeState.uuid in _update_from_compute_node 2017-07-25 17:52:47 -04:00
test_caching_scheduler.py Change consecutive build failure limit to a weigher 2018-06-07 07:17:51 -07:00
test_chance_scheduler.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
test_client.py [placement] Add sending global request ID in delete (3) 2018-01-22 02:23:12 +00:00
test_filter_scheduler.py Fix WeighedHost logging regression 2019-03-06 08:50:09 -05:00
test_filters.py Fix invalid uuid warnings 2016-05-10 09:04:37 +00:00
test_host_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_host_manager.py Init HostState.failed_builds 2019-07-03 14:01:27 +00:00
test_ironic_host_manager.py Stop globally caching host states in scheduler HostManager 2018-01-15 19:54:15 +00:00
test_rpcapi.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
test_scheduler.py Skip placement on rebuild in same host 2018-04-12 19:16:31 +00:00
test_scheduler_utils.py Make scheduler.utils.setup_instance_group query all cells 2018-09-05 16:36:22 +00:00
test_utils.py Disable limits if force_hosts or force_nodes is set 2018-07-29 00:58:30 +08:00