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.

Bug 870360

Summary: [SPICE] Guest with running spice-vdagent will be killed if connect it through virt-viewer for 2nd time.
Product: Red Hat Enterprise Linux 6 Reporter: Geyang Kong <gkong>
Component: qemu-kvmAssignee: Hans de Goede <hdegoede>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.4CC: acathrow, alevy, berrange, bsarathy, cfergeau, dblechte, dyasny, juzhang, mazhang, mjenner, mkenneth, mzhan, qzhang, tburke, tzheng, uril, virt-maint, yhalperi, yupzhang, zpeng
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-03 08:42:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
1st time's log
none
2nd time's log
none
Guest's log none

Description Geyang Kong 2012-10-26 08:57:34 UTC
Created attachment 633747 [details]
1st time's log

Description of problem:
  Guest with running spice-vdagent will be killed if connect it through virt-viewer for 2nd time.

Version-Release number of selected component (if applicable):
spice-server-0.12.0-1.el6.x86_64
spice-protocol-0.12.2-1.el6.noarch
spice-glib-0.14-5.el6.x86_64
spice-gtk-tools-0.14-5.el6.x86_64
spice-gtk-python-0.14-5.el6.x86_64
spice-gtk-0.14-5.el6.x86_64
spice-vdagent-0.12.0-2.el6.x86_64
virt-viewer-0.5.2-16.el6.x86_64
libvirt-0.10.2-5.el6.x86_64
libvirt-debuginfo-0.10.2-5.el6.x86_64
libvirt-client-0.10.2-5.el6.x86_64
libvirt-python-0.10.2-5.el6.x86_64

Reproduce steps:
1. Install a RHEL6.3 guest with gnome.
2. Make sure guest has spice+qxl graphic devices and spicevmc channel exists.
3. Start the guest and make sure spice-vdagentd service is running in guest.
4. Run virt-viewer $guestname.
5. Change the size of console form for several times to make spice-vdagent change the resolution in guest, about 3-5.
6. Close virt-viewer and connect to the guest again.

Actual results:
1. After step 6, guest was killed.

Expected results:
1. After step 6, guest should keep alive.

Additional info:
1. This bug cannot be reproduced by following builds:
spice-gtk-python-0.11-11.el6.x86_64
spice-glib-0.11-11.el6.x86_64
spice-gtk-0.11-11.el6.x86_64
spice-vdagent-0.8.1-3.el6.x86_64
spice-server-0.10.1-10.el6.x86_64
virt-viewer-0.5.2-9.el6.x86_64
libvirt-python-0.9.10-21.el6.x86_64
libvirt-client-0.9.10-21.el6.x86_64
libvirt-0.9.10-21.el6.x86_64

Comment 1 Geyang Kong 2012-10-26 08:59:09 UTC
Created attachment 633748 [details]
2nd time's log

Comment 4 Daniel Berrangé 2012-11-02 16:50:35 UTC
We really need the logfile from QEMU /var/log/libvirt/qemu/$GUESTNAME.log after the guest has crashed.

Comment 5 Geyang Kong 2012-11-05 03:29:08 UTC
Created attachment 638304 [details]
Guest's log

Guest's log attached

Comment 6 Daniel Berrangé 2012-11-06 13:17:54 UTC
Looks like either QEMU or spice-server are hitting an assertion, causing QEMU to abort. Moving to QEMU since it isn't virt-viewer's fault.

main_channel_link: add main channel client
main_channel_handle_parsed: agent start
main_channel_handle_parsed: net test: latency 0.436000 ms, bitrate 16786885245 bps (16009.221311 Mbps)
((null):7475): SpiceWorker-CRITICAL **: red_worker.c:10916:red_push_monitors_config: condition `monitors_config != NULL' failed
2012-11-05 15:28:28.835+0000: shutting down

Comment 7 Qunfang Zhang 2012-11-07 09:50:25 UTC
We hit many similar issues these days after upgrade the spice-server. Adding spice guys to have a look at this issue.

Hi, Uri and Yonit
Could you guys help have a look at this issue if it's related spice-server? 

Two similar bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=864345
https://bugzilla.redhat.com/show_bug.cgi?id=873563

Thanks,
Qunfang

Comment 8 Uri Lublin 2012-11-27 15:02:28 UTC
This seems like a duplicate of bug 868807

Comment 9 Uri Lublin 2012-11-28 14:45:01 UTC
How easy/hard is it to reproduce ?

It's not easily reproduced for me.

On my RHEL-6 host/client:
   qemu-kvm-0.12.1.2-2.334.el6.x86_64
   virt-viewer-0.5.2-16.el6.x86_64

On my RHEL-6.3 VM:
   spice-vdagent-0.8.1-3.el6.x86_64
   kernel-2.6.32-279.el6.x86_64


Can you please try spice-server-0.12.0-5 ?
The fix in 0.12.0-3 is related to monitors_config.

Comment 10 Geyang Kong 2012-12-03 05:19:37 UTC
I've tried this bug on the following build, everything looks OK now.

spice-server-0.12.0-6.el6.x86_64
spice-gtk-python-0.14-5.el6.x86_64
spice-gtk-0.14-5.el6.x86_64
spice-glib-0.14-5.el6.x86_64
spice-gtk-tools-0.14-5.el6.x86_64
qemu-kvm-0.12.1.2-2.335.el6.x86_64
virt-viewer-0.5.2-16.el6.x86_64
xorg-x11-drv-qxl-0.1.0-2.el6.x86_64 (Installed on both host and guest)
spice-vdagent-0.12.0-3.el6.x86_64 (Installed on both host and guest)
kernel-2.6.32-343.el6.x86_64 (Installed on both host and guest)

Comment 11 Hans de Goede 2012-12-03 08:42:04 UTC
Closing this one per comment #10.