nova/nova/tests/unit/policies
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
..
__init__.py Add test coverage of existing os-services policies 2019-11-25 17:27:32 +00:00
base.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_admin_actions.py virt: Remove 'reset_network' API 2020-11-23 15:55:50 +00:00
test_admin_password.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_aggregates.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_assisted_volume_snapshots.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_attach_interfaces.py [Trivial] Replace ref of policy.json to policy.yaml 2020-09-09 16:46:43 +00:00
test_availability_zone.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_baremetal_nodes.py Add new default roles in baremetal nodes policies 2020-08-17 14:36:38 +00:00
test_console_auth_tokens.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_console_output.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_create_backup.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_deferred_delete.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_evacuate.py Remove compute service level check for qos ops 2020-11-09 16:13:51 +01:00
test_extensions.py Add scope and new default roles in extensions policies 2020-08-17 09:40:02 -05:00
test_flavor_access.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_flavor_extra_specs.py Add new default roles in flavor extra specs policies 2020-04-14 00:33:38 +00:00
test_flavor_manage.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_floating_ip_pools.py Correct the check_str and pass actual target in FIP pools policy 2020-07-20 16:53:02 -05:00
test_floating_ips.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_hosts.py Add new default roles in hosts policies 2020-07-25 21:20:00 +00:00
test_hypervisors.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_instance_actions.py [Trivial] Replace ref of policy.json to policy.yaml 2020-09-09 16:46:43 +00:00
test_instance_usage_audit_log.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_keypairs.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_limits.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_lock_server.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_migrate_server.py Remove compute service level check for qos ops 2020-11-09 16:13:51 +01:00
test_migrations.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_multinic.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_networks.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_pause_server.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_quota_class_sets.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_quota_sets.py Add new default roles in quota sets policies 2020-04-13 19:25:14 -05:00
test_remote_consoles.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_rescue.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_security_groups.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_server_diagnostics.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_server_external_events.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_server_groups.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_server_ips.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_server_metadata.py Add new default roles in server metadata policies 2020-04-04 00:58:48 +00:00
test_server_migrations.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_server_password.py Add new default roles in server password policies 2020-04-08 14:46:10 +01:00
test_server_tags.py Add new default roles in server tags policies 2020-04-07 00:27:17 -05:00
test_server_topology.py objects: Introduce 'pcpuset' field for InstanceNUMACell 2020-07-14 00:38:34 +08:00
test_servers.py libvirt: make cross cell resize spawn from snapshot image 2020-12-11 13:02:09 +00:00
test_services.py [Trivial] Replace ref of policy.json to policy.yaml 2020-09-09 16:46:43 +00:00
test_shelve.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_simple_tenant_usage.py Add new default roles in tenant tenant usage policies 2020-04-08 22:21:48 -05:00
test_suspend_server.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00
test_tenant_networks.py Add test coverage of tenant networks policies 2020-07-23 19:18:35 -05:00
test_volumes.py Few todo fixes for API new policies 2020-08-22 09:35:29 -05:00