Bug 1145901

Summary: viewer connection to hypervisor got refused when http_proxy env variable is set
Product: [Fedora] Fedora Reporter: Nelson Chan <khchanel>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: berrange, crobinso, khchanel, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-13 19:08:27 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:
Attachments:
Description Flags
virt-viewer error message none

Description Nelson Chan 2014-09-24 05:41:12 UTC
Description of problem:

I have created a script to set http proxy system-wide:

#####
[nelson@nelson-pc ~]$ cat /etc/profile.d/http_proxy.sh 
export http_proxy=http://127.0.0.1:3128
#####


After that if i start virt-manager (with http_proxy being set)
And when i open a kvm guest on localhost, virt-viewer will not show the spice viewer. Error message is as follows

#####
Error: viewer connection to hypervisor host got refused or disconnected!
#####


However if i start a terminal,  unset http_proxy, and then start virt-manager from command, the error does not happen.


Version-Release number of selected component (if applicable):
virt-manager-common-1.1.0-2.git30db9ece2.fc20.noarch
virt-viewer-0.6.0-1.fc20.x86_64


How reproducible:

Steps to Reproduce:
1. set http_proxy environment variable
2. start virt-manager and open a kvm guest (spice) locally
3. virt-viewer is opened

Actual results:
virt-viewer shows the error message. As shown in attached screenshot

Expected results:
virt-viewer display guest screen normally


Additional info:

Comment 1 Nelson Chan 2014-09-24 05:42:02 UTC
Created attachment 940675 [details]
virt-viewer error message

Comment 2 Cole Robinson 2015-03-25 12:06:31 UTC
Thanks for the report, but I can't reproduce. Can you provide:

- virt-manager --debug output when reproducing
- sudo virsh dumpxml $vmname for a VM that triggers this issue

Comment 3 Cole Robinson 2015-04-13 19:08:27 UTC
Closing as INSUFFICIENT_DATA but if anyone can still reproduce, please reopen with the info requested in comment #2