Bug 1145901 - viewer connection to hypervisor got refused when http_proxy env variable is set
Summary: viewer connection to hypervisor got refused when http_proxy env variable is set
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-24 05:41 UTC by Nelson Chan
Modified: 2015-04-13 19:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-13 19:08:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
virt-viewer error message (16.03 KB, image/png)
2014-09-24 05:42 UTC, Nelson Chan
no flags Details

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


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