nova/nova/tests
Jim Rollenhagen 047da6498d Ironic: Fix bad capacity reporting if instance_info is unset
If node.instance_info is unset for a node that has an instance on it
(for example, when upgrading Nova from before the patch that set these
values on spawn), the Ironic driver reports 0 for both $resource and
$resource_used. The resource tracker will correct $resource_used, and
resources available will be reported as a negative number.

Correct this by reporting the original value if instance_info is unset.

Closes-Bug: #1502177
Change-Id: I13c5e5430fd305cd0ee2f24cd95304660ccf11eb
2015-10-02 15:02:39 -07:00
..
functional Merge "Fix order of arguments in assertEqual" 2015-09-18 18:46:13 +00:00
unit Ironic: Fix bad capacity reporting if instance_info is unset 2015-10-02 15:02:39 -07:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fixtures.py Skip additionalProperties checks when LegacyV2CompatibleWrapper enabled 2015-08-06 14:38:45 +08:00