Bug 1295659

Summary: The title of remote-viewer window is incorrect when open a vm in RHEVM
Product: Red Hat Enterprise Virtualization Manager Reporter: Xiaodai Wang <xiaodwan>
Component: ovirt-engineAssignee: Marek Libra <mlibra>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.0CC: bgraveno, bugs, cfergeau, dblechte, didi, eedri, fidencio, gklein, juzhou, lsurette, mavital, mgoldboi, michal.skrivanek, mzhan, pgrunt, rbalakri, Rhev-m-bugs, tzheng, xzhong, yeylon
Target Milestone: ovirt-3.6.3   
Target Release: 3.6.3   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The release cursor key combination that is displayed in the title of a virtual machine's remote viewer no longer shows incorrect key combinations.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-21 13:03:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Xiaodai Wang 2016-01-05 06:59:26 UTC
Description of problem:
The title of remote-viewer window is incorrect when open a vm in RHEVM

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

How reproducible:
100%

Steps to Reproduce:
1. Login RHEVM.
2. Click "Virtual machines" tab and select one vm.
3. Click console button and save the console.vv file to local.
4. Modify the shortcuts of "release-cursor=shift+f12" to "release-cursor=ctrl+alt" in console.vv.
5. Run "remote-viewer console.vv".

Actual results:
The title is "$guestname - Press SHIFT+F12 to Release Cursor - Remote Viewer".

Expected results:
The shortcut should be consistent with that in console.vv or just remove the shortcut description because the correct way to release pointer can be displayed in parentheses when the mouse is captured.

Additional info:

Comment 2 Pavel Grunt 2016-01-05 07:12:05 UTC
(In reply to xiaodwan from comment #0)
> Description of problem:
> The title of remote-viewer window is incorrect when open a vm in RHEVM
> 
> Version-Release number of selected component (if applicable):
> virt-viewer-2.0-10.el6.x86_64
> 
> How reproducible:
> 100%
> 
> Steps to Reproduce:
> 1. Login RHEVM.
> 2. Click "Virtual machines" tab and select one vm.
> 3. Click console button and save the console.vv file to local.
> 4. Modify the shortcuts of "release-cursor=shift+f12" to
> "release-cursor=ctrl+alt" in console.vv.
> 5. Run "remote-viewer console.vv".
> 
> Actual results:
> The title is "$guestname - Press SHIFT+F12 to Release Cursor - Remote
> Viewer".
> 

check the content of the vv file, there is the 'title' key. virt-viewer just uses its value as the title. We can do nothing about it from the virt-viewer's side.

> Expected results:
> The shortcut should be consistent with that in console.vv or just remove the
> shortcut description because the correct way to release pointer can be
> displayed in parentheses when the mouse is captured.
> 
> Additional info:

Comment 3 Fabiano Fidêncio 2016-01-05 08:16:15 UTC
(In reply to Pavel Grunt from comment #2)
> (In reply to xiaodwan from comment #0)
> > Description of problem:
> > The title of remote-viewer window is incorrect when open a vm in RHEVM
> > 
> > Version-Release number of selected component (if applicable):
> > virt-viewer-2.0-10.el6.x86_64
> > 
> > How reproducible:
> > 100%
> > 
> > Steps to Reproduce:
> > 1. Login RHEVM.
> > 2. Click "Virtual machines" tab and select one vm.
> > 3. Click console button and save the console.vv file to local.
> > 4. Modify the shortcuts of "release-cursor=shift+f12" to
> > "release-cursor=ctrl+alt" in console.vv.
> > 5. Run "remote-viewer console.vv".
> > 
> > Actual results:
> > The title is "$guestname - Press SHIFT+F12 to Release Cursor - Remote
> > Viewer".
> > 
> 
> check the content of the vv file, there is the 'title' key. virt-viewer just
> uses its value as the title. We can do nothing about it from the
> virt-viewer's side.

Is worth to mention that having it in the title nowadays is useless, as when the mouse is grabbed the title is already update with the message "Press %s to release the pointer", this one showing the proper shortcut. So, in the end the users see the message twice, and one of them is wrong :-\

My suggestion is just to move this bug to the part responsible for creating the .vv file (RHEVM ?) and ask then to remove the hard-coded "Press SHIFT+F12 to Release Cursor" string,

Comment 4 Fabiano Fidêncio 2016-01-05 08:18:48 UTC
Re-assigning the bug to the right (?) component.

Comment 5 Michal Skrivanek 2016-01-08 17:18:28 UTC
good one:)
Since when does the client show the measage on its own? We don't want to remove it for not-so-old clients I guess

Comment 7 Fabiano Fidêncio 2016-01-11 07:11:36 UTC
(In reply to Michal Skrivanek from comment #5)
> good one:)
> Since when does the client show the measage on its own? We don't want to
> remove it for not-so-old clients I guess

Michal,

virt-viewer started properly handling that on commit 7ffd3d4f7e513cb729264d545a6ffb66560f74bc (v0.5.3), which is included on virt-viewer builds since rhel-6.4.

Comment 8 Michal Skrivanek 2016-01-11 10:41:58 UTC
(In reply to Fabiano Fidêncio from comment #7)
> (In reply to Michal Skrivanek from comment #5)
> > good one:)
> > Since when does the client show the measage on its own? We don't want to
> > remove it for not-so-old clients I guess
> 
> Michal,
> 
> virt-viewer started properly handling that on commit
> 7ffd3d4f7e513cb729264d545a6ffb66560f74bc (v0.5.3), which is included on
> virt-viewer builds since rhel-6.4.

That's good news, thank you for the confirmation

Comment 9 Michal Skrivanek 2016-01-11 10:43:21 UTC
note that there is no bug in the string itself, it is created dynamically based on the mapping in RHEV-M. You are not supposed to change it in the .vv file (you're not supposed to modify it at all - and if you do, then you could change the string as well)

Comment 10 Michal Skrivanek 2016-01-11 10:52:36 UTC
we can easily drop it
also, though unrelated - the generated file is not ended with a newline

Comment 11 Fabiano Fidêncio 2016-01-11 10:58:09 UTC
(In reply to Michal Skrivanek from comment #9)
> note that there is no bug in the string itself, it is created dynamically
> based on the mapping in RHEV-M. You are not supposed to change it in the .vv
> file (you're not supposed to modify it at all - and if you do, then you
> could change the string as well)

I am kinda fine about closing it as a WONTFIX, tbh.
It was opened by virt-qa and the way they were testing was changing the hotkeys after download the .vv file. I don't think that's what a user should do.

Anyways, dropping seems okay as well, mainly because we have redundant information in the title.

Comment 12 Ilanit Stein 2016-02-18 12:22:36 UTC
Verified on rhevm 3.6.3.2-0.1.

In console.vv file, 
title=<vm name>:%d - Press SHIFT+F12 to Release Cursor
changed to title=<vm name>:%d

Comment 13 Eyal Edri 2016-03-21 13:03:33 UTC
3.6.3 was GA, closing