nova/nova/tests/unit/compute
Matt Riedemann 54407afef3 Get original image_id from volume for volume-backed instance rebuild
A volume-backed instance will not have the instance.image_ref
attribute set, to indicate to the API user that it is a volume-backed
instance.

Commit 984dd8ad6a missed this subtle
difference with how instance.image_ref is used, which means a rebuild
of any volume-backed instance will now run through the scheduler, even
if the image_href passed to rebuild is the same image ID as for the
root volume.

This fixes that case in rebuild by getting the image metadata off the
root volume for a volume-backed instance and compares that to the
image_href passed to rebuild.

Change-Id: I48cda813b9effa37f6c3e0cd2e8a22bb78c79d72
Closes-Bug: #1732947
2017-12-04 16:37:55 -05:00
..
monitors Allow monitor plugins to set own metric object 2016-06-27 14:38:32 +05:30
__init__.py
eventlet_utils.py
fake_resource_tracker.py rt: explicitly pass compute node to _update() 2017-01-12 11:30:03 -08:00
test_claims.py rt: use a single ResourceTracker object instance 2017-01-16 14:09:25 -05:00
test_compute.py Get original image_id from volume for volume-backed instance rebuild 2017-12-04 16:37:55 -05:00
test_compute_api.py Merge "Enable cold migration with target host(1/2)" 2017-11-28 21:00:28 +00:00
test_compute_cells.py Get original image_id from volume for volume-backed instance rebuild 2017-12-04 16:37:55 -05:00
test_compute_mgr.py Add instance action record for attach/detach/swap volumes 2017-11-27 16:34:48 -05:00
test_compute_utils.py Get auth from context for glance endpoint 2017-11-21 10:26:42 -06:00
test_compute_xen.py Make xen unit tests work with os-xenapi>=0.3.0 2017-09-05 16:06:31 -04:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Handle uuid in HostAPI.compute_node_get 2017-06-19 09:57:49 -04:00
test_instance_list.py Add base implementation for efficient cross-cell instance listing 2017-09-21 08:01:40 -07:00
test_keypairs.py Transform keypair.import notification 2017-10-30 16:44:29 -04:00
test_provider_tree.py placement: set/check if inventory change in tree 2017-10-17 12:57:03 +00:00
test_resource_tracker.py Merge "rt: Make resource tracker always invoking get_inventory()" 2017-11-22 16:26:12 +00:00
test_rpcapi.py Pre-create migration object 2017-10-05 13:49:15 -07:00
test_shelve.py Send Allocations to spawn 2017-10-18 06:43:57 -05:00
test_stats.py Address nits in Ia2296302 2016-03-08 16:48:08 +00:00
test_virtapi.py Remove mox from nova/tests/unit/compute/test_virtapi.py 2016-11-28 08:52:00 +00:00