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:
Generate the redundant record in guest's xml while configure the same listen address in guest's xml
Version-Release number of selected component (if applicable):
kernel-2.6.32-466.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.426.el6.x86_64
libvirt-0.10.2-40.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Prepare a shutoff guest
# virsh list --all
Id Name State
----------------------------------------------------
- rhel6 shut off
2.Edit guest's xml, add multi same listen address in guest's xml, It will generate many redundant records
in guest's xml
#virsh edit rhel6
--
<graphics type='vnc' port='-1' autoport='yes' listen='192.168.122.1' sharePolicy='ignore'>
<listen type='address' address='192.168.122.1'/>
<listen type='address' address='192.168.122.1'/>
<listen type='address' address='127.0.0.1'/>
<listen type='address' address='127.0.0.1'/>
<listen type='address' address='1.1.1.1'/>
<listen type='address' address='1.1.1.1'/>
</graphics>
3.Save the guest's xml, then check the guest's xml
#virsh dumpxml rhel6
--
<graphics type='vnc' port='-1' autoport='yes' listen='192.168.122.1' sharePolicy='ignore'>
<listen type='address' address='192.168.122.1'/>
<listen type='address' address='192.168.122.1'/>
<listen type='address' address='127.0.0.1'/>
<listen type='address' address='127.0.0.1'/>
<listen type='address' address='1.1.1.1'/>
<listen type='address' address='1.1.1.1'/>
</graphics>
4.Start the guest
#virsh start rhel6
5.Connect the guest, only ip 192.168.122.1 works, other ip didn't work
Actual results:
Generate the redundant record in guest's xml while configure the same listen address in guest's xml
Expected results:
Should generate only 1 record while configure the same listen address in guest's xml
Fixed upstream:
commit a282f5f79f02470d9178d7b981f6e82529cfd0c0
Author: Erik Skultety <eskultet>
Date: Thu Aug 14 11:48:52 2014 +0200
qemu: Redundant listen address entry in quest xml
When editing guest's XML (on QEMU), it was possible to add multiple
listen elements into graphics parent element. However QEMU does not
support listening on multiple addresses. Configuration is tested for
multiple 'listen address' and if positive, an error is raised.
v1.2.7-141-ga282f5f
Description of problem: Generate the redundant record in guest's xml while configure the same listen address in guest's xml Version-Release number of selected component (if applicable): kernel-2.6.32-466.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.426.el6.x86_64 libvirt-0.10.2-40.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1.Prepare a shutoff guest # virsh list --all Id Name State ---------------------------------------------------- - rhel6 shut off 2.Edit guest's xml, add multi same listen address in guest's xml, It will generate many redundant records in guest's xml #virsh edit rhel6 -- <graphics type='vnc' port='-1' autoport='yes' listen='192.168.122.1' sharePolicy='ignore'> <listen type='address' address='192.168.122.1'/> <listen type='address' address='192.168.122.1'/> <listen type='address' address='127.0.0.1'/> <listen type='address' address='127.0.0.1'/> <listen type='address' address='1.1.1.1'/> <listen type='address' address='1.1.1.1'/> </graphics> 3.Save the guest's xml, then check the guest's xml #virsh dumpxml rhel6 -- <graphics type='vnc' port='-1' autoport='yes' listen='192.168.122.1' sharePolicy='ignore'> <listen type='address' address='192.168.122.1'/> <listen type='address' address='192.168.122.1'/> <listen type='address' address='127.0.0.1'/> <listen type='address' address='127.0.0.1'/> <listen type='address' address='1.1.1.1'/> <listen type='address' address='1.1.1.1'/> </graphics> 4.Start the guest #virsh start rhel6 5.Connect the guest, only ip 192.168.122.1 works, other ip didn't work Actual results: Generate the redundant record in guest's xml while configure the same listen address in guest's xml Expected results: Should generate only 1 record while configure the same listen address in guest's xml