Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-145080

Fail to connect vsphere client via ipv6 if using ipv6 address of ESXi host in virsh command 

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • rhel-10.2
    • libvirt
    • None
    • None
    • None
    • 1
    • rhel-virt-core-libvirt-1
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Libvirt for next Sprint
    • None
    • Manual
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      Description of problem:
      Fail to connect vsphere client via ipv6 if using ipv6 address of ESXi host in virsh command 

      Version-Release number of selected component (if applicable):
      libvirt-libs-11.10.0-4.el10.x86_64

      How reproducible:
      100%

      Steps:
      1. Enable ipv6 address on ESXi host and vCenter server
      2. Connect vsphere client via ipv6 and using ipv6 address of ESXi host in virsh command 

      # virsh -c vpx://root@[2620:52:0:49d4:20c:29ff:fe86:a4bc]/data/cluster/[2620:52:0:49d4:ee2a:72ff:fe0a:7baa]/?no_verify=1  
      error: failed to connect to the hypervisor
      error: internal error: Unable to parse URI vpx://root@[2620:52:0:49d4:20c:29ff:fe86:a4bc]/data/cluster/[2620:52:0:49d4:ee2a:72ff:fe0a:7baa]/?no_verify=1
      # virsh -c vpx://root@[2620:52:0:49d4:20c:29ff:fe86:a4bc]/data/cluster/%5B2620:52:0:49d4:ee2a:72ff:fe0a:7baa%5D/?no_verify=1  
      Enter root's password for 2620:52:0:49d4:20c:29ff:fe86:a4bc: 
      error: failed to connect to the hypervisor
      error: internal error: Could not find host system specified in '/data/cluster/[2620:52:0:49d4:ee2a:72ff:fe0a:7baa]/'
      # virsh -c vpx://root@[2620:52:0:49d4:20c:29ff:fe86:a4bc]/data/cluster/2620:52:0:49d4:ee2a:72ff:fe0a:7baa/?no_verify=1  
      Enter root's password for 2620:52:0:49d4:20c:29ff:fe86:a4bc: 
      error: failed to connect to the hypervisor
      error: internal error: Could not find host system specified in '/data/cluster/2620:52:0:49d4:ee2a:72ff:fe0a:7baa/'

      Actual result:
      As above description

      Expect result:
      Fix the bug

      Additional info

      1. Can connect vsphere client via ipv6 if using ipv4 address of ESXi host in virsh command 

      # virsh -c vpx://root@[2620:52:0:49d4:20c:29ff:fe86:a4bc]/data/cluster/10.73.212.36/?no_verify=1  
      Enter root's password for 2620:52:0:49d4:20c:29ff:fe86:a4bc: 
      Welcome to virsh, the virtualization interactive terminal.
      Type:  'help' for help with commands
             'quit' to quit
      virsh # 
      

      2. Can connect ESXi host via ipv6 by virsh

      # virsh -c esx://root@[2620:52:0:49d4:ee2a:72ff:fe0a:7baa]/?no_verify=1
      Enter root's password for 2620:52:0:49d4:ee2a:72ff:fe0a:7baa: 
      Welcome to virsh, the virtualization interactive terminal.
      Type:  'help' for help with commands
             'quit' to quit
      virsh # 
      

      3. The bug can be reproduced on rhel10.1 with libvirt-libs-11.5.0-4.7.el10_1.x86_64

              rhn-eng-rjones Richard Jones
              mxie@redhat.com Ming Xie
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: