nova/nova/compute
Lee Yarwood f9b67893ac compute: Skip cinder_encryption_key_id check when booting from volume
Idf84ccff254d26fa13473fe9741ddac21cbcf321 added this check in order for
Nova to avoid booting encrypted images created by Cinder as there is
currently no support for using such images (rotating keys etc).

The check however missed the slightly convoluted use case where this
image property is found against a volume after the volume in question is
created using an encrypted image created by cinder from an encrypted
volume. In other words:

- Cinder creates an encrypted volume A
- Glance creates an encrypted image A from volume A
- Cinder creates an encrypted volume B from image A
- Nova attempts to boot an instance using volume B

Note that Nova may request the creation of volume B or a user could also
do this directly through Cinder.

As such this change simply ensures that the instance isn't booting from
a volume when preforming the check as it is only valid when booting from
an image.

Closes-Bug: #1895696
Change-Id: Ic92cab7362fa25050e5bbef5c3e360108365b5c7
2020-09-17 12:16:54 +01: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 compute: Skip cinder_encryption_key_id check when booting from volume 2020-09-17 12:16:54 +01:00
build_results.py Compute Add build_instance hook in compute manager 2014-12-04 10:12:00 -05:00
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 Merge "trivial: Final cleanup" 2020-09-13 23:38:50 +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 Add resources dict into _Provider 2019-09-13 08:50:35 +00:00
resource_tracker.py Merge "Follow up for I67504a37b0fe2ae5da3cba2f3122d9d0e18b9481" 2020-09-11 21:56:26 +00:00
rpcapi.py Update compute rpc version alias for victoria 2020-09-12 01:29:34 +09: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 'is_xenapi' helper 2020-09-11 14:09:06 +01:00
vm_states.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00