commit 09f07a79a2912b57aca6e348a5a164462703df92
Author: Hans Lindgren <email address hidden>
Date: Tue Jun 10 12:57:33 2014 +0200
Fix host manager node detection logic
This is the last in a series of patches to prepare Ironic for the
removal of capabilities in Nova HostManager.
IronicHostManager used to rely on capabilities info to decide which
host state class to use, VM or baremetal. This has been broken since
host capabilities reporting were removed in Nova, resulting in Nova
HostState class always being used.
This patch fixes the detection logic in IronicHostManager to correctly
choose IronicHostState class for use with baremetal nodes. Tests are
added to verify that the correct class is used for both vm and
baremetal nodes.
In reality, the new detection logic will not start to deliver the
correct HostState class until the Nova HostManager change has landed.
Reviewed: https:/ /review. openstack. org/97447 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=09f07a79a29 12b57aca6e348a5 a164462703df92
Committed: https:/
Submitter: Jenkins
Branch: master
commit 09f07a79a2912b5 7aca6e348a5a164 462703df92
Author: Hans Lindgren <email address hidden>
Date: Tue Jun 10 12:57:33 2014 +0200
Fix host manager node detection logic
This is the last in a series of patches to prepare Ironic for the
removal of capabilities in Nova HostManager.
IronicHostM anager used to rely on capabilities info to decide which
host state class to use, VM or baremetal. This has been broken since
host capabilities reporting were removed in Nova, resulting in Nova
HostState class always being used.
This patch fixes the detection logic in IronicHostManager to correctly
choose IronicHostState class for use with baremetal nodes. Tests are
added to verify that the correct class is used for both vm and
baremetal nodes.
In reality, the new detection logic will not start to deliver the
correct HostState class until the Nova HostManager change has landed.
Change-Id: Ifa47d721835cfe a87e9d0bce87c78 53dd6724b98
Closes-Bug: #1260265