commit 9bc95675325498a7d30b67089e19b5b953d77e75
Author: Matt Riedemann <email address hidden>
Date: Fri Jun 28 16:19:49 2019 -0400
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 d540903463aa9b0cf69cefac7cc60e5b70e40a1c)
(cherry picked from commit 725b37f515e4ad01e1f4491b6d8137ce1416f6d6)
(cherry picked from commit 5acbea506a137492511a762e454d785810365bd8)
Reviewed: https:/ /review. opendev. org/668911 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9bc95675325 498a7d30b67089e 19b5b953d77e75
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 9bc95675325498a 7d30b67089e19b5 b953d77e75
Author: Matt Riedemann <email address hidden>
Date: Fri Jun 28 16:19:49 2019 -0400
Init HostState. failed_ builds
If _update_ from_compute_ node returns early and the HostState is eWeigher because the failed_builds attribute is not
not filtered out we can hit an AttributeError in the
BuildFailur
set. This simply initializes the attribute like the other stats
fields.
Change-Id: I5f8e4d32c6a1d6 b61396b4fa11c5d 776f432df0c cf69cefac7cc60e 5b70e40a1c) 1e1f4491b6d8137 ce1416f6d6) 2511a762e454d78 5810365bd8)
Closes-Bug: #1834691
(cherry picked from commit d540903463aa9b0
(cherry picked from commit 725b37f515e4ad0
(cherry picked from commit 5acbea506a13749