bifrost/bifrost/tests
Mark Goddard 71e26d1728 Fix missing node facts with BIFROST_INVENTORY_SOURCE=ironic
In Ussuri and earlier releases, the Bifrost custom inventory returns all
node fields as facts. Currently, most of these are returned as null.
This happened following the switch to openstacksdk. The plugin checks
for the presence of a properties field, and gets detailed node
information if it is missing. This worked with shade, but with
openstacksdk, the returned node object has most fields present but set
to null.

One of the most obvious consequences is that provisioning fails, since
the 'Deploy to hardware - Using custom instance_info.' task tries to use
the instance_info value of null.

This change fixes the issue by removing the check and always getting the
detailed node information.

Change-Id: Ia87c8332994f3b0f037ada953a299987bba246e5
Story: 2008394
Task: 41321
2020-11-27 12:19:52 +00:00
..
functional Force local connection for localhost 2020-10-19 22:52:27 +02:00
unit Fix missing node facts with BIFROST_INVENTORY_SOURCE=ironic 2020-11-27 12:19:52 +00:00
__init__.py Add the rest of the cookiecutter-generated files for testing 2015-06-24 16:09:08 -07:00
base.py Modularize inventory and add initial testing 2015-11-04 18:19:49 -05:00
utils.py Remove support for the legacy CSV format 2020-08-25 12:22:12 +02:00