libvirt uses password-secret on old style drive_add syntax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned | ||
qemu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Using ceph (rbd) devices fail to be attached to a guest
* Regression when updating from Xenial to Yakkety (or matching cloud archives)
* backport of upstream fixes the command string passed to qemu
[Test Case]
* Attach a rbd device to a guest via libvirt.
* The openstack Team does so from Openstack
* To do so manually (hard) you could hot-add an xml snipped like the one in comment #2 (but thta still needs a ceph with matching config up)
* since this is complex please see below for all the tests already performed
* An "easier" testcase is to run the Tempest suite which contains a
testcase triggering the bug according to James Page
[Regression Potential]
* It changes the device string creation, so it in theory break other device attaching actions (if any). Yet the chances for a regression should be low because:
1. the fix is upstream a while now (and needed no follow up)
2. current main user of that password feature is broken without (ceph/rbd)
3. no effect on other disk attachments (others are not using password)
[Other Info]
* n/a
I'm unable to attach ceph rbd devices to qemu instances (via OpenStack - but I don't think the issue is in OpenStack per-say because the same codebase against the Xenial libvirt/qemu stack is OK).
libvirtError: internal error: unable to execute QEMU command 'device_add': Property 'virtio-
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: qemu-system-x86 1:2.6.1+
ProcVersionSign
Uname: Linux 4.8.0-41-generic x86_64
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
Date: Mon Mar 13 12:37:22 2017
Ec2AMI: ami-0000058e
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.medium
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: OpenStack Foundation OpenStack Nova
ProcEnviron:
TERM=screen-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: Ubuntu-
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: OpenStack Nova
dmi.product.
dmi.sys.vendor: OpenStack Foundation
description: | updated |
Changed in libvirt (Ubuntu Yakkety): | |
status: | New → Fix Committed |
<disk type="network" device="disk"> ceph/volume- 8ab7473e- c34c-421a- b6d9-b18a9fa878 8a"> "nova-compute" > 8cbe-11e2- 9c52-3bc8c78194 72"/> 8ab7473e- c34c-421a- b6d9-b18a9fa878 8a</serial>
<driver name="qemu" type="raw" cache="none"/>
<source protocol="rbd" name="cinder-
<host name="10.5.26.60" port="6789"/>
<host name="10.5.26.61" port="6789"/>
<host name="10.5.26.62" port="6789"/>
</source>
<auth username=
<secret type="ceph" uuid="514c9fca-
</auth>
<target bus="virtio" dev="vdb"/>
<serial>
</disk>