Bug 1402909
Summary: | Spice connection through ovirt:// fails when engine uses externally issued certificate | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | David Jaša <djasa> | |
Component: | libgovirt | Assignee: | Eduardo Lima (Etrunko) <elima> | |
Status: | CLOSED ERRATA | QA Contact: | SPICE QE bug list <spice-qe-bugs> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.2 | CC: | dblechte, elima, rduda, tpelka, victortoso | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1792231 (view as bug list) | Environment: | ||
Last Closed: | 2020-03-31 20:09:14 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: | 1403161 | |||
Bug Blocks: | 1792231 |
Description
David Jaša
2016-12-08 15:42:49 UTC
Tried to improve this, hit this ovirt bug: https://bugzilla.redhat.com/show_bug.cgi?id=1403161 I believe virt-viewer would need something like diff --git a/src/remote-viewer.c b/src/remote-viewer.c index 6d29bf2..e029e4c 100644 --- a/src/remote-viewer.c +++ b/src/remote-viewer.c @@ -969,7 +969,14 @@ create_ovirt_session(VirtViewerApp *app, const char *uri, GError **err) "cert-subject", host_subject, "proxy", proxy_url, NULL); - g_object_get(G_OBJECT(proxy), "ca-cert", &ca_cert, NULL); + g_object_get(G_OBJECT(display), "ca-cert", &ca_cert, NULL); + g_warning("OvirtVmDisplay::ca-cert %p", ca_cert); + if (ca_cert == NULL) { + g_object_get(G_OBJECT(proxy), "ca-cert", &ca_cert, NULL); + g_object_set(G_OBJECT(session), + "ca", ca_cert, + NULL); + } if (ca_cert != NULL) { g_object_set(G_OBJECT(session), "ca", ca_cert, but I've been unable to test this. Moving to 7.6 Bug 1403161 is fixed with ovirt-engine-4.3.2.1 Patch submitted for review. Requires changes in libgovirt as well. https://www.redhat.com/archives/virt-tools-list/2019-October/msg00007.html 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://access.redhat.com/errata/RHBA-2020:1170 |