nova/nova/scheduler
Balazs Gibizer 4fcb7816bc Fix false ERROR message at compute restart
If an empty compute is restarted a false ERROR message was printed in
the log as the placement report client does not distinguish between
error from placement from empty allocation dict from placement.

This patch changes get_allocations_for_resource_provider to return None
in case of error instead of an empty dict. This is in line with
@safe_connect that would make the call return None as well. The
_error_out_instances_whose_build_was_interrupted also is changed to check
for None instead of empty dict before reporting the ERROR. The only
other caller of get_allocations_for_resource_provider was already
checking for None and converting it to an empty dict so from that caller
perspective this is compatible change on the report client.

This is stable only change as get_allocations_for_resource_provider was
improved during stein[1] to raise on placement error.

[1]I020e7dc47efc79f8907b7bfb753ec779a8da69a1

Change-Id: I6042e493144d4d5a29ec6ab23ffed6b3e7f385fe
Closes-Bug: #1852759
(cherry picked from commit 64f797a051)
2019-11-29 19:41:09 +00:00
..
client Fix false ERROR message at compute restart 2019-11-29 19:41:09 +00: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 Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
caching_scheduler.py Mark Chance and Caching schedulers as deprecated 2017-08-09 10:53:53 -07:00
chance.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
driver.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
filter_scheduler.py Fix WeighedHost logging regression 2019-03-06 08:50:09 -05:00
host_manager.py Merge "Changing scheduler sync event from INFO to DEBUG" into stable/queens 2019-08-10 03:16:55 +00:00
ironic_host_manager.py [Stable Only] Initialise failed_builds in IronicNodeState 2018-06-14 05:41:14 +00:00
manager.py Skip placement on rebuild in same host 2018-04-12 19:16:31 +00:00
rpcapi.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
utils.py Disable limit if affinity(anti)/same(different)host is requested 2019-08-09 10:26:09 -04:00