Bug 1022473

Summary: guest resume from S3 while close spice window
Product: Red Hat Enterprise Linux 7 Reporter: Xu Han <xuhan>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 7.0CC: cfergeau, dblechte, hhuang, juzhang, lmiksik, michen, rbalakri, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1022855 (view as bug list) Environment:
Last Closed: 2017-03-23 13:07:01 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:
Bug Depends On:    
Bug Blocks: 1022855    

Description Xu Han 2013-10-23 11:09:42 UTC
Description of problem:
guest resume from S3 while close spice window

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-1.5.3-10.el7.x86_64
virt-viewer-0.5.6-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. boot guest with spice + qxl and enable S3.
# /usr/libexec/qemu-kvm ... \
-vga qxl -spice disable-ticketing,port=5931 \
-global PIIX4_PM.disable_s3=0
2. use remote-viewer connect to guest.
# remote-viewer spice:$host_ip:5931
3. suspend guest.
# pm-suspend
4. close spice window.

Actual results:
after step4 guest resume.

Expected results:
guest still suspend.

Additional info:
use vnc not hit this issue.

Comment 2 Xu Han 2013-10-24 08:15:28 UTC
Test with '-vga cirrus' and '-vga std'. rhel7.0 and rhel6.5 both hit this issue while use spice.
And rhel7.0 spice window still in frozen status when reconnect.

Please track bug 1022855 as well.

Comment 3 RHEL Program Management 2014-03-22 06:34:56 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 7 Christophe Fergeau 2017-03-23 13:07:01 UTC
This happens when trying to close the SPICE window, and when the "Do you want to close the session" dialog is shown. This dialog grabs the keyboard, causing grab_notify(was_grabbed = FALSE) in spice-widget.c to be triggered. This will sed some keys to the guest, waking it up.
If you check the checkbox to always hide the dialog, then quitting remote-viewer does not wake up the guest.

This bug is old, has no customer case, is in an unsupported configuration (S3) and has a simple work-around, so I'll close it.