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:
Failed to start guest after adding RNG hardware:
RNG Type: Entropy Gathering Daemon, Backend type: UDP, Host: 127.0.0.1 port 1708, Bind Host: 127.0.0.1 port 1710.
Version-Release number of selected component (if applicable):
kernel-3.10.0-143.el7.x86_64
libvirt-1.2.7-1.el7.x86_64
qemu-kvm-rhev-2.1.0-1.el7.x86_64
How reproducible:
always
Steps to Reproduce:
1. Prepare a health guest and keep in shutdown status.
2. Add the rng device like below:
with Type: Entropy Gathering Daemon, Backend type: UDP, Host: 127.0.0.1 port 1708, Bind Host: 127.0.0.1 port 1710.
# virsh dumpxml rhel77 | grep rng -A 10
<rng model='virtio'>
<backend model='egd' type='udp'>
<source mode='bind' host='127.0.0.1' service='1710'/>
<source mode='connect' host='127.0.0.1' service='1708'/>
</backend>
3. Start the guest.
Actual results:
Failed to start guest.
# virsh start rhel77
error: Failed to start domain rhel77
error: internal error: process exited while connecting to monitor: 2014-08-08T07:29:39.116348Z qemu-kvm: -object rng-egd,chardev=charrng0,id=rng0: Device 'charrng0' not found
Expected results:
Guest can start successfully.
Additional info:
This issue doesn't hit with following version.
1. Download to qemu-kvm-rhev-1.5.3-60.el7ev.x86_64, guest can start successfully.
2 Remove qemu-kvm-rhev-2.1.0-1.el7.x86_64 and then install qemu-kvm-1.5.3-66.el7.x86_64 instead, guest can start successfully.
A simple way to reproduce this bug:
x86_64-softmmu/qemu-system-x86_64 -monitor stdio -vnc :0 \
-chardev socket,host=localhost,port=1024,id=chr0 \
-object rng-egd,chardev=chr0,id=rng0
qemu-system-x86_64: -object rng-egd,chardev=chr0,id=rng0: Device 'chr0' not found
It's an upstream regression which was introduced by the following patch, it's not fixed:
| commit 57d3e1b3f52d07d215ed96df946ee01f8d9f9526
| Author: Igor Mammedov <imammedo>
| Date: Thu Jan 16 17:34:39 2014 +0100
|
| virtio_rng: replace custom backend API with UserCreatable.complete() callback
|
| in addition fix default backend leak by releasing it if its
| initialization failed.
|
| Signed-off-by: Igor Mammedov <imammedo>
| Reviewed-by: Stefan Hajnoczi <stefanha>
| Signed-off-by: Luiz Capitulino <lcapitulino>
Comment 6Miroslav Rezanina
2014-09-12 12:55:39 UTC
(In reply to Miroslav Rezanina from comment #6)
> Fix included in qemu-kvm-1.5.3-70.el7
The Component is qemu-kvm-rhev, we only need it for qemu-kvm-rhev.
it doesn't need for qemu-kvm-rhel7, but it's harmless.
Did I mark something wrong in bug/patch?
Comment 8Miroslav Rezanina
2014-09-26 09:19:49 UTC
Hi Amos,
you did nothing wrong. Looks like build -70.el7 was corrupted due other incorrectly submitted patches that cause inclusion of few rhev only patches to rhel build.
Changing back to POST and putting patch back on queue...rhel build will be fixed with other incorrectly committed patches.
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/RHSA-2015-0624.html
Description of problem: Failed to start guest after adding RNG hardware: RNG Type: Entropy Gathering Daemon, Backend type: UDP, Host: 127.0.0.1 port 1708, Bind Host: 127.0.0.1 port 1710. Version-Release number of selected component (if applicable): kernel-3.10.0-143.el7.x86_64 libvirt-1.2.7-1.el7.x86_64 qemu-kvm-rhev-2.1.0-1.el7.x86_64 How reproducible: always Steps to Reproduce: 1. Prepare a health guest and keep in shutdown status. 2. Add the rng device like below: with Type: Entropy Gathering Daemon, Backend type: UDP, Host: 127.0.0.1 port 1708, Bind Host: 127.0.0.1 port 1710. # virsh dumpxml rhel77 | grep rng -A 10 <rng model='virtio'> <backend model='egd' type='udp'> <source mode='bind' host='127.0.0.1' service='1710'/> <source mode='connect' host='127.0.0.1' service='1708'/> </backend> 3. Start the guest. Actual results: Failed to start guest. # virsh start rhel77 error: Failed to start domain rhel77 error: internal error: process exited while connecting to monitor: 2014-08-08T07:29:39.116348Z qemu-kvm: -object rng-egd,chardev=charrng0,id=rng0: Device 'charrng0' not found Expected results: Guest can start successfully. Additional info: This issue doesn't hit with following version. 1. Download to qemu-kvm-rhev-1.5.3-60.el7ev.x86_64, guest can start successfully. 2 Remove qemu-kvm-rhev-2.1.0-1.el7.x86_64 and then install qemu-kvm-1.5.3-66.el7.x86_64 instead, guest can start successfully.