Bug 1315206

Summary: Can't connect to any display if specifying <CLIENT-MONITOR-ID> greater than the real monitor count
Product: Red Hat Enterprise Linux 6 Reporter: Xiaodai Wang <xiaodwan>
Component: virt-viewerAssignee: Eduardo Lima (Etrunko) <elima>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.8CC: cfergeau, dblechte, elima, fidencio, juzhou, mxie, mzhan, rbalakri, tzheng
Target Milestone: rc   
Target Release: 6.9   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-2.0-15.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1339493 (view as bug list) Environment:
Last Closed: 2017-03-21 09:17:22 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: 1339493, 1339499    

Description Xiaodai Wang 2016-03-07 09:11:46 UTC
Description of problem:
Can't connect to any display if specifying <CLIENT-MONITOR-ID> greater than the real monitor count

Version-Release number of selected component (if applicable):
virt-viewer-2.0-14.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
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 

#rhel7.2-back-clone
[d622b6f8-fdee-ad9c-63fe-cac2e9b6200d]
monitor-mapping=1:5
2. Wait for the guest startup and Login into the guest first.
3. lanuch virt-viewer with -f arguments.
# virt-viewer rhel7.2-back-clone -f


Actual results:
"Connected to graphic sever" screen displays and can't connect to any display.


Expected results:
virt-viewer should ignore the monitor-mapping settings and connect to correct displays.

Additional info:
This issue doesn't occur on rhel7.2.

Comment 2 Fabiano FidĂȘncio 2016-03-07 09:39:21 UTC
(In reply to xiaodwan from comment #0)
> Description of problem:
> Can't connect to any display if specifying <CLIENT-MONITOR-ID> greater than
> the real monitor count
> 
> Version-Release number of selected component (if applicable):
> virt-viewer-2.0-14.el6.x86_64
> 
> How reproducible:
> 100%
> 
> Steps to Reproduce:
> 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 
> 
> #rhel7.2-back-clone
> [d622b6f8-fdee-ad9c-63fe-cac2e9b6200d]
> monitor-mapping=1:5
> 2. Wait for the guest startup and Login into the guest first.
> 3. lanuch virt-viewer with -f arguments.
> # virt-viewer rhel7.2-back-clone -f
> 
> 
> Actual results:
> "Connected to graphic sever" screen displays and can't connect to any
> display.
> 
> 
> Expected results:
> virt-viewer should ignore the monitor-mapping settings and connect to
> correct displays.
> 
> Additional info:
> This issue doesn't occur on rhel7.2.

I'd say this issue doesn't occur on rhel7.2 YET.
I'd keep this bug (and the other one related to monitor config) in the radar, because most likely it will start happening there as well.

Anyways, proposed patch: http://www.redhat.com/archives/virt-tools-list/2016-March/msg00046.html

Comment 3 Mike McCune 2016-03-28 23:44:20 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 5 Xiaodai Wang 2016-12-07 06:04:27 UTC
I verfied this bug with virt-viewer-2.0-17.el6.x86_64.

And virt-viewer can ignore the invalid settings and open guest correctly.

So move the bug from ON_QA to VERIFIED.

Comment 7 errata-xmlrpc 2017-03-21 09:17:22 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-2017-0587.html