Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 785164

Summary: libvirt needs ipv6 support for ssh uris
Product: Red Hat Enterprise Linux 6 Reporter: Dave Allan <dallan>
Component: libvirtAssignee: Martin Kletzander <mkletzan>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.2CC: acathrow, berrange, crobinso, dallan, dyuan, eblake, jdenemar, jelledejong, mshao, mzhan, psj, rwu, tgummels, weizhan, whuang, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.9.10-3.el6 Doc Type: Bug Fix
Doc Text:
Cause libxml2 is parsing IPv6 URIs differently than expected Consequence IPv6 connections with ssh used invalid IPv6 address, connection didn't work Fix Parsed addresses were fixed internally in libvirt Result IPv6 connections work properly
Story Points: ---
Clone Of: 675991 Environment:
Last Closed: 2012-06-20 06:47:27 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:
Bug Depends On: 624626, 675991    
Bug Blocks: 787799    

Comment 3 Jiri Denemark 2012-02-09 10:33:56 UTC
BTW, there is an ancient bug 624626 reported against libxml2, which requests proper escaping of IPv6 address with '[' and ']' and removing those when parsing URIs. Having that fixed could save us from providing a wrapper for xmlParseURI.

Comment 4 Dave Allan 2012-02-10 21:07:37 UTC
Don't we have to deal with systems with the broken libxml2 anyway?

Comment 5 Dave Allan 2012-02-27 22:15:54 UTC
*** Bug 624626 has been marked as a duplicate of this bug. ***

Comment 9 xhu 2012-02-29 06:30:08 UTC
Verify it with libvirt-0.9.10-3.el6 and it passed.

The steps are as follows:
Prepare two machine: one client and one server
1. 
1.1 on client host
configure ipv6 global addr:
#ifconfig eth0 inet6 add 3ffe::101
1.2 on server host
configure ipv6 global addr
#ifconfig eth0 inet6 add 3ffe::102

2. 
on client host, execute remote access and issue the bellow command:
# virsh -c qemu+ssh://root@[3ffe::102]/system
root@3ffe::102's password: 
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh #

Comment 10 Martin Kletzander 2012-05-03 13:12:12 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
    libxml2 is parsing IPv6 URIs differently than expected
Consequence
    IPv6 connections with ssh used invalid IPv6 address, connection didn't work
Fix
    Parsed addresses were fixed internally in libvirt
Result
    IPv6 connections work properly

Comment 12 errata-xmlrpc 2012-06-20 06:47:27 UTC
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.

http://rhn.redhat.com/errata/RHSA-2012-0748.html