Bug 722980

Summary: Spice vdagent stops to respond
Product: Red Hat Enterprise Linux 8 Reporter: Marian Krcmarik <mkrcmari>
Component: spice-vdagent-winAssignee: Arnon Gilboa <agilboa>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: ---CC: acathrow, cfergeau, cmeadors, dblechte, iheim, jrb, kgrainge, mhasko, Rhev-m-bugs, ykaul
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdagent-win-0.1-7 Doc Type: Bug Fix
Doc Text:
Previously, using the SPICE agent on Windows 7 guests could result in unexpected behavior, such as some features of the agent not working. This was caused by a bug in the VDService agent where services would be run in a different thread than the main service thread, which resulted in a race condition. The agent has been updated and services are now run in the main service thread, so the agent performs as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-15 15:36:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marian Krcmarik 2011-07-18 17:00:01 UTC
Description of problem:
Spice vdagent stops to respond even it is running and that's why It's not possible to connect to a guest from User portal - vdagent timeout error.
RHEV Spice Agent service is running and functional then after while still running but stops to work in direction agent -> client.

Version-Release number of selected component (if applicable):
Windows7 (32/64bit) guest with vdagent-win-0.1-6 and qxl-win-0.1-6
RHEVM3.0 (ic130.1)
Host: RHEL6.1 (spice-server-0.8.0-1, qemu-kvm-0.12.1.2-2.169)
Client: RHEL6.2 (spice-client-0.8.0-2)

How reproducible:
often

Steps to Reproduce:
1. Connect to Windows guest with vdagent installed and running from User portal of RHEVM3.0 (Mostly It opens correctly in full-screen after fresh start)
2. Repeat the step 1 until connection fails till vdagent timeout
  
Actual results:
spice vdagent is not working in direction agent -> client, service is running

Expected results:
spice vdagent should be responsive.

Additional info:

Comment 3 Marian Krcmarik 2011-07-18 17:13:25 UTC
Note: Power Management was set to never sleep and turn off display.
      Shutdown and start of guest will make vdagent working again.

Comment 5 Arnon Gilboa 2011-07-20 07:45:37 UTC
Are we sure it's win7-only issue? please try to repro on xp.

(In reply to comment #0)
> Description of problem:
> Spice vdagent stops to respond even it is running and that's why It's not
> possible to connect to a guest from User portal - vdagent timeout error.
> RHEV Spice Agent service is running and functional then after while still
> running but stops to work in direction agent -> client.
> 
> Version-Release number of selected component (if applicable):
> Windows7 (32/64bit) guest with vdagent-win-0.1-6 and qxl-win-0.1-6
> RHEVM3.0 (ic130.1)
> Host: RHEL6.1 (spice-server-0.8.0-1, qemu-kvm-0.12.1.2-2.169)
> Client: RHEL6.2 (spice-client-0.8.0-2)

Comment 6 Marian Krcmarik 2011-07-20 20:13:53 UTC
(In reply to comment #5)
> Are we sure it's win7-only issue? please try to repro on xp.
> 
> (In reply to comment #0)
> > Description of problem:
> > Spice vdagent stops to respond even it is running and that's why It's not
> > possible to connect to a guest from User portal - vdagent timeout error.
> > RHEV Spice Agent service is running and functional then after while still
> > running but stops to work in direction agent -> client.
> > 
> > Version-Release number of selected component (if applicable):
> > Windows7 (32/64bit) guest with vdagent-win-0.1-6 and qxl-win-0.1-6
> > RHEVM3.0 (ic130.1)
> > Host: RHEL6.1 (spice-server-0.8.0-1, qemu-kvm-0.12.1.2-2.169)
> > Client: RHEL6.2 (spice-client-0.8.0-2)

Nope, I am not sure. I am just not able to reproduce that on WinXP and as Swapna mentioned during meeting she had not been as well.
I can get vdagent non-responsive on WinXP guest but only during migration and It looks differently since agent is not working in both direction and that's why I filed separated bug, pls see: https://bugzilla.redhat.com/show_bug.cgi?id=723699.
But as well I cannot be 100% sure, especially in current situation when many bugs are involved in testing.
Of course, If I reproduce on WinXP, I will let you know immediately.

Comment 7 Arnon Gilboa 2011-07-27 15:19:04 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=719140#c11

Comment 8 Michal Haško 2011-08-04 08:37:28 UTC
Doesn't happen to me anymore on Win7x32 guest -> changing to VERIFIED

Comment 9 Kate Grainger 2011-12-12 01:20:59 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, using the SPICE agent on Windows 7 guests could result in unexpected behavior, such as some features of the agent not working. This was caused by a bug in the VDService agent where services would be run in a different thread than the main service thread, which resulted in a race condition. The agent has been updated and services are now run in the main service thread, so the agent performs as expected.

Comment 10 errata-xmlrpc 2011-12-15 15:36:59 UTC
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/RHBA-2011-1818.html