nova/nova/scheduler
Balazs Gibizer 64f797a051 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
2019-11-27 13:52:43 +01:00
..
client Fix false ERROR message at compute restart 2019-11-27 13:52:43 +01:00
filters scheduler: Start utilizing RequestSpec.network_metadata 2018-07-24 15:05:07 -04:00
weights Change deprecated policies to policy 2018-07-27 02:20:30 +00: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 Remove [scheduler]/host_manager config option 2018-05-03 09:39:26 -04:00
filter_scheduler.py Fix WeighedHost logging regression 2019-03-06 13:48:30 +00:00
host_manager.py Init HostState.failed_builds 2019-07-01 16:26:59 +00:00
manager.py Use INFO for logging no allocation candidates 2018-09-27 11:06:45 -04:00
request_filter.py Honor availability_zone hint via placement 2018-05-22 08:56:50 -07:00
rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-26 12:52:39 -05:00
utils.py Disable limit if affinity(anti)/same(different)host is requested 2019-07-01 11:01:27 -04:00