nova/nova/tests/unit/virt/ironic
Hironori Shiina 0e24e9e2ec ironic: Cleanup instance information when spawn fails
Instance information such as an instance_uuid set to an ironic node by
_add_driver_fields() is not cleared when spawning is aborted by an
exception raised before ironic starts deployment. Then, ironic node
stays AVAILABLE state with instance_uuid set. This information is not
cleared even if the instance is deleted. The ironic node cannot be
removed nor deployed again becuase instance_uuid remains.

This patch adds a method to remove the information. This method is
called if ironic doesn't need unprovisioning when an instance is
destroyed.

Change-Id: Idf5191aa1c990552ca2340856d5d5b6ac03f7539
Closes-Bug: 1596922
2016-08-05 00:59:28 +09:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_client_wrapper.py Merge "Ironic: Use ironicclient native retries for connection errors" 2016-04-06 04:20:07 +00:00
test_driver.py ironic: Cleanup instance information when spawn fails 2016-08-05 00:59:28 +09:00
test_patcher.py Ironic: remove backwards compatibility code 2016-03-07 14:02:19 +02:00
utils.py [Ironic] Correct check for ready to deploy 2016-05-18 11:56:38 +08:00