Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1140870

Summary: RFE: provide connection failure reason in the error dialog
Product: Red Hat Enterprise Linux 7 Reporter: Jonathon Jongsma <jjongsma>
Component: spice-gtkAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: cfergeau, codong, dblechte, desktop-qa-list, djasa, dyuan, juzhou, lcui, marcandre.lureau, mkrcmari, mzhan, rbalakri, tpelka, tzheng, virt-bugs
Target Milestone: rcKeywords: FutureFeature, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1115986 Environment:
Last Closed: 2014-09-17 15:14:51 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:    
Bug Blocks: 1115986    

Description Jonathon Jongsma 2014-09-11 21:49:14 UTC
+++ This bug was initially created as a clone of Bug #1115986 +++

Description of problem:
When connection to spice-server fails, user is presented with unified error message "Unable to connect to the graphic server SPICE_URI". It would be nice to display the actual connection failure that spice-gtk gives, such as:
$ SPICE_PROXY=nonsense remote-viewer spice://localhost:5900/
(remote-viewer:2006): GSpice-WARNING **: Error resolving 'nonsense': Name or service not known

Version-Release number of selected component (if applicable):
virt-viewer-0.5.7-7.el7.x86_64
spice-gtk3-0.20-8.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. run remote-viewer in a way that r-v will fail to connect
2.
3.

Actual results:
only generic message is presented to user in error dialog

Expected results:
a detailed error message from spice-gtk library is given to the user

Additional info:
spice-gtk error messages would appreciate some love as well in order to be useful to point to original connection failure but that might be another step after virt-viewer/remote-viewer displays stuff that is already available

--- Additional comment from Marc-Andre Lureau on 2014-07-03 12:49:40 EDT ---

posted: http://lists.freedesktop.org/archives/spice-devel/2014-July/017033.html

--- Additional comment from Marc-Andre Lureau on 2014-07-03 12:51:37 EDT ---

and also: https://www.redhat.com/archives/virt-tools-list/2014-July/msg00031.html

Comment 1 Jonathon Jongsma 2014-09-11 21:52:41 UTC
In order to implement this feature in virt-viewer, we need to also backport some patches for spice-gtk (in particular, spice_channel_get_error(), which is not present in spice-gtk 0.22)

3edcc04f20b8e2360a05e16c337b26404f636081
556ebfe949415b217104b51077da0b95da7726c4

Comment 2 Jonathon Jongsma 2014-09-12 16:14:28 UTC
Oops, overlooked bug #1116048

*** This bug has been marked as a duplicate of bug 1116048 ***

Comment 3 Jonathon Jongsma 2014-09-12 17:06:46 UTC
ignore duplicate above, that bug is more limited. This bug is about backporting the spice_channel_get_error() API to 7.1

Comment 6 Jonathon Jongsma 2014-09-17 15:14:51 UTC
we've decided that this should go under bug 1116048 after all

*** This bug has been marked as a duplicate of bug 1116048 ***