Bug 1108524
| Summary: | virt-viewer -c qemu+tcp will open local guest when remote VM is only listening on 127.0.0.1 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | tingting zheng <tzheng> |
| Component: | virt-viewer | Assignee: | Virt Viewer Maint <virt-viewer-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.1 | CC: | cfergeau, codong, dblechte, dyuan, jjongsma, juzhou, marcandre.lureau, mzhan, rbalakri |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | virt-viewer-0.6.0-5.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1108523 | Environment: | |
| Last Closed: | 2015-03-05 13:39:09 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: | 1108523 | ||
| Bug Blocks: | 1085216 | ||
|
Description
tingting zheng
2014-06-12 08:01:21 UTC
*** Bug 1084393 has been marked as a duplicate of this bug. *** Test with:
virt-viewer-0.6.0-5.el7.x86_64
Steps:
Same with description.
In step 2, change the listen address from 127.0.0.1 to 0
# virsh dumpxml $vm
<graphics type='spice' port='5900' autoport='yes' listen='0'>
<listen type='address' address='0'/>
</graphics>
Result:
Step4, virt-viewer will open the guest on host B.
It should open the guest on host A.
If I try what you describe with listen='0', I get an error message that this host is unknown. If I use 0.0.0.0, things work as expected. (In reply to Christophe Fergeau from comment #5) > If I try what you describe with listen='0', I get an error message that this > host is unknown. If I use 0.0.0.0, things work as expected. I think you get the same problem with this one: https://bugzilla.redhat.com/show_bug.cgi?id=1143907 You can downgrade glib2 and retest it. What matters is what happens with a glib as close as possible to the one which will be released with 7.1, so I'd tend to stick with the latest one. 0 and 0.0.0.0 should be the same if I'm not mistaken, so if glib is fixed, we should get the same behaviour as with 0.0.0.0, which was working as I expect in my tests. I can reproduce with: virt-viewer-0.6.0-4.el7.x86_64.rpm Test with virt-viewer-0.6.0-5.el7.x86_64.rpm and virt-viewer-0.6.0-6.el7.x86_64.rpm. Steps are same with description. Result: If listen address is "127.0.0.1", cannot the guest with error: Guest is not reachable If listen address is "0.0.0.0", can connect the guest If listen address is "0", cannot the guest with error: fail to connect Error resolving '0': Name or service not known As the result and comment 7, move to VERIFIED 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-2015-0295.html |