nova/nova/compute
Alexandre Arents f02899418d libvirt: make cross cell resize spawn from snapshot image
During a cross cell resize, we do an instance snapshot and
then we spawn() instance back on target cell.

Unfortunately, we mistakenly spawn back the instance to its original
image id, instead of using freshly created snapshot_id.

The change proposes to update instance.image_ref with snapshot_id
in order that spawn()->_create_image() uses it and set back
instance.image_ref after.

Note that for qcow2 backend case, we also need to rebase disk image
with its original backing file to avoid mismatch between
instance.image_ref and backing file, as we currently do in unshelve
context.

Change-Id: I0b81282eba8238d8b64a67e38cf9d6392de1f85c
Closes-Bug: #1906428
2020-12-11 13:02:09 +00:00
..
monitors Remove six.add_metaclass 2020-08-15 07:45:39 +00:00
__init__.py Remove nova.compute.*API() shims 2019-06-12 16:09:46 +01:00
api.py libvirt: make cross cell resize spawn from snapshot image 2020-12-11 13:02:09 +00:00
build_results.py
claims.py objects: Add MigrationTypeField 2020-05-08 14:45:54 +01:00
flavors.py trivial: Remove dead code 2019-12-12 10:55:02 +00:00
instance_actions.py Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
instance_list.py Plumbing for ignoring list_records_by_skipping_down_cells 2019-02-08 16:28:28 -05:00
manager.py libvirt: make cross cell resize spawn from snapshot image 2020-12-11 13:02:09 +00:00
migration_list.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
multi_cell_list.py Remove six.add_metaclass 2020-08-15 07:45:39 +00:00
power_state.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00
provider_config.py Provider Config File: Coding style and test cases improvement 2020-09-01 01:05:34 +00:00
provider_tree.py Remove six.iteritems/itervalues/iterkeys 2020-11-07 03:25:26 +00:00
resource_tracker.py Merge "Set instance host and drop migration under lock" 2020-11-18 10:32:56 +00:00
rpcapi.py virt: Remove 'reset_network' API 2020-11-23 15:55:50 +00:00
stats.py Change consecutive build failure limit to a weigher 2018-06-06 15:18:50 -07:00
task_states.py Fix resource tracker updates during instance evacuation 2018-09-12 13:05:29 +03:00
utils.py virt: Remove 'get_all_bw_counters' API 2020-11-24 15:29:21 +00:00
vm_states.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00