nova/nova/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 [Trivial]Remove unused helper get_allocated_disk_size 2019-08-28 13:36:52 +08:00
hyperv Pass allocations to virt drivers when resizing 2020-04-10 12:49:16 +02:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
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 compute: Report COMPUTE_RESCUE_BFV and check during rescue 2020-04-09 08:39:35 +01:00
vmwareapi Merge "Set different VirtualDevice.key" into stable/ussuri 2020-09-07 20:35:45 +00:00
xenapi Pass allocations to virt drivers when resizing 2020-04-10 12:49:16 +02:00
zvm Enable start/stop of instances with accelerators. 2020-03-24 22:44:26 -07:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
arch.py Added ability to configure default architecture for ImagePropertiesFilter 2018-05-14 16:55:13 -04:00
block_device.py trivial: Resolve (most) flake8 3.x issues 2019-12-11 16:57:22 +00:00
configdrive.py Skip existing VMs when hosts apply force_config_drive 2019-05-22 21:02:16 +00:00
driver.py Merge "Pass allocations to virt drivers when resizing" 2020-04-20 19:16:59 +00:00
event.py Port binding based on events during live migration 2018-07-19 09:09:55 -04:00
fake.py Merge "Pass allocations to virt drivers when resizing" 2020-04-20 19:16:59 +00:00
hardware.py hardware: Reject requests for no hyperthreads on hosts with HT 2020-08-26 15:49:51 +01:00
imagecache.py Reserve DISK_GB resource for the image cache 2020-05-20 07:25:32 +00:00
images.py images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
interfaces.template
netutils.py nova-net: Remove final references to nova-network 2020-01-08 13:54:12 +00:00
osinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
storage_users.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
virtapi.py Add a way to exit early from a wait_for_instance_event() 2019-12-02 07:00:26 -08:00