nova/nova/scheduler
Roman Podoliaka 13513e6232 ironic_host_manager: fix population of instances info on start
IronicHostManager currently overrides the _init_instance_info()
method of the base class and unconditionally skips population of
instances information for all compute nodes, even if they are not
Ironic ones.

If there are compute nodes with the hypervisor_type different from
Ironic in the same cloud. the instances info will be missing in
nova-scheduler (if IronicHostManager is configured as a host manager
impl in nova.conf), which will effectively break instance affinity
filters like DifferentHostFilter or SameHostFilter, that check set
intersections of instances running on a particular host and the ones
passed as a hint for nova-scheduler in a boot request.

IronicHostManager should use the method implementation of the base
class for non-ironic compute nodes.

Ib1ddb44d71f7b085512c1f3fc0544f7b00c754fe fixed the problem with
scheduling, this change is needed to make sure we also populate the
instances info on start of nova-scheduler.

Closes-Bug: #1606496

Co-Authored-By: Timofei Durakov <tdurakov@mirantis.com>

(cherry-picked from cc64a45d98)
Change-Id: I9d8d2dc99773df4097c178d924d182a0d1971bcc
2016-09-08 16:52:39 +03:00
..
client Modify Scheduler RPC API to use RequestSpec obj 2016-01-06 00:02:22 +01:00
filters Don't raise error when filtering on custom metadata 2016-08-02 12:54:14 +00:00
weights Add a disk space weight-based scheduler. 2016-01-30 10:58:43 +00:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
caching_scheduler.py Add a caching scheduler driver 2014-02-26 13:53:07 +00:00
chance.py Modify Scheduler RPC API to use RequestSpec obj 2016-01-06 00:02:22 +01:00
driver.py Use stevedore for scheduler host manager 2016-01-26 03:55:45 +00:00
filter_scheduler.py Merge "Avoid needless list copy in 'scheduler_host_subset_size' case" 2016-01-08 14:32:58 +00:00
host_manager.py ironic_host_manager: fix population of instances info on start 2016-09-08 16:52:39 +03:00
ironic_host_manager.py ironic_host_manager: fix population of instances info on start 2016-09-08 16:52:39 +03:00
manager.py Use stevedore for scheduler driver 2016-01-26 03:55:45 +00:00
rpcapi.py Modify Scheduler RPC API to use RequestSpec obj 2016-01-06 00:02:22 +01:00
scheduler_options.py Config options: centralize section "scheduler" 2015-12-01 19:31:13 +00:00
utils.py remove the unnecessary parem of set_vm_state_and_notify 2016-02-03 16:25:11 +00:00