Bug 1201604

Summary: remote-viewer cannot quit normally when try to connect to ovirt URI by click Cancle button
Product: Red Hat Enterprise Linux 6 Reporter: CongDong <codong>
Component: libgovirtAssignee: Christophe Fergeau <cfergeau>
Status: CLOSED ERRATA QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 6.7CC: cfergeau, dblechte, djasa, elima, fidencio, juzhou, mzhan, pgrunt, rbalakri, tpelka, tzheng, xiaodwan
Target Milestone: rc   
Target Release: 6.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libgovirt-0.3.2-3.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1289497 1318575 (view as bug list) Environment:
Last Closed: 2017-03-21 09:15:24 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: 1289497    
Bug Blocks: 1318575, 1374430    

Description CongDong 2015-03-13 03:16:43 UTC
Description of problem:
use remote-viewer try to connect ovirt URI, if click "Cancle" button, remote-viewer cannot quit normally

Version-Release number of selected component (if applicable):
virt-viewer-2.0-3.el6.x86_64
libgovirt-0.3.2-1.el6.x86_64

How reproducible:
100

Steps to Reproduce:
1. Prepare rhevm env and a rhel6 guest
2. wget http://rhevm.addr/ca.crt
3. remote-viewer --ovirt-ca-file=ca.crt ovirt://rhevm.addr/guest
(remote-viewer:27104): libgovirt-WARNING **: Passing a full http:// or https:// URI to ovirt_proxy_new() is deprecated

(remote-viewer:27104): libgovirt-WARNING **: Passing an URI ending in /api to ovirt_proxy_new() is deprecated
4. auth dialog comes out, then click cancle button
5. # echo $?


Actual results:
Step 4, get an error dialog:
"Couldn't open oVirt session: Unauthorized"

(remote-viewer:27158): libsoup-CRITICAL **: soup_auth_authenticate: assertion `username != NULL' failed

(remote-viewer:27158): libgovirt-WARNING **: Error while getting collection: Unauthorized
Step5. 
# echo $?
1

Expected results:
remote-viewer should quit without error

Additional info:

Comment 6 Christophe Fergeau 2015-12-08 10:19:43 UTC
(In reply to Pavel Grunt from comment #3)
> Relevant upstream commit:
> https://git.fedorahosted.org/cgit/virt-viewer.git/commit/
> ?id=1bcd8d0fe6df553f087d11b539a59e128a2a350b
> 
> Final patch will be based on the review of librest patch:
> https://bugzilla.gnome.org/show_bug.cgi?id=746537 and libgovirt patch:
> https://bugzilla.gnome.org/show_bug.cgi?id=746539 
> 
> or it can be workaround by
> https://www.redhat.com/archives/virt-tools-list/2015-March/msg00119.html

Moving this to libgovirt as it's better to go with the upstream libgovirt/librest patches rather than the virt-viewer workaround.

Comment 11 Christophe Fergeau 2016-03-17 09:29:03 UTC
The librest bug blocked by this one hasn't been fixed, and we do need this patch in virt-viewer actually
https://git.fedorahosted.org/cgit/virt-viewer.git/commit/?id=0443bd113f8474ca707c7847e2806a6e374e8a21

Comment 12 David Blechter 2016-04-06 15:06:39 UTC
based on dependency tree moving to the next release

Comment 19 errata-xmlrpc 2017-03-21 09:15:24 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