nova/nova/tests/unit/virt/ironic
Jim Rollenhagen f0ca0f73b1 Ironic: Don't report resources for nodes without instances
Ironic falsely reports resources as consumed for certain states. Some
of these states are not associated with an instance, and the resource
tracker will notice that and "correct" the driver. This allows nodes
in CLEANING, etc. to be scheduled to.

Fix this by only reporting resources consumed when an instance UUID
is associated with the node. This association happens before the deploy
starts, and is removed after Nova sees tear down as complete, so it
should be safe to only look at the instance UUID for this. For any
"unavailable" state, report that there are zero resources available,
never allowing the node to be scheduled to.

Closes-Bug: #1462374
Change-Id: I48913f724a1bbe3711ea543a50b9ba096d5e95d7
2015-06-05 09:02:09 -07:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_client_wrapper.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_driver.py Ironic: Don't report resources for nodes without instances 2015-06-05 09:02:09 -07:00
test_patcher.py Ironic: Remove passing Flavor's deploy_{kernel, ramdisk} 2015-03-24 17:43:48 +00:00
utils.py Use flavor stored with instance in ironic driver 2015-03-05 21:49:08 +00:00