Bug 1292765

Summary: Add support for proxy-url libgovirt property
Product: Red Hat Enterprise Linux 6 Reporter: Christophe Fergeau <cfergeau>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.7CC: cfergeau, dblechte, fidencio, juzhou, mxie, mzhan, rbalakri, tpelka, tzheng, virt-bugs, virt-viewer-maint, xiaodwan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-2.0-9.el6 Doc Type: Bug Fix
Doc Text:
Cause: remote-viewer did not take into account proxy information returned through RHEV REST API Consequence: when using ovirt:// , it was not possible to connect to VMs behind a proxy Fix: get proxy information from RHEV REST API Result: it's possible to connect to VMs behind a proxy when using ovirt:// URIs
Story Points: ---
Clone Of: 1292761 Environment:
Last Closed: 2016-05-10 21:20: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: 1292754    
Bug Blocks:    
Attachments:
Description Flags
logs for "G_MESSAGES_DEBUG=all remote-viewer --spice-debug console.vv"
none
debugging log none

Description Christophe Fergeau 2015-12-18 10:00:53 UTC
+++ This bug was initially created as a clone of Bug #1292761 +++

https://git.fedorahosted.org/cgit/virt-viewer.git/commit/?id=f9577b9197b737be722cfd5632b6077ce6b041ff

Without this commit, foreign menu will not work when the oVirt VM is behind a firewall.

Comment 6 Xiaodai Wang 2016-01-05 13:16:31 UTC
Created attachment 1111838 [details]
logs for "G_MESSAGES_DEBUG=all remote-viewer --spice-debug console.vv"

Comment 10 Xiaodai Wang 2016-01-06 10:43:46 UTC
Created attachment 1112087 [details]
debugging log

Comment 15 Christophe Fergeau 2016-01-07 13:58:46 UTC
I made the same confusion as usual, 'proxy-url' will be used when accessing the VM through ovirt://
Setup:
- the ovirt portal can be accessed without a proxy (I'm not sure how to tell libgovirt to use a proxy, maybe it can use the http_proxy environment variable)
- the VM must only be accessible through a proxy
- run remote-viewer ovirt://rhev-portal.example.com/vm-name

expected result: remote-viewer should access the VM named 'vm-name' using the proxy

Comment 16 Xiaodai Wang 2016-01-11 11:04:34 UTC
I can reproduce it.
# rpm -q libgovirt virt-viewer
libgovirt-0.3.2-2.el6.x86_64
virt-viewer-2.0-8.el6.x86_64

Steps:
1. Setup an env and make sure you can connect to ovirt directly but can't connect to vm directly.
2. configure a proxy, make sure you can connect to vm by the proxy.
3. get the ca.crt file from ovirt.
# wget https://ibm-x3250m5-03.qe.lab.eng.nay.redhat.com/ca.crt
4. connect the vm by ovirt.
# remote-viewer --ovirt-ca-file=ca.crt ovirt://ibm-x3250m5-03.qe.lab.eng.nay.redhat.com/$vm

Result:
Can see remote-viewer window pops up and "change cd" menu displays but connect to the vm fail.

Updated virt-viewer to version virt-viewer-2.0-12.el6.x86_64 and verified it again.

can see the foreign menu and can connect to the vm successfully.

So move the bug to verified.

Comment 18 errata-xmlrpc 2016-05-10 21:20:45 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-2016-0832.html