Bug 1339493

Summary: Can't connect to any display if specifying <CLIENT-MONITOR-ID> greater than the real monitor count
Product: Red Hat Enterprise Linux 7 Reporter: Xiaodai Wang <xiaodwan>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: cfergeau, dblechte, fidencio, juzhou, mxie, mzhan, pgrunt, rbalakri, tzheng, virt-bugs, virt-viewer-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-2.0-8.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1315206
: 1339499 (view as bug list) Environment:
Last Closed: 2016-11-04 01:20:19 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:
Bug Depends On: 1315206    
Bug Blocks: 1339499    

Comment 1 Fabiano FidĂȘncio 2016-05-25 08:10:27 UTC
Here is the commit that fix the issue: 5f2692453

Comment 4 Xiaodai Wang 2016-06-29 06:45:38 UTC
I can reproduce it with virt-viewer-2.0-7.el7.x86_64, 

then updated to virt-viewer-2.0-8.el7.x86_64 and tried it again, it doesn't occur any more.

steps:
1. Set <CLIENT-MONITOR-ID> greater than the count of real monitor. For example, if you only have one monitor, you can set it to 1:2.
$ cat .config/virt-viewer/settings 
[4987d17c-4c07-432a-918d-47e1a1ad79fc]
monitor-mapping=1:2
2. Wait for the guest startup and Login into the guest first.
3. lanuch virt-viewer with -f arguments.
$ virt-viewer -c qemu:///system rhel7.2-back-clone -f

Actual Result:
virt-viewer can open guest successfully and there is a warning message in terminal.

(virt-viewer:32713): virt-viewer-WARNING **: Invalid monitor-mapping configuration: monitor #2 for display #1 does not exist

so move this bug from ON_QA to VERIFIED.

Comment 6 errata-xmlrpc 2016-11-04 01:20:19 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.

https://rhn.redhat.com/errata/RHBA-2016-2229.html