Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
virsh blkiotune works well, and can get current blkio parameters for a guest,
but blkioParameters python binding API doesn't work and return None.
In addition, blkioParameters hasn't judged return value from libvirt.py.
# virsh blkiotune foo
weight : 200
device_weight :
Version-Release number of selected component (if applicable):
libvirt-python-0.9.8-1.el6.x86_64
How reproducible:
always
Steps to Reproduce:
# python
Python 2.6.6 (r266:84292, Sep 12 2011, 14:03:14)
[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libvirt
>>> con = libvirt.open(None)
>>> dom = con.lookupByName('foo')
>>> print dom.blkioParameters(0)
None
Expected results:
blkioParameters works well like virsh blkiotune.
Additional info:
Will try to commit a patch for the bug.
The patch need to be updated according to latest libvirt change, for example, reusing utility library function in python binding codes, in addition, also need to wait for codes re-factoring about python binding part.
The following patch has fixed the issue instead, In POST:
commit 56cec18d761a1f99862c43811de60380c65881e6
Author: Guannan Ren <gren>
Date: Fri Feb 10 18:17:26 2012 +0800
python: make other APIs share common {get, set}PyVirTypedParameter
*libvirt_virDomainBlockStatsFlags
*libvirt_virDomainGetSchedulerParameters
*libvirt_virDomainGetSchedulerParametersFlags
*libvirt_virDomainSetSchedulerParameters
*libvirt_virDomainSetSchedulerParametersFlags
*libvirt_virDomainSetBlkioParameters
*libvirt_virDomainGetBlkioParameters
*libvirt_virDomainSetMemoryParameters
*libvirt_virDomainGetMemoryParameters
*libvirt_virDomainSetBlockIoTune
*libvirt_virDomainGetBlockIoTune
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-2013-0276.html
Description of problem: virsh blkiotune works well, and can get current blkio parameters for a guest, but blkioParameters python binding API doesn't work and return None. In addition, blkioParameters hasn't judged return value from libvirt.py. # virsh blkiotune foo weight : 200 device_weight : Version-Release number of selected component (if applicable): libvirt-python-0.9.8-1.el6.x86_64 How reproducible: always Steps to Reproduce: # python Python 2.6.6 (r266:84292, Sep 12 2011, 14:03:14) [GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> con = libvirt.open(None) >>> dom = con.lookupByName('foo') >>> print dom.blkioParameters(0) None Expected results: blkioParameters works well like virsh blkiotune. Additional info: Will try to commit a patch for the bug.