nova/nova
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
CA
cells Cleanup build_request_spec 2017-11-10 12:03:39 +11:00
cmd Remove 'nova-manage quota refresh' command 2017-11-24 02:34:47 +08:00
common
compute Get original image_id from volume for volume-backed instance rebuild 2017-12-04 16:37:55 -05:00
conductor Enable cold migration with target host(1/2) 2017-11-24 14:50:39 +09:00
conf Remove deprecated TrustedFilter 2017-11-28 14:54:31 -05:00
console console: introduce basic framework for security proxying 2017-09-28 16:39:22 +01:00
consoleauth Merge "Remove translation of log messages" 2017-08-10 11:39:03 +00:00
db Remove old-style quotas code 2017-11-30 16:13:20 +00:00
hacking Amend uuid4 hacking rule 2017-09-04 17:34:46 +00:00
image Get auth from context for glance endpoint 2017-11-21 10:26:42 -06:00
ipv6
keymgr Remove deprecated keymgr code 2017-09-11 15:48:30 -04:00
locale Imported Translations from Zanata 2017-08-10 11:34:33 +00:00
network Merge "Reduce code complexity - linux_net.py" 2017-12-01 09:00:15 +00:00
notifications Merge "Versioned notifications for service create and delete" 2017-11-27 19:41:04 +00:00
objects Merge "Use oslo_db Session in resource_provider.py" 2017-12-02 02:55:24 +00:00
pci [Trivial] docstrings, typos, minor refactoring 2017-08-28 08:33:58 -05:00
policies Add microversion to allow setting flavor description 2017-11-15 22:10:39 +00:00
privsep Move last_bytes into the path module 2017-11-06 10:30:21 +02:00
scheduler Proper error handling by _ensure_resource_provider 2017-11-30 18:30:49 +00:00
servicegroup iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
tests Get original image_id from volume for volume-backed instance rebuild 2017-12-04 16:37:55 -05:00
virt Merge "VMware: Handle concurrent registrations of the VC extension" 2017-12-01 01:43:27 +00:00
vnc
volume Add attachment_get call to volume/cinder_api 2017-09-22 19:41:27 -04:00
__init__.py
availability_zones.py Avoid lazy-load error when getting instance AZ 2017-05-25 15:46:22 -04:00
baserpc.py
block_device.py Remove unused global variables 2017-11-25 23:24:47 +00:00
cache_utils.py remove log translation tags from nova.cells 2017-04-10 14:48:07 +00:00
config.py
context.py Get auth from context for glance endpoint 2017-11-21 10:26:42 -06:00
crypto.py
debugger.py
exception_wrapper.py rename binary to source in versioned notifications 2017-07-25 17:36:04 +02:00
exception.py Proper error handling by _ensure_resource_provider 2017-11-30 18:30:49 +00:00
filters.py
hooks.py
i18n.py
loadables.py
manager.py
policy.py Add policy granularity to the Flavors API 2017-07-19 15:56:47 -04:00
profiler.py
quota.py Remove old-style quotas code 2017-11-30 16:13:20 +00:00
rpc.py Remove dead code of api.fault notification sending 2017-10-09 17:29:40 +02:00
safe_utils.py Allow wrapping of closures 2017-07-20 10:07:52 +01:00
service_auth.py
service.py Enhance doc for nova services 2017-08-31 08:30:48 +08:00
test.py Move restart_compute_service to a common place 2017-10-16 19:13:50 +02:00
utils.py Get auth from context for glance endpoint 2017-11-21 10:26:42 -06:00
version.py
weights.py
wsgi.py