Bug 711372

Summary: Connecting to Citrix Xen with invalid SSL gives unhelpful error message
Product: [Community] Virtualization Tools Reporter: Matthew Booth <mbooth>
Component: libvirtAssignee: Matthew Booth <mbooth>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, dallan, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-10 11:15:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Booth 2011-06-07 10:20:02 UTC
Description of problem:
Attempting to connect to a Citrix Xen server which has a self-signed certificate gives the following:

virsh -c XenAPI://citrix-xen.example.com/
Enter username for citrix-xen.example.com: root
Enter root's password for citrix-xen.example.com: 
error: authentication failed: (null)
error: failed to connect to the hypervisor

Note that:
1. There is no indication in the above that the failure relates to SSL. In fact, it specifically points at an authentication failure.
2. Citrix Xen installs with a self-signed certificate by default.

Version-Release number of selected component (if applicable):
492e493a1e6f31551583bb7de9500c312b716f42

Comment 1 Matthew Booth 2011-06-07 11:05:14 UTC
Patch posted upstream:
https://www.redhat.com/archives/libvir-list/2011-June/msg00314.html

This improves the output to:

virsh -c XenAPI://citrix-xen.example.com/
Enter username for citrix-xen.example.com: root
Enter root's password for citrix-xen.example.com: 
error: authentication failed: TRANSPORT_FAULT
error: failed to connect to the hypervisor

Comment 2 Matthew Booth 2011-06-10 11:15:00 UTC
This has now been pushed.