nova/nova/tests/functional/compute
Balazs Gibizer 4164b96de9 Error out interrupted builds
If the compute service is restarted while build requests are
executing the instance_claim or waiting for the COMPUTE_RESOURCE_SEMAPHORE
then those instances will be stuck forever in BUILDING state. If the instance
already finished instance_claim then instance.host is set and when the
compute restarts the instance is put to ERROR state.

This patch changes compute service startup to put instances into
ERROR state if they a) are in the BUILDING state, and b) have
allocations on the compute resource provider, but c) do not have
instance.host set to that compute.

Change-Id: I856a3032c83fc2f605d8c9b6e5aa3bcfa415f96a
Closes-Bug: #1833581
(cherry picked from commit a1a735bc6e)
(cherry picked from commit 06fd7c7301)
(cherry picked from commit cb951cbcb2)
(cherry picked from commit 13bb7ed701)
2019-10-28 15:13:16 +01:00
..
__init__.py virt: implement get_inventory() for Ironic 2017-03-15 21:49:25 +00:00
test_host_api.py Support paging over compute nodes with a uuid marker 2017-06-22 12:47:37 -04:00
test_init_host.py Error out interrupted builds 2019-10-28 15:13:16 +01:00
test_instance_list.py Fix minor input items from previous patches 2017-10-09 07:29:22 -07:00
test_live_migration.py Handle volume API failure in _post_live_migration 2018-10-16 22:43:20 -04:00
test_migration_list.py Add cross cell sort support for get_migrations 2018-01-09 15:34:03 -05:00
test_resource_tracker.py Make ResourceTracker.stats node-specific 2018-08-01 14:57:55 -04:00