nova/nova
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
..
CA
api Merge "Return HTTP 200 on list for invalid status" into stable/mitaka 2016-08-24 04:12:21 +00:00
cells Unavailable hosts have no resources for use 2016-05-31 09:16:03 -07:00
cert Move config options from nova/cert directory 2016-01-14 22:22:34 +00:00
cloudpipe Remove Deprecated EC2 and ObjectStore impl/tests 2016-01-08 06:30:20 -05:00
cmd Fail to start nova-api if no APIs were able to be started 2016-05-03 14:19:53 -04:00
common Added Keystone and RequestID headers to CORS middleware 2016-03-02 04:53:11 -08:00
compute Merge "List instances for secgroup without joining on rules" into stable/mitaka 2016-09-01 04:33:55 +00:00
conductor Stop providing force_hosts to the scheduler for move ops 2016-03-25 20:35:28 +00:00
conf Revert "virt: reserved hugepages on compute host" 2016-03-14 10:26:23 +00:00
console Fix invalid import order 2016-01-20 05:03:41 -08:00
consoleauth Removal of unnecessary `import_opt`s for cells config options 2016-02-12 14:16:54 +02:00
db List instances for secgroup without joining on rules 2016-08-13 18:13:36 -04:00
hacking Hacking: check for deprecated os.popen() 2016-02-19 21:55:20 -02:00
image Fix retry mechanism for generator results 2016-03-21 14:37:22 +00:00
ipv6
keymgr Migrate from keystoneclient to keystoneauth 2016-01-28 10:55:29 -06:00
locale Imported Translations from Zanata 2016-07-21 07:49:14 +00:00
mks
network Return None in get_instance_id_by_floating_address 2016-08-20 01:27:17 +00:00
objects pci: add safe-guard to __eq__ of PciDevice 2016-07-18 10:10:03 +00:00
openstack Use imageutils from oslo.utils 2016-02-16 18:34:43 +08:00
pci libvirt: implement LibvirtConfigGuestInterface.parse_dom 2016-02-09 09:26:25 -08:00
rdp
scheduler ironic_host_manager: fix population of instances info on start 2016-09-08 16:52:39 +03:00
servicegroup Add service binary/host to service is down log for context 2016-02-26 12:57:57 -05:00
spice
tests ironic_host_manager: fix population of instances info on start 2016-09-08 16:52:39 +03:00
virt Merge "libvirt: Fix ssh driver to to prevent prompting" into stable/mitaka 2016-08-24 03:08:02 +00:00
vnc config options: Centralise 'vnc' options 2016-02-03 13:36:20 +00:00
volume Fix multipath iSCSI encrypted volume attach failure 2016-08-03 14:14:43 +00:00
wsgi Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
__init__.py
availability_zones.py Merge "Config options: centralize options in availability_zones" 2016-02-20 04:49:15 +00:00
baserpc.py
block_device.py virt: refactor method compute_driver_matches 2016-03-10 00:27:13 +08:00
cache_utils.py Switch to oslo.cache lib 2016-02-02 08:20:13 -05:00
config.py Added Keystone and RequestID headers to CORS middleware 2016-03-02 04:53:11 -08:00
context.py Fix string interpolations at logging calls 2016-03-07 12:05:58 +09:00
crypto.py Tolerate installation of pycryptodome 2016-02-13 21:29:28 -05:00
debugger.py
exception.py Revert "virt: reserved hugepages on compute host" 2016-03-14 10:26:23 +00:00
filters.py Prepare filters for using RequestSpec object 2015-11-16 22:41:02 +01:00
hooks.py Deprecate nova.hooks 2016-03-01 11:52:52 +00:00
i18n.py
loadables.py
manager.py Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
netconf.py
notifications.py Replaced deprecated timeutils methods 2015-11-18 17:45:29 +01:00
opts.py Sample nova.conf file has missing/duplicated config options 2016-03-03 13:08:02 +01:00
paths.py
policy.py use graduated oslo.policy 2015-11-26 13:04:52 +08:00
quota.py
rpc.py Forbid new legacy notification event_type 2016-03-07 10:31:56 +01:00
safe_utils.py Replace safe_utils.getcallargs with inspect.getcallargs 2015-12-11 10:15:37 -05:00
service.py Fix string interpolations at logging calls 2016-03-07 12:05:58 +09:00
signature_utils.py Fix sphinx warnings from signature_utils 2016-01-13 13:56:05 +00:00
test.py Forbid new legacy notification event_type 2016-03-07 10:31:56 +01:00
utils.py Merge "Remove unused methods in nova/utils.py" 2016-03-07 18:15:24 +00:00
version.py
weights.py
wsgi.py config options: centralize section "wsgi" 2016-02-03 13:18:10 +00:00