Bug 872582

Summary: error: internal error block_io_throttle inserted entry was not in expected format
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: berrange, clalancette, crobinso, eblake, itamar, jforbes, jyang, laine, libvirt-maint, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-06 20:13:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kamil Páral 2012-11-02 13:30:45 UTC
Description of problem:
I was trying to follow:
https://fedoraproject.org/wiki/QA:Testcase_Virtualization_IO_Throttling

But:
# virsh blkdeviotune Machine1 vda
error: Unable to get block I/O throttle parameters
error: internal error block_io_throttle inserted entry was not in expected format


Version-Release number of selected component (if applicable):
libvirt-0.10.2.1-2.fc18.x86_64
libvirt-client-0.10.2.1-2.fc18.x86_64
libvirt-daemon-0.10.2.1-2.fc18.x86_64
libvirt-daemon-config-network-0.10.2.1-2.fc18.x86_64
libvirt-daemon-config-nwfilter-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-interface-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-lxc-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-network-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-nodedev-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-nwfilter-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-qemu-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-secret-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-storage-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-uml-0.10.2.1-2.fc18.x86_64
libvirt-daemon-driver-xen-0.10.2.1-2.fc18.x86_64
libvirt-daemon-kvm-0.10.2.1-2.fc18.x86_64
libvirt-gconfig-0.1.3-1.fc18.x86_64
libvirt-glib-0.1.3-1.fc18.x86_64
libvirt-gobject-0.1.3-1.fc18.x86_64
libvirt-python-0.10.2.1-2.fc18.x86_64
python-virtinst-0.600.3-2.fc18.noarch
virt-manager-0.9.4-3.fc18.noarch
virt-manager-common-0.9.4-3.fc18.noarch
virt-viewer-0.5.4-2.fc18.x86_64

Comment 1 Eric Blake 2012-11-02 14:03:04 UTC
Fixed by these commits, and will be in 0.10.2.2:

commit 23d47b33a2f8b524c32d556d6d55a7ccb0c5903a
Author: Stefan Hajnoczi <stefanha>
Date:   Thu Nov 1 18:20:56 2012 +0100

    qemu: Fix name comparison in qemuMonitorJSONBlockIoThrottleInfo()
    
    The string comparison logic was inverted and matched the first drive
    that does *not* have the name we search for.
    
    Signed-off-by: Stefan Hajnoczi <stefanha>

commit 04ee70bfda21bfdb48b55f074aed25fc75bb9226
Author: Stefan Hajnoczi <stefanha>
Date:   Thu Nov 1 18:20:55 2012 +0100

    qemu: Keep QEMU host drive prefix in BlkIoTune
    
    The QEMU -drive id= begins with libvirt's QEMU host drive prefix
    ("drive-"), which is stripped off in several places two convert between
    host ("-drive") and guest ("-device") device names.
    
    In the case of BlkIoTune it is unnecessary to strip the QEMU host drive
    prefix because we operate on "info block"/"query-block" output that uses
    host drive names.
    
    Stripping the prefix incorrectly caused string comparisons to fail since
    we were comparing the guest device name against the host device name.
    
    Signed-off-by: Stefan Hajnoczi <stefanha>

Comment 2 Fedora Update System 2012-12-10 00:45:15 UTC
libvirt-0.10.2.2-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/libvirt-0.10.2.2-1.fc18