nova/nova
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
..
accelerator Delete ARQs for an instance when the instance is deleted. 2020-03-24 22:44:18 -07:00
api Use cell targeted context to query BDMs for metadata 2020-12-07 15:48:09 +00:00
cmd Add nova-status upgrade check and reno for policy new defaults 2020-05-04 18:33:37 +00:00
compute Merge "compute: Skip cinder_encryption_key_id check when booting from volume" into stable/ussuri 2020-11-23 12:40:37 +00:00
conductor Move confirm resize under semaphore 2020-09-11 17:23:07 +01:00
conf Change default num_retries for glance to 3 2020-08-31 01:18:34 +00:00
console Merge "Allow TLS ciphers/protocols to be configurable for console proxies" 2020-02-24 17:27:02 +00:00
db Merge "remove DISTINCT ON SQL instruction that does nothing on MySQL" 2020-03-25 23:18:58 +00:00
hacking Switch to hacking 2.x 2020-01-17 11:30:40 +00:00
image Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
keymgr
locale Imported Translations from Zanata 2020-04-28 08:35:34 +00:00
network Merge "nova-net: Remove unused parameters" 2020-03-26 21:46:16 +00:00
notifications Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
objects compute: Validate a BDMs disk_bus when provided 2020-08-03 21:31:25 +01:00
pci Update pci stat pools based on PCI device changes 2020-12-01 10:42:09 +05:30
policies Merge "Add new default roles in quota class policies" 2020-04-21 08:39:41 +00:00
privsep images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
scheduler Enable and use COMPUTE_ACCELERATORS trait. 2020-03-27 22:42:37 -07:00
servicegroup Handle ServiceNotFound in DbDriver._report_state 2019-12-04 09:50:17 -05:00
tests libvirt: Use specific user when probing encrypted rbd disks during extend 2021-02-01 16:00:51 +00:00
virt libvirt: Use specific user when probing encrypted rbd disks during extend 2021-02-01 16:00:51 +00:00
volume Merge "Add retry to cinder API calls related to volume detach" 2020-04-20 17:36:33 +00:00
__init__.py
availability_zones.py trivial: Fetch 'Service' objects once when building AZs 2020-02-05 21:26:23 +00:00
baserpc.py
block_device.py
cache_utils.py trivial: Remove unused 'cache_utils' APIs 2020-02-05 17:20:28 +00:00
config.py remove support of oslo.messaging 9.8.0 warning message 2020-05-22 12:51:46 +00:00
context.py Reset the cell cache for database access in Service 2020-04-08 17:48:18 +00:00
crypto.py
debugger.py
exception.py Removed the host FQDN from the exception message 2020-09-03 00:23:19 +00:00
exception_wrapper.py
filters.py
hooks.py
i18n.py
loadables.py trivial: Remove dead code 2019-12-12 10:55:02 +00:00
manager.py
middleware.py
monkey_patch.py Correctly disable greendns 2020-09-13 18:29:41 -04:00
policy.py Use oslo policy flag to disable default change warning instead of all 2020-04-15 02:23:32 +00:00
profiler.py
quota.py Make quotas respect instance_list_per_project_cells 2020-05-19 02:20:28 +00:00
rpc.py
safe_utils.py
service.py Reset the cell cache for database access in Service 2020-04-08 17:48:18 +00:00
service_auth.py
test.py func tests: move _run_periodics() into base class 2020-03-24 10:10:53 -04:00
utils.py compute: Extract _get_bdm_image_metadata into nova.utils 2020-04-09 08:39:36 +01:00
version.py
weights.py
wsgi.py