Bug 804028 - Cannot roundtrip blkio parameters due to broken deviceWeight handling
Summary: Cannot roundtrip blkio parameters due to broken deviceWeight handling
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Daniel Veillard
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 800734
TreeView+ depends on / blocked
 
Reported: 2012-03-16 11:10 UTC by Daniel Berrangé
Modified: 2012-06-20 06:50 UTC (History)
9 users (show)

Fixed In Version: libvirt-0.9.10-6.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 800734
Environment:
Last Closed: 2012-06-20 06:50:31 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0748 0 normal SHIPPED_LIVE Low: libvirt security, bug fix, and enhancement update 2012-06-19 19:31:38 UTC

Description Daniel Berrangé 2012-03-16 11:10:09 UTC
+++ This bug was initially created as a clone of Bug #800734 +++

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
everytimes

Steps to Reproduce:
Make sure you have a running guest named "vr-rhel6-x86_64-kvm"
1. prepare set_blkio.pl as follows:
# cat set_blkio.pl 
#!/usr/bin/perl
use warnings;
use strict;
use Sys::Virt;

my $uri = "qemu:///system";
my $domname = "vr-rhel6-x86_64-kvm";
my $flags = 0;

my $con = Sys::Virt->new(address => $uri, readonly => 0);
my $dom = $con->get_domain_by_name($domname);
my $weight = 600;

my %blkio = (Sys::Virt::Domain::BLKIO_WEIGHT => $weight);
$dom->set_blkio_parameters(\%blkio);

2. Run set_blkio.pl:
# perl set_blkio.pl 
libvirt error code: 8, message: invalid argument: unable to parse
  


This error message is because virDomainSetBlkioParameters is rejecting the deviceWeight "" value returned by virDomainGetBlkioParameters

Comment 1 Daniel Berrangé 2012-03-16 11:11:06 UTC
Fix upstream:

https://www.redhat.com/archives/libvir-list/2012-March/msg00727.html

Comment 7 errata-xmlrpc 2012-06-20 06:50:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0748.html


Note You need to log in before you can comment on or make changes to this bug.