Bug 1325762 - A warning "Could not set SSL credentials from '/tmp/govirt-ca-D7WSFY.crt'" occurs and cannot see the foreign menu on remote-viewer window
Summary: A warning "Could not set SSL credentials from '/tmp/govirt-ca-D7WSFY.crt'" oc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libgovirt
Version: 6.8
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Christophe Fergeau
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-11 06:53 UTC by Xiaodai Wang
Modified: 2017-03-21 09:18 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-21 09:18:37 UTC
Target Upstream Version:


Attachments (Terms of Use)
REST_PROXY=debug and spice-debug (36.10 KB, text/plain)
2016-12-08 16:01 UTC, Radek Duda
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0587 0 normal SHIPPED_LIVE libgovirt, rest, spice-gtk, and virt-viewer bug fix and enhancement update 2017-03-21 12:24:45 UTC

Description Xiaodai Wang 2016-04-11 06:53:49 UTC
Description of problem:
A warning "Could not set SSL credentials from '/tmp/govirt-ca-D7WSFY.crt'" occurs and cannot see the foreign menu on remote-viewer window 

Version-Release number of selected component (if applicable):
# rpm -q libgovirt virt-viewer
libgovirt-0.3.2-2.el6.x86_64
virt-viewer-2.0-14.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Make sure there is an iso domain and an ISO image in the domain on RHEVM and Prepare a guest on RHEVM.
2. Run below command to get and trust the ca.crt file.
# wget http://$RHEVM_HOST_NAME/ca.crt
# cat ca.crt >>/etc/pki/tls/certs/ca-bundle.crt
# update-ca-trust

3. Download the console.vv file of the guest.
4. Run "remote-viewer console.vv".

Actual results:
(remote-viewer:6472): libsoup-WARNING **: Could not set SSL credentials from '/tmp/govirt-ca-D7WSFY.crt': Failed to open file '/tmp/govirt-ca-D7WSFY.crt': No such file or director

Expected results:
The "change CD" menu should be seen on remote-viewer window and can connect to the guest successfully.

Additional info:

Comment 2 Christophe Fergeau 2016-04-11 07:20:59 UTC
This is fixed upstream by https://git.gnome.org/browse/libgovirt/commit/?id=9f3fde7b2f40346ca8572803fe574d7de6060695
Imo we should fix this in 6.8 if possible.

Comment 3 Christophe Fergeau 2016-07-26 13:18:19 UTC
There seems to have one remaining problem with --ovirt-ca-file even with this patch applied.

Comment 6 Radek Duda 2016-12-08 16:00:20 UTC
I reproduced this bug with packages from comment #1:
1. put ovirt and spice ca files to ca-bundle
2. updated ca trust
3. connected to rhevm3.6 (rhel7.3 guest) via console.vv file

then I installed newest
libgovirt-0.3.2-3
virt-viewer-2.0-17

Message is gone, but no foreign menu appears.

if I connect via ovirt (remote-viewer ovirt://$username%40$domain@$rhevserver/$vm), then foreign menu is displayed.

Attaching spice-debug

Comment 7 Radek Duda 2016-12-08 16:01:13 UTC
Created attachment 1229532 [details]
REST_PROXY=debug and spice-debug

Comment 8 Christophe Fergeau 2016-12-09 14:19:39 UTC
I see you tested on rhevm36.spice.brq.redhat.com , in order to get things to work on this one, I need to remove the last line in the .vv  file (ca=... line in the [ovirt] section). I don't have access to a setup where REST CA is the same as SPICE CA in order to make sure this other case works too.

Comment 12 errata-xmlrpc 2017-03-21 09:18:37 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


Note You need to log in before you can comment on or make changes to this bug.