Comment 16 for bug 1834691

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

Reviewed: https://review.opendev.org/669538
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=61104f3974c61bffb500c268fb4e1d6e65c6b3e6
Submitter: Zuul
Branch: stable/pike

commit 61104f3974c61bffb500c268fb4e1d6e65c6b3e6
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)
    (cherry picked from commit 9bc95675325498a7d30b67089e19b5b953d77e75)