nova/nova/tests/unit/virt
Lee Yarwood 687250f60e libvirt: Use specific user when probing encrypted rbd disks during extend
I0c3f14100a18107f7e416293f3d4fcc641ce5e55 introduced new logic when
extending LUKSv1 encrypted rbd volumes. As part of this qemu-img is used
to probe the rbd volume to determine the size of the LUKSv1 header.

The URI used to point to the rbd volume did not provide a user and
assumed that n-cpu/privsep would have access to the admin keyring. This
isn't always the case in most environments and would result in a failure
to probe the disk when the admin keyring wasn't available.

This change resolves this by appending the `id:$username` option to the
end of the URI provided to qemu-img using the `auth_username` found in
the connection_info from Cinder.

Closes-Bug: #1913575
Change-Id: Ia6d6dcdd7042f2aef6b3abeb5cd0f7525678a3b7
(cherry picked from commit b62a1abd61)
(cherry picked from commit 5d1adb2604)
2021-02-01 16:00:51 +00:00
..
disk lxc: make use of filter python3 compatible 2019-08-13 22:29:57 +00:00
hyperv Pass allocations to virt drivers when resizing 2020-04-10 12:49:16 +02:00
image
ironic virt: Provide block_device_info during rescue 2020-04-09 08:39:35 +01:00
libvirt libvirt: Use specific user when probing encrypted rbd disks during extend 2021-02-01 16:00:51 +00:00
powervm virt: Pass request context to extend_volume 2020-03-16 09:45:31 +00:00
vmwareapi Set different VirtualDevice.key 2020-09-02 02:10:11 +00:00
xenapi Change default num_retries for glance to 3 2020-08-31 01:18:34 +00:00
zvm set default value to 0 instead of '' 2020-02-11 10:01:37 +00:00
__init__.py
fakelibosinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
test_block_device.py block_device: Copy original volume_type when missing for snapshot based volumes 2019-11-21 18:13:04 +00:00
test_configdrive.py Skip existing VMs when hosts apply force_config_drive 2019-05-22 21:02:16 +00:00
test_driver.py Remove usage of parameter enforce_type 2017-04-17 20:23:19 +08:00
test_events.py
test_fake.py
test_hardware.py hardware: Reject requests for no hyperthreads on hosts with HT 2020-08-26 15:49:51 +01:00
test_imagecache.py Consolidate [image_cache] conf options 2019-11-13 11:09:03 -06:00
test_images.py images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
test_netutils.py Remove unnecessary code 2017-07-28 06:01:21 +00:00
test_osinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
test_virt.py We no longer need rootwrap. 2019-02-27 05:06:31 +00:00
test_virt_drivers.py virt: Provide block_device_info during rescue 2020-04-09 08:39:35 +01:00