Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
libvirt.6841
d53d4650-qemu-rbd-auth.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File d53d4650-qemu-rbd-auth.patch of Package libvirt.6841
commit d53d465083edeb64cc7b78249c030734c0d91c6b Author: John Ferlan <jferlan@redhat.com> Date: Tue Aug 16 16:50:15 2016 -0400 qemu: Fix the command line generation for rbd auth using aes secrets https://bugzilla.redhat.com/show_bug.cgi?id=1182074 Since libvirt still uses a legacy qemu arg format to add a disk, the manner in which the 'password-secret' argument is passed to qemu needs to change to prepend a 'file.' If in the future, usage of the more modern disk format, then the prepended 'file.' can be removed. Fix based on Jim Fehlig <jfehlig@suse.com> posting and subsequent upstream list followups, see: http://www.redhat.com/archives/libvir-list/2016-August/msg00777.html for details. Introduced by commit id 'a1344f70'. Index: libvirt-2.0.0/src/qemu/qemu_command.c =================================================================== --- libvirt-2.0.0.orig/src/qemu/qemu_command.c +++ libvirt-2.0.0/src/qemu/qemu_command.c @@ -1233,7 +1233,12 @@ qemuBuildDriveStr(virDomainDiskDefPtr di virBufferAddLit(&opt, ","); if (secinfo && secinfo->type == VIR_DOMAIN_SECRET_INFO_TYPE_AES) { - virBufferAsprintf(&opt, "password-secret=%s,", + /* NB: If libvirt starts using the more modern option based + * syntax to build the command line (e.g., "-drive driver=rbd, + * filename=%s,...") instead of the legacy model (e.g."-drive + * file=%s,..."), then the "file." prefix can be removed + */ + virBufferAsprintf(&opt, "file.password-secret=%s,", secinfo->s.aes.alias); } Index: libvirt-2.0.0/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-auth-AES.args =================================================================== --- libvirt-2.0.0.orig/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-auth-AES.args +++ libvirt-2.0.0/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-rbd-auth-AES.args @@ -26,6 +26,6 @@ data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \ -drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\ mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,\ -password-secret=virtio-disk0-secret0,format=raw,if=none,id=drive-virtio-disk0' \ +file.password-secret=virtio-disk0-secret0,format=raw,if=none,id=drive-virtio-disk0' \ -device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,\ id=virtio-disk0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor