commit 84533f5eb3c5b4ab7598d7c278b53524acc1c6e0
Author: Matt Riedemann <email address hidden>
Date: Tue Mar 5 17:16:23 2019 -0500
Fix WeighedHost logging regression
Change I8666e0af3f057314f6b06939a108411b8a88d64b in Pike
refactored some code in the FilterScheduler which accidentally
changed how the list of weighed hosts are logged, which caused
the wrapped HostState objects to be logged rather than the
WeighedHost objects, which contain the actual "weight" attribute
which is useful for debugging weigher configuration and
scheduling decisions.
This fixes the regression by logging the weighed hosts before
stripping off the WeighedHost wrapper and adds a simple wrinkle
to an existing test to assert we are logging the correct object.
Reviewed: https:/ /review. openstack. org/641143 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=84533f5eb3c 5b4ab7598d7c278 b53524acc1c6e0
Committed: https:/
Submitter: Zuul
Branch: master
commit 84533f5eb3c5b4a b7598d7c278b535 24acc1c6e0
Author: Matt Riedemann <email address hidden>
Date: Tue Mar 5 17:16:23 2019 -0500
Fix WeighedHost logging regression
Change I8666e0af3f0573 14f6b06939a1084 11b8a88d64b in Pike
refactored some code in the FilterScheduler which accidentally
changed how the list of weighed hosts are logged, which caused
the wrapped HostState objects to be logged rather than the
WeighedHost objects, which contain the actual "weight" attribute
which is useful for debugging weigher configuration and
scheduling decisions.
This fixes the regression by logging the weighed hosts before
stripping off the WeighedHost wrapper and adds a simple wrinkle
to an existing test to assert we are logging the correct object.
Change-Id: I528794b4b6f000 7efc1238ad28dc4 02456664f86
Closes-Bug: #1816360