nova/nova/tests/functional/compute
Balazs Gibizer 530ad1ae88 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.

Conflicts:
      nova/tests/unit/compute/test_compute_mgr.py

Conflict due to Ia1b3ab0b66fdaf569f6c7a09510f208ee28725b2 is not in
stable/stein

Change-Id: I856a3032c83fc2f605d8c9b6e5aa3bcfa415f96a
Closes-Bug: #1833581
(cherry picked from commit a1a735bc6e)
(cherry picked from commit 06fd7c7301)
2019-10-09 17:09:59 +02:00
..
__init__.py virt: implement get_inventory() for Ironic 2017-03-15 21:49:25 +00:00
test_host_api.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_init_host.py Error out interrupted builds 2019-10-09 17:09:59 +02:00
test_instance_list.py Minimal construct plumbing for nova list when a cell is down 2018-10-31 15:12:18 -04:00
test_live_migration.py Reject migrate with port having resource request 2019-01-28 15:51:10 +01:00
test_migration_list.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_resource_tracker.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00