Red Hat Bugzilla – Bug 804028
Cannot roundtrip blkio parameters due to broken deviceWeight handling
Last modified: 2012-06-20 02:50:31 EDT
+++ This bug was initially created as a clone of Bug #800734 +++
Description of problem:
Version-Release number of selected component (if applicable):
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
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);
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
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.