nova/nova/tests/functional
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
..
api Merge "[placement] set accept to application/json if accept not set" 2017-12-02 03:15:45 +00:00
api_sample_tests Proper error handling by _ensure_resource_provider 2017-11-30 18:30:49 +00:00
compute Fix minor input items from previous patches 2017-10-09 07:29:22 -07:00
db placement: add nested resource providers 2017-11-28 15:29:28 -05:00
libvirt Merge "Bump minimum required libvirt/qemu versions for Pike" 2017-02-24 02:50:33 +00:00
notification_sample_tests Merge "Remove unnecessary self.flags and ConfPatcher" 2017-11-29 22:57:26 +00:00
regressions Get original image_id from volume for volume-backed instance rebuild 2017-12-04 16:37:55 -05:00
wsgi Don't overwrite binding-profile 2017-11-22 04:30:51 +00:00
__init__.py
api_paste_fixture.py Remove legacy v2 API functional tests 2016-05-04 18:17:23 +08:00
api_samples_test_base.py Provide a hint when _verify_response fails 2017-06-19 15:57:47 -04:00
integrated_helpers.py Enable cold migration with target host(2/2) 2017-11-29 20:48:16 -05:00
test_aggregates.py re-Allow adding computes with no ComputeNodes to aggregates 2017-05-25 10:56:29 -07:00
test_compute_mgr.py Stop using mox stubs in cast_as_call.py 2017-07-25 00:40:41 +00:00
test_images.py Add create image functional negative tests 2016-12-26 14:15:14 +09:00
test_instance_actions.py make microversion a client level construct for tests 2016-02-24 11:02:05 -05:00
test_legacy_v2_compatible_wrapper.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test_list_servers_ip_filter.py Trivial: Nix duplicate PlacementFixture() in test 2017-12-01 15:39:28 -06:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Remove unused logging import 2017-02-17 15:17:51 +07:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_nova_manage.py Add nova-manage db command for ironic flavor migrations 2017-09-15 00:30:23 -04:00
test_server_group.py Scheduler calling the Placement API 2017-01-27 16:36:34 -08:00
test_servers.py Merge "Enable cold migration with target host(2/2)" 2017-11-30 07:38:03 +00:00