nova/nova/tests/unit/virt/libvirt
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
..
storage Merge "Leave brackets on Ceph IP addresses for libguestfs" 2019-10-14 20:56:14 +00:00
volume workarounds: Add option to locally attach RBD volumes on compute hosts 2020-04-06 21:59:08 +01:00
__init__.py
fake_imagebackend.py libvirt: Add support for stable device rescue 2020-04-09 08:39:35 +01:00
fake_libvirt_data.py Also enable iommu for virtio controllers and video in libvirt 2019-12-10 11:01:08 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Update pci stat pools based on PCI device changes 2020-12-01 10:42:09 +05:30
test_blockinfo.py fup: Combine SUPPORTED_DEVICE_BUS and SUPPORTED_STORAGE_BUSES 2020-04-09 09:05:13 +01:00
test_config.py Handle disabled CPU features to fix live migration failures 2020-11-12 14:39:37 +00:00
test_designer.py Create a controller for qga when SEV is used 2019-12-10 11:01:08 +00:00
test_driver.py libvirt: Use specific user when probing encrypted rbd disks during extend 2021-02-01 16:00:51 +00:00
test_fakelibvirt.py libvirt: Get the CPU model, not 'arch' from get_capabilities() 2019-09-20 16:04:46 +00:00
test_guest.py Merge "libvirt: Do not reference VIR_ERR_DEVICE_MISSING when libvirt is < v4.1.0" into stable/ussuri 2020-08-26 11:49:58 +00:00
test_host.py Correct reported system memory 2020-07-13 11:07:59 +00:00
test_imagebackend.py Make RBD imagebackend flatten method idempotent 2020-01-28 14:30:40 +01:00
test_imagecache.py Guard against missing image cache directory 2020-06-25 12:19:00 +00:00
test_migration.py Handle multiple 'vcpusched' elements during live migrate 2020-07-29 18:00:43 +01:00
test_utils.py images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
test_vif.py Allow tap interface with multiqueue 2020-10-01 14:29:01 +02:00