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:
Fail to start guest with rng which with edg model and udp type
Version-Release number:
kernel-3.10.0-246.el7.x86_64
libvirt-1.2.14-1.el7.x86_64
qemu-kvm-rhev-2.3.0-1.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Prepare a guest with rng configured
#virsh dumpxml rhel7
--
<rng model='virtio'>
<backend model='egd' type='udp'>
<source mode='bind' service='1234'/>
<source mode='connect' host='1.2.3.4' service='1234'/>
</backend>
<address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
</rng>
</devices>
2.Start the guest
# virsh start rhel7
error: Failed to start domain rhel7
error: internal error: early end of file from monitor: possible problem:
2015-05-04T03:07:12.659611Z qemu-kvm: -chardev udp,id=charrng0,host=1.2.3.4,port=1234,localaddr=,localport=1234: Invalid parameter 'localaddr'
3.The guest could start successfully with qemu-kvm-rhev-2.2.0-9.el7.x86_64
4.It works well in rhel6.7, so another issue is coming, while we configure the rng in rhel6.7, then do cross-migration from rhel6.7 to rhel7.2, the testing will be blocked
Actual results:
Fail to start guest with rng which with edg model and udp type
Expected results:
should start it successfully or give a clear error, also shouldn't block cross migration from rhel6.7 to rhel7.2
Could you please attach the full domain XML and the contents of '/var/log/libvirt/qemu/rhel7.log'
The reported error message is only a warning from qemu and it's usually ignored so there must be a different error that hinders qemu from starting.
I traced the problem to few recent changes in qemu-kvm. The minimal reproducer case for qemu is:
$ qemu-system-x86_64 -chardev udp,id=charrng0,host=127.0.0.1,port=1234,localaddr=,localport=1234
qemu-system-x86_64: - ,id=charrng0,host=127.0.0.1,port=1234,localaddr=,localport=1234: Invalid parameter 'localaddr'
Aborted (core dumped)
Since qemu commit f43e47dbf6de24db20ec9b588bb6cc762093dd69 the error is treated as fatal. Previously the warning was printed but the error was ignored. The main problem is that the QemuOptsList socket_optslist structure does not contain the localaddr and localport fields and thus the parsing of the commandline fails.
Since this is an internal programming mistake in qemu I'm reassigning the bug.
Additionally, I also encounter the same problem on the following packages:
qemu-kvm-1.5.3-95.el7.x86_64
libvirt-1.2.17-2.el7.x86_64
virt-manager-1.2.1-2.el7.noarch
(In reply to Harald Hoyer from comment #10)
> (In reply to Amit Shah from comment #9)
> > Fix was included upstream:
> >
> > b8981dc9aae25fa79e5f35609e63f50f078a572d
>
> Can we have this fix in Fedora rawhide, please?
This is in qemu-2.4 and both fc23 and fc24 builds of qemu will have this commit already in:
http://koji.fedoraproject.org/koji/packageinfo?packageID=3685
QE reproduced the bug on build qemu-kvm-rhev-2.3.0-6.el7.x86_64
How to reproduce the issue on QEMU and test steps was following as below,
1./usr/libexec/qemu-kvm -chardev udp,id=charrng0,host=1.2.3.4,port=1234,localaddr=,localport=1234
Actual results was same to Descriptions
qemu-kvm: -chardev udp,id=charrng0,host=1.2.3.4,port=1234,localaddr=,localport=1234: Invalid parameter 'localaddr'...
QE verified the bug on build qemu-kvm-rhev-2.6.0-22.el7.x86_64
1.steps
boot up guest with the following cli
/usr/libexec/qemu-kvm -chardev udp,id=charrng0,host=1.2.3.4,port=1234,localaddr=,localport=1234
Actual results,
VNC server running on '::1;5900'
Draw a conclusion,the original issue has been fixed on build qemu-kvm-rhev-2.6.0-22.el7.x86_64.Thanks !
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.
https://rhn.redhat.com/errata/RHBA-2016-2673.html
Description of problem: Fail to start guest with rng which with edg model and udp type Version-Release number: kernel-3.10.0-246.el7.x86_64 libvirt-1.2.14-1.el7.x86_64 qemu-kvm-rhev-2.3.0-1.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Prepare a guest with rng configured #virsh dumpxml rhel7 -- <rng model='virtio'> <backend model='egd' type='udp'> <source mode='bind' service='1234'/> <source mode='connect' host='1.2.3.4' service='1234'/> </backend> <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> </rng> </devices> 2.Start the guest # virsh start rhel7 error: Failed to start domain rhel7 error: internal error: early end of file from monitor: possible problem: 2015-05-04T03:07:12.659611Z qemu-kvm: -chardev udp,id=charrng0,host=1.2.3.4,port=1234,localaddr=,localport=1234: Invalid parameter 'localaddr' 3.The guest could start successfully with qemu-kvm-rhev-2.2.0-9.el7.x86_64 4.It works well in rhel6.7, so another issue is coming, while we configure the rng in rhel6.7, then do cross-migration from rhel6.7 to rhel7.2, the testing will be blocked Actual results: Fail to start guest with rng which with edg model and udp type Expected results: should start it successfully or give a clear error, also shouldn't block cross migration from rhel6.7 to rhel7.2