nova/nova/tests
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
..
functional Get original image_id from volume for volume-backed instance rebuild 2017-12-04 16:37:55 -05:00
live_migration/hooks Fix live migration grenade ceph setup 2017-10-26 17:53:15 -04:00
unit Get original image_id from volume for volume-backed instance rebuild 2017-12-04 16:37:55 -05:00
__init__.py
fixtures.py Add regression test for rebuilding a volume-backed server 2017-12-04 15:58:36 -05:00
json_ref.py Factor out duplicated notification sample data 2017-11-03 11:36:57 +01:00
uuidsentinel.py Remove redundant str typecasting 2016-09-23 12:53:34 +05:30