nova/nova
Matt Riedemann cafe3d066e libvirt: fix native luks encryption failure to find volume_id
Not all volume types put a 'volume_id' entry in the
connection_info['data'] dict. This change uses a new
utility method to look up the volume_id in the connection_info
data dict and if not found there, uses the 'serial' value
from the connection_info, which we know at least gets set
when the DriverVolumeBlockDevice code attaches the volume.

This also has to update pre_live_migration since the connection_info
dict doesn't have a 'volume_id' key in it. It's unclear what
this code was expecting, or if it ever really worked, but since
an attached volume represented by a BlockDeviceMapping here has
a volume_id attribute, we can just use that. As that code path
was never tested, this updates related unit tests and refactors
the tests to actually use the type of DriverVolumeBlockDevice
objects that the ComputeManager would be sending down to the
driver pre_live_migration method. The hard-to-read squashed
dicts in the tests are also re-formatted so a human can actually
read them.

Change-Id: Ie02d298cd92d5b5ebcbbcd2b0e8be01f197bfafb
Closes-Bug: #1746609
2018-02-02 15:00:30 -05:00
..
CA
api Merge "Remove the inherits parameter for the Resource object" 2018-01-31 14:32:51 +00:00
cells Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
cmd Expand on when you might want to set --max-count for map_instances 2018-01-23 15:34:03 -05:00
common
compute Merge "Add get_traits() method to ComputeDriver" 2018-01-31 14:15:36 +00:00
conductor Collapse duplicate error handling in rebuild_instance 2018-01-29 14:06:05 -05:00
conf Merge "Deprecate allowed_direct_url_schemes and nova.image.download.modules" 2018-01-27 00:15:49 +00:00
console Fix accumulated nits 2018-01-16 14:54:04 +00:00
consoleauth Merge "Remove translation of log messages" 2017-08-10 11:39:03 +00:00
db Generalize DB conf group copying 2018-01-20 12:43:11 -05:00
hacking trivial: Rename 'policy_check' -> 'policy' 2017-10-25 17:56:40 +01:00
image Merge "Handle images with no data" 2018-01-27 15:29:13 +00:00
ipv6
keymgr Remove deprecated keymgr code 2017-09-11 15:48:30 -04:00
locale Imported Translations from Zanata 2018-01-04 07:20:17 +00:00
network Use neutron port_list when filtering instance by ip 2018-01-23 10:10:53 +08:00
notifications Merge "Transform instance.resize_prep notification" 2018-01-27 01:36:42 +00:00
objects Merge "libvirt: QEMU native LUKS decryption for encrypted volumes" 2018-01-31 08:15:41 +00:00
pci Address nits in I46d483f9de6776db1b025f925890624e5e682ada 2018-01-02 15:57:50 +00:00
policies Merge "Deprecate API extensions policies" 2018-01-03 09:08:07 +00:00
privsep Move remaining uses of parted to privsep. 2018-01-24 22:26:36 +00:00
scheduler Merge "SchedulerReportClient.set_aggregates_for_provider" 2018-01-31 12:37:52 +00:00
servicegroup iso8601.is8601.Utc No Longer Exists 2017-08-29 19:26:55 -04:00
tests libvirt: fix native luks encryption failure to find volume_id 2018-02-02 15:00:30 -05:00
virt libvirt: fix native luks encryption failure to find volume_id 2018-02-02 15:00:30 -05:00
vnc
volume Add support for getting volume details with a specified microversion 2018-01-02 15:34:05 +01: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 Add uuid column to BlockDeviceMapping 2017-12-17 14:28:35 +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.py Merge "placement: support traits in allocation candidates API" 2018-01-27 03:34:12 +00:00
exception_wrapper.py rename binary to source in versioned notifications 2017-07-25 17:36:04 +02:00
filters.py
hooks.py
i18n.py correct referenced url in comments 2018-01-18 09:16:37 +08:00
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 Follow up on removing old-style quotas code 2017-12-08 22:11:24 +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.py Enhance doc for nova services 2017-08-31 08:30:48 +08:00
service_auth.py Fix NoneType error when [service_user] is misconfigured 2017-11-28 12:22:30 -06:00
test.py test: Store the OutputStreamCapture fixture 2017-10-25 17:07:34 +01:00
utils.py Merge "Handle TZ change in iso8601 >=0.1.12" 2018-01-31 00:36:50 +00:00
version.py
weights.py
wsgi.py