nova/nova/tests/unit/virt/ironic
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
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_client_wrapper.py Ironic: Use ironicclient native retries for Conflict in ClientWrapper 2015-08-11 15:59:41 +02:00
test_driver.py Ironic: Fix bad capacity reporting if instance_info is unset 2015-10-02 15:02:39 -07:00
test_patcher.py ironic: convert driver to use nova.objects.ImageMeta 2015-09-07 17:11:02 +01:00
utils.py ironic: convert driver to use nova.objects.ImageMeta 2015-09-07 17:11:02 +01:00