Bug 1223469
Summary: | Add minimum version check to rhev spice-client | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Christophe Fergeau <cfergeau> | |
Component: | virt-viewer | Assignee: | Virt Viewer Maint <virt-viewer-maint> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.2 | CC: | bsanford, cfergeau, dblechte, djasa, ecohen, gklein, jjongsma, juzhou, lsurette, mzhan, rbalakri, rh-spice-bugs, sherold, spice-qe-bugs, tzheng, xiaodwan, yeylon | |
Target Milestone: | rc | |||
Target Release: | 7.2 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | spice | |||
Fixed In Version: | virt-viewer-2.0-2.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 1200103 | |||
: | 1295944 (view as bug list) | Environment: | ||
Last Closed: | 2015-11-19 07:36:45 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: | 1200103 | |||
Bug Blocks: | 950248, 1228275, 1264767, 1295944 |
Description
Christophe Fergeau
2015-05-20 15:08:14 UTC
Also moving this one to POST since patches have been pushed upstream. For reference these patches are needed: 0401199b^..88846081 Try to verify this issue with new build: virt-viewer-2.0-3.el7.x86_64 spice-gtk3-0.26-3.el7.x86_64 libvirt-1.2.16-1.el7.x86_64 Steps: 1. Check remote-viewer manual page: # man remote-viewer ... CONNECTION FILE ... "versions" (osid:version list) This is a list of osid:version couples separated by ';'. osid is an arbitrary string, version is a version number in the same format as in the 'version' field. A given couple indicates that remote-viewer builds matching the given 'osid' (fedora22, debian7, ...) must be at least version 'version'. For consistency, it's recommended to use libosinfo OS shortids as the osid. "newer-version-url" (string) If specified, this field is an URL which will be displayed to the user when a version check fails. ... Result: 'versions' and 'newer-version-url' 2 options already added. 2. Check "--with-osid" outputs: # remote-viewer -V remote-viewer version 2.0-3.el7 (OS ID: rhel7) 3. Check function for option 'versions' and 'newer-version-url'. Scenario 1: $versions is equals to virt-viewer version 1.1 Prepare a running guest and configure console.vv file. # cat console.vv [virt-viewer] type=spice host=127.0.0.1 port=5900 fullscreen=0 versions=rhel7:2.0-3 1.2 Use remote-viewer to connect vm. # remote-viewer console.vv Result: Can connect to guest successfully. Scenario 2: $versions is less than virt-viewer version 2.1 Prepare a running guest and configure console.vv file. # cat console.vv [virt-viewer] type=spice host=127.0.0.1 port=5900 fullscreen=0 versions=rhel7:1.0-3 2.2 Use remote-viewer to connect vm. # remote-viewer console.vv Result: Can connect to guest successfully. Scenario 3: $versions is larger than virt-viewer version 3.1 Prepare a running guest and configure console.vv file. # cat console.vv [virt-viewer] type=spice host=127.0.0.1 port=5900 fullscreen=0 versions=rhel7:3.0-3 3.2 Use remote-viewer to connect vm. # remote-viewer console.vv Result: Failed to connect to guest, a error window pop up with "At least Remote Viewer version 3.0-3 is required to setup this connection" After click "OK" button, window closed with no error. 3.3 Add 'newer-version-url' option to connection file: # cat console.vv [virt-viewer] type=spice host=127.0.0.1 port=5900 fullscreen=0 versions=rhel7:3.0-3 newer-version-url=http://download.devel.redhat.com/brewroot/packages/virt-manager/1.1.0/10.el7/noarch/virt-install-1.1.0-10.el7.noarch.rpm 3.4 Rerun Step3.2 again. # remote-viewer console.vv Result: Failed to connect to guest, a error window pop up with "At least Remote Viewer version 3.0-3 is required to setup this connection, see http://download.devel.redhat.com/brewroot/packages/virt-manager/1.1.0/10.el7/noarch/virt-install-1.1.0-10.el7.noarch.rpm for details", after click "OK" button, window closed with no error. Summary: Hi teuf, can you help me check whether above steps is enough to verify this bug, thanks. And i have another 2 question: Q1: whether it check $osid is existing or not? for example: # cat console.vv [virt-viewer] type=spice host=127.0.0.1 port=5900 fullscreen=0 versions=rhel7777:2.0-3---->use rhel7777 # remote-viewer console.vv Result: Can connect to guest successfully. Q2: Shall we add a period '.' after error "for details" in Step3.4. Q3: In fact, we just have virt-viewer pkg, so in "At least Remote Viewer version 3.0-3", please take into consider, use "Virt Viewer" instead of "Remote Viewer", i'm not sure about this one. waiting for your reply, thanks. (In reply to zhoujunqin from comment #5) > Try to verify this issue with new build: > virt-viewer-2.0-3.el7.x86_64 > spice-gtk3-0.26-3.el7.x86_64 > libvirt-1.2.16-1.el7.x86_64 > > Steps: > 1. Check remote-viewer manual page: > # man remote-viewer > ... > CONNECTION FILE > ... > "versions" (osid:version list) > This is a list of osid:version couples separated by ';'. osid is > an arbitrary string, version is a version number in the same > format as in the 'version' field. A given couple indicates that > remote-viewer builds matching the given 'osid' (fedora22, > debian7, ...) must be at least version 'version'. For > consistency, it's recommended to use libosinfo OS shortids as the osid. > > "newer-version-url" (string) > If specified, this field is an URL which will be displayed to the > user when a version check fails. > ... > > Result: > 'versions' and 'newer-version-url' 2 options already added. > > 2. Check "--with-osid" outputs: > # remote-viewer -V > remote-viewer version 2.0-3.el7 (OS ID: rhel7) > > 3. Check function for option 'versions' and 'newer-version-url'. > > Scenario 1: $versions is equals to virt-viewer version > 1.1 Prepare a running guest and configure console.vv file. > > # cat console.vv > [virt-viewer] > type=spice > host=127.0.0.1 > port=5900 > fullscreen=0 > versions=rhel7:2.0-3 > > 1.2 Use remote-viewer to connect vm. > # remote-viewer console.vv > > Result: Can connect to guest successfully. > > Scenario 2: $versions is less than virt-viewer version > > 2.1 Prepare a running guest and configure console.vv file. > > # cat console.vv > [virt-viewer] > type=spice > host=127.0.0.1 > port=5900 > fullscreen=0 > versions=rhel7:1.0-3 > > 2.2 Use remote-viewer to connect vm. > # remote-viewer console.vv > > Result: Can connect to guest successfully. > > Scenario 3: $versions is larger than virt-viewer version > > 3.1 Prepare a running guest and configure console.vv file. > > # cat console.vv > [virt-viewer] > type=spice > host=127.0.0.1 > port=5900 > fullscreen=0 > versions=rhel7:3.0-3 > > 3.2 Use remote-viewer to connect vm. > # remote-viewer console.vv > > Result: Failed to connect to guest, a error window pop up with > "At least Remote Viewer version 3.0-3 is required to setup this connection" > After click "OK" button, window closed with no error. > > 3.3 Add 'newer-version-url' option to connection file: > > # cat console.vv > [virt-viewer] > type=spice > host=127.0.0.1 > port=5900 > fullscreen=0 > versions=rhel7:3.0-3 > newer-version-url=http://download.devel.redhat.com/brewroot/packages/virt- > manager/1.1.0/10.el7/noarch/virt-install-1.1.0-10.el7.noarch.rpm > > 3.4 Rerun Step3.2 again. > # remote-viewer console.vv > > Result: Failed to connect to guest, a error window pop up with > "At least Remote Viewer version 3.0-3 is required to setup this connection, > see > http://download.devel.redhat.com/brewroot/packages/virt-manager/1.1.0/10.el7/ > noarch/virt-install-1.1.0-10.el7.noarch.rpm for details", after click "OK" > button, window closed with no error. > > Summary: > Hi teuf, can you help me check whether above steps is enough to verify this > bug, thanks. > > And i have another 2 question: > Q1: whether it check $osid is existing or not? > for example: > # cat console.vv > [virt-viewer] > type=spice > host=127.0.0.1 > port=5900 > fullscreen=0 > versions=rhel7777:2.0-3---->use rhel7777 > > # remote-viewer console.vv > > Result: Can connect to guest successfully. This is expected behaviour, if the osid of the binary (rhel7) is not found in the .vv file, and if there is no 'version' field, then the version checking is disabled, which is what is happening here. > > Q2: Shall we add a period '.' after error "for details" in Step3.4. I'm not sure other error messages have a '.' after the error, so we can probably keep this one this way too ? > > Q3: In fact, we just have virt-viewer pkg, so in "At least Remote Viewer > version 3.0-3", please take into consider, use "Virt Viewer" instead of > "Remote Viewer", i'm not sure about this one. Since the remote-viewer binary was started, and I think it's better to keep 'remote-viewer' here. Hi teuf, Thanks for your kind reply. And for Q2, i think we can keep in this way since i always checked other error message. So according to above comments, move this bug from ON_QA to VERIFIED. 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-2015-2211.html |