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:
'virDomain{G, S}etNumaParameters' APIs generate wrong guest xml
Version-Release number of selected component (if applicable):
libvirt-0.9.10-21.el6.x86_64
rhel6.3 rc build
How reproducible:
always
Steps to Reproduce:
1.# python
Python 2.6.6 (r266:84292, May 1 2012, 13:52:17)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libvirt
>>> conn = libvirt.open(None)
>>> dom = conn.lookupByName("rhel6.3rc")
>>> dom.numaParameters(0)
{'numa_nodeset': '1', 'numa_mode': 1}
>>> param = {'numa_nodeset': '1', 'numa_mode': 1}
>>> dom.setNumaParameters(param, 2)
0
# destroy and start the domain in another console
Actual results:
the guest can't restart
# virsh start rhel6.3rc
error: Failed to start domain rhel6.3rc
error: (domain_definition):8: error parsing attribute name
<memory mode='preferred' </numatune>
-------------------------------^
#virsh dumpxml rhel6.3rc
.............
<vcpu placement='static'>1</vcpu>
<numatune>
<memory mode='preferred' </numatune>
.............
Expected results:
the guest can start without error
Additional info:
use command :
#virsh numatune rhel6.3rcqcow2 --nodeset 1 --config
will get the same error.
refer bug :https://bugzilla.redhat.com/show_bug.cgi?id=771591 , this bug verify in libvirt-0.9.10-1,
i can't reproduce this on
libvirt-0.9.10-16.el6.x86_64
so it's a regression bug.
This problem hasn't any relationship with libvirt client such as virsh or python binding, it's a underlying implementatin issue, which probaly is introduced by upstream commit 8d26a7f or 97010eb1, however, I haven't check it further.
Osier, could you help confirm this? thanks.
commit 6fd1708fad221956c1ca7de023a7babfb100a4dc
Author: Osier Yang <jyang>
Date: Tue Aug 28 20:13:31 2012 +0800
qemu: Set placement when setting numa parameters
To keep the internal data structure consistent.
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: 'virDomain{G, S}etNumaParameters' APIs generate wrong guest xml Version-Release number of selected component (if applicable): libvirt-0.9.10-21.el6.x86_64 rhel6.3 rc build How reproducible: always Steps to Reproduce: 1.# python Python 2.6.6 (r266:84292, May 1 2012, 13:52:17) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.open(None) >>> dom = conn.lookupByName("rhel6.3rc") >>> dom.numaParameters(0) {'numa_nodeset': '1', 'numa_mode': 1} >>> param = {'numa_nodeset': '1', 'numa_mode': 1} >>> dom.setNumaParameters(param, 2) 0 # destroy and start the domain in another console Actual results: the guest can't restart # virsh start rhel6.3rc error: Failed to start domain rhel6.3rc error: (domain_definition):8: error parsing attribute name <memory mode='preferred' </numatune> -------------------------------^ #virsh dumpxml rhel6.3rc ............. <vcpu placement='static'>1</vcpu> <numatune> <memory mode='preferred' </numatune> ............. Expected results: the guest can start without error Additional info: use command : #virsh numatune rhel6.3rcqcow2 --nodeset 1 --config will get the same error. refer bug :https://bugzilla.redhat.com/show_bug.cgi?id=771591 , this bug verify in libvirt-0.9.10-1, i can't reproduce this on libvirt-0.9.10-16.el6.x86_64 so it's a regression bug.