nova/nova/virt
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
..
disk Merge "Don't launch guestfs in a thread pool if guestfs.debug is enabled" 2018-01-31 13:30:44 +00:00
hyperv [libvirt] Allow multiple volume attachments 2018-01-18 14:02:35 +01:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic Merge "Send traits to ironic on server boot" 2018-01-28 09:24:28 +00:00
libvirt libvirt: fix native luks encryption failure to find volume_id 2018-02-02 15:00:30 -05:00
powervm PowerVM Driver: SEA 2018-01-22 11:18:55 -06:00
vmwareapi [libvirt] Allow multiple volume attachments 2018-01-18 14:02:35 +01:00
xenapi Move remaining uses of parted to privsep. 2018-01-24 22:26:36 +00:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
block_device.py libvirt: fix native luks encryption failure to find volume_id 2018-02-02 15:00:30 -05:00
configdrive.py Cleanup mount / umount and associated rmdir calls 2017-10-18 17:52:58 +11:00
driver.py Add get_traits() method to ComputeDriver 2018-01-30 20:45:22 -05:00
event.py
fake.py Merge "Transform instance-evacuate notification" 2018-01-26 12:48:07 +00:00
firewall.py Merge "Remove translation of log messages" 2017-06-20 21:16:49 +00:00
hardware.py Add debug output for selected page size 2018-01-05 14:25:36 +00:00
imagecache.py Rename ImageCacheManager._list_base_images to _scan_base_images 2016-05-26 14:45:42 +01:00
images.py qemu-img do not use cache=none if no O_DIRECT support 2017-11-29 22:33:39 +00:00
interfaces.template
netutils.py provide interface-scoped nameserver information 2017-07-19 21:08:59 -04:00
osinfo.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
storage_users.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
virtapi.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00