Comment 10 for bug 1834691

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/queens)

Reviewed: https://review.opendev.org/668911
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=9bc95675325498a7d30b67089e19b5b953d77e75
Submitter: Zuul
Branch: stable/queens

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)