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

virt-who can not establish the connection for the hypervisors with the IPV6 only Satellite server

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-8.9.0
    • virt-who
    • None
    • None
    • Moderate
    • subs-client-tools
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • None
    • None
    • Known Issue
    • Hide
      .`virt-who` is not supported on IPv6 networks in Satellite

      Satellite does not support the `virt-who` agent in an IPv6 network.

      No known workaround exists.
      Show
      .`virt-who` is not supported on IPv6 networks in Satellite Satellite does not support the `virt-who` agent in an IPv6 network. No known workaround exists.
    • Done
    • None

      Description of problem:

      virt-who can not establish the connection for the hypervisors with the IPV6 only Satellite server. it displays the error: "2024-06-04 06:55:26,320 [virtwho.main ERROR] MainProcess(38944):Thread-2 @virt.py:run:416 - Thread 'virt-who-config-1' fails with error: Unable to connect to Hyper-V server: HTTPConnectionPool(host='10.73.3.172', port=5985): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2c1f362ef0>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
      "

      Version-Release number of selected component (if applicable):

      Satellite version : Satellite 6.15.1 snapshot 1.0

      virt-who: virt-who-1.30.16-1.el8.noarch

      How reproducible:

      100%

       

      Steps to Reproduce:

      1.  **  register hypervisor guest to Ipv6 only support Satellite 6 server

      [root@bootp-73-3-166 ~]#  rpm -ivh http://host-2620-52-0-9f-f816-3eff-fe2c-dd12.vms.sat.rdu2.redhat.com/pub/katello-ca-consumer-latest.noarch.rpm
      Retrieving http://host-2620-52-0-9f-f816-3eff-fe2c-dd12.vms.sat.rdu2.redhat.com/pub/katello-ca-consumer-latest.noarch.rpm
      Verifying...                          ################################# [100%]
      Preparing...                          ################################# [100%]
      Updating / installing...
         1:katello-ca-consumer-host-2620-52-################################# [100%]
      [root@bootp-73-3-166 ~]# subscription-manager  register
      Registering to: host-2620-52-0-9f-f816-3eff-fe2c-dd12.vms.sat.rdu2.redhat.com:443/rhsm
      Username: admin
      Password: 
      The system has been registered with ID: 3f9ca245-8d0c-4df9-92e6-842eddf83860
      The registered system name is: bootp-73-3-166.eng.pek2.redhat.com 

      Check Satellite IPV6 server ip

      [root@host-2620-52-0-9f-f816-3eff-fe2c-dd12 virt-who.d]# ifconfig
      eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
              inet6 fe80::f816:3eff:fe2c:dd12  prefixlen 64  scopeid 0x20<link>
              inet6 2620:52:0:9f:f816:3eff:fe2c:dd12  prefixlen 64  scopeid 0x0<global>
              ether fa:16:3e:2c:dd:12  txqueuelen 1000  (Ethernet)
              RX packets 384077  bytes 43234124 (41.2 MiB)
              RX errors 0  dropped 0  overruns 0  frame 0
              TX packets 21791  bytes 25810221 (24.6 MiB)
              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
              inet 127.0.0.1  netmask 255.0.0.0
              inet6 ::1  prefixlen 128  scopeid 0x10<host>
              loop  txqueuelen 1000  (Local Loopback)
              RX packets 11426949  bytes 1828572150 (1.7 GiB)
              RX errors 0  dropped 0  overruns 0  frame 0
              TX packets 11426949  bytes 1828572150 (1.7 GiB)
              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0 

      2.  Set proxy in satellite server

      infra-ipv64-proxy.infra.sat.rdu2.redhat.com:3128

      vi /etc/rhsm/rhsm.conf
      # an http proxy server to use
      proxy_hostname = infra-ipv64-proxy.infra.sat.rdu2.redhat.com# The scheme to use for the proxy when updating repo definitions, if needed
      # e.g. http or https
      proxy_scheme = http# port for http proxy server
      proxy_port = 3128
       

      Set http proxy on Satellite server UI 

      ipv6proxy     http://infra-ipv64-proxy.infra.sat.rdu2.redhat.com:3128

       

      3. create virt-who config with http_proxy

      [root@host-2620-52-0-9f-f816-3eff-fe2c-dd12 virt-who.d]# cat virt-who-config-1.conf 
      ### This configuration file is managed via the virt-who configure plugin
      ### manual edits will be deleted.
      [virt-who-config-1]
      type=hyperv
      hypervisor_id=hostname
      owner=Default_Organizationserver=10.73.3.172
      username=administrator
      encrypted_password=XXXXXXXXXXXXXXXXXXXXX
      rhsm_hostname=host-2620-52-0-9f-f816-3eff-fe2c-dd12.vms.sat.rdu2.redhat.com
      rhsm_username=virt_who_reporter_1
      rhsm_encrypted_password=2d98d2ba9473dc5f2d15df9f343264ad86017c4efbd323f10a47be95bf48c2fc
      rhsm_prefix=/rhsm
       
      ### This configuration file is managed via the virt-who configure plugin
      ### manual edits will be deleted.
      [global]
      debug=1
      interval=7200
      oneshot=False
      
      [system_environment]
      http_proxy=http://infra-ipv64-proxy.infra.sat.rdu2.redhat.com:3128
       

       

      4. run virt-who -od

      [root@host-2620-52-0-9f-f816-3eff-fe2c-dd12 virt-who.d]# virt-who -od
      2024-06-04 20:53:21,490 [virtwho.parser WARNING] MainProcess(46358):MainThread @parser.py:read_config_env_variables:237 - The use of environment variables and the use of the sysconfig file to configure virt-who are deprecated. Their use will be ignored in the next major release.
      2024-06-04 20:53:21,490 [virtwho.config DEBUG] MainProcess(46358):MainThread @config.py:parse_system_environment:1468 - Environment variables added from the [system_environment] section of the general configuration file: http_proxy
      2024-06-04 20:53:21,522 [virtwho.rhsm_log DEBUG] MainProcess(46358):MainThread @config.py:init_config:1594 - [global]: Value for "print_" not set, using default: False
      2024-06-04 20:53:21,522 [virtwho.rhsm_log DEBUG] MainProcess(46358):MainThread @config.py:init_config:1594 - [global]: Value for "log_per_config" not set, using default: False
      2024-06-04 20:53:21,522 [virtwho.rhsm_log DEBUG] MainProcess(46358):MainThread @config.py:init_config:1594 - [global]: Value for "configs" not set, using default: []
      2024-06-04 20:53:21,522 [virtwho.rhsm_log DEBUG] MainProcess(46358):MainThread @config.py:init_config:1594 - [global]: Value for "reporter_id" not set, using default: host-2620-52-0-9f-f816-3eff-fe2c-dd12.vms.sat.rdu2.redhat.com-5f4ed451384409e8334c52db09a3453f
      2024-06-04 20:53:21,522 [virtwho.rhsm_log DEBUG] MainProcess(46358):MainThread @config.py:init_config:1594 - [global]: Value for "log_file" not set, using default: rhsm.log
      2024-06-04 20:53:21,522 [virtwho.rhsm_log DEBUG] MainProcess(46358):MainThread @config.py:init_config:1594 - [global]: Value for "log_dir" not set, using default: /var/log/rhsm
      2024-06-04 20:53:21,522 [virtwho.rhsm_log INFO] MainProcess(46358):MainThread @config.py:init_config:1594 - [virt-who-config-1]: The original server URL was incomplete. It has been enhanced to http://10.73.3.172:5985/wsman
      2024-06-04 20:53:21,522 [virtwho.rhsm_log INFO] MainProcess(46358):MainThread @executor.py:__init__:54 - Using config named 'virt-who-config-1'
      2024-06-04 20:53:21,523 [virtwho.rhsm_log INFO] MainProcess(46358):MainThread @main.py:main:176 - Using configuration "virt-who-config-1" ("hyperv" mode)
      2024-06-04 20:53:21,523 [virtwho.rhsm_log INFO] MainProcess(46358):MainThread @main.py:main:178 - Using reporter_id='host-2620-52-0-9f-f816-3eff-fe2c-dd12.vms.sat.rdu2.redhat.com-5f4ed451384409e8334c52db09a3453f'
      2024-06-04 20:53:21,530 [rhsm.https DEBUG] MainProcess(46358):MainThread @https.py:<module>:56 - Using standard libs to provide httplib and ssl
      2024-06-04 20:53:21,551 [virtwho.main DEBUG] MainProcess(46358):Thread-2 @virt.py:run:407 - Thread 'virt-who-config-1' started
      2024-06-04 20:53:21,555 [virtwho.main ERROR] MainProcess(46358):Thread-2 @virt.py:run:416 - Thread 'virt-who-config-1' fails with error: Unable to connect to Hyper-V server: HTTPConnectionPool(host='10.73.3.172', port=5985): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3e2148080>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
      2024-06-04 20:53:21,555 [virtwho.main INFO] MainProcess(46358):Thread-2 @virt.py:_send_data:986 - Report for config "virt-who-config-1" gathered, placing in datastore
      2024-06-04 20:53:21,556 [virtwho.main DEBUG] MainProcess(46358):Thread-2 @virt.py:run:435 - Thread 'virt-who-config-1' stopped after running once
      2024-06-04 20:53:22,554 [virtwho.destination_-7675926090694098878 DEBUG] MainProcess(46358):Thread-3 @virt.py:run:407 - Thread 'destination_-7675926090694098878' started
      2024-06-04 20:53:22,554 [virtwho.destination_-7675926090694098878 DEBUG] MainProcess(46358):Thread-3 @subscriptionmanager.py:_connect:148 - Authenticating with RHSM username virt_who_reporter_1
      2024-06-04 20:53:22,554 [virtwho.destination_-7675926090694098878 INFO] MainProcess(46358):Thread-3 @subscriptionmanager.py:_connect:159 - X-Correlation-ID: 4116b98979e241e59ba5bfeef6b2f2ca
      2024-06-04 20:53:22,554 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:__init__:211 - Environment variable NO_PROXY= will be used
      2024-06-04 20:53:22,556 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:__init__:310 - Connection built: http_proxy=infra-ipv64-proxy.infra.sat.rdu2.redhat.com:3128 host=host-2620-52-0-9f-f816-3eff-fe2c-dd12.vms.sat.rdu2.redhat.com port=443 handler=/rhsm auth=basic username=virt_who_reporter_1
      2024-06-04 20:53:22,557 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_request:779 - Making request: GET /rhsm/status/
      2024-06-04 20:53:22,557 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_create_connection:650 - Using proxy: infra-ipv64-proxy.infra.sat.rdu2.redhat.com:3128
      2024-06-04 20:53:22,609 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_update_smoothed_response_time:884 - Response time: 0.018711566925048828, Smoothed response time: 0.018711566925048828
      2024-06-04 20:53:22,609 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_request:861 - Response: status=200, request="GET /rhsm/status/"
      2024-06-04 20:53:22,610 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_request:779 - Making request: GET /rhsm/status
      2024-06-04 20:53:22,610 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_create_connection:650 - Using proxy: infra-ipv64-proxy.infra.sat.rdu2.redhat.com:3128
      2024-06-04 20:53:22,648 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_update_smoothed_response_time:884 - Response time: 0.007441043853759766, Smoothed response time: 0.017584514617919923
      2024-06-04 20:53:22,648 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_request:861 - Response: status=200, request="GET /rhsm/status"
      2024-06-04 20:53:22,648 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_load_manager_capabilities:1112 - Server has the following capabilities: ['instance_multiplier', 'derived_product', 'vcpu', 'cert_v3', 'hypervisors_heartbeat', 'remove_by_pool_id', 'syspurpose', 'storage_band', 'cores', 'multi_environment', 'hypervisors_async', 'org_level_content_access', 'guest_limit', 'ram', 'batch_bind', 'combined_reporting']
      2024-06-04 20:53:22,649 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_request:779 - Making request: PUT /rhsm/hypervisors/Default_Organization/heartbeat?reporter_id=host-2620-52-0-9f-f816-3eff-fe2c-dd12.vms.sat.rdu2.redhat.com-5f4ed451384409e8334c52db09a3453f
      2024-06-04 20:53:22,649 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_create_connection:650 - Using proxy: infra-ipv64-proxy.infra.sat.rdu2.redhat.com:3128
      2024-06-04 20:53:22,815 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_update_smoothed_response_time:884 - Response time: 0.007311344146728516, Smoothed response time: 0.016557197570800784
      2024-06-04 20:53:22,815 [rhsm.connection DEBUG] MainProcess(46358):Thread-3 @connection.py:_request:861 - Response: status=200, request="PUT /rhsm/hypervisors/Default_Organization/heartbeat?reporter_id=host-2620-52-0-9f-f816-3eff-fe2c-dd12.vms.sat.rdu2.redhat.com-5f4ed451384409e8334c52db09a3453f"
      2024-06-04 20:53:22,815 [virtwho.destination_-7675926090694098878 DEBUG] MainProcess(46358):Thread-3 @virt.py:_send_data:666 - ErrorReport received for source: virt-who-config-1
      2024-06-04 20:53:22,816 [virtwho.destination_-7675926090694098878 DEBUG] MainProcess(46358):Thread-3 @virt.py:_send_data:761 - At least one report for each connected source has been sent. Terminating.
      2024-06-04 20:53:22,816 [virtwho.destination_-7675926090694098878 DEBUG] MainProcess(46358):Thread-3 @virt.py:run:426 - Thread 'destination_-7675926090694098878' terminated
      2024-06-04 20:53:23,556 [virtwho.main DEBUG] MainProcess(46358):MainThread @__main__.py:main:25 - virt-who terminated
      2024-06-04 20:53:23,556 [virtwho.main DEBUG] MainProcess(46358):MainThread @main.py:exit:253 - None
      2024-06-04 20:53:23,556 [virtwho.main DEBUG] MainProcess(46358):MainThread @executor.py:terminate:225 - virt-who is shutting down
       

      5. when install virt-who packages on a rhel 9.4 with ipv4 and ipv6 support,can successfully get the hyperviors host and guest info and push to satellite server

      [root@sheep-45 virt-who.d]# virt-who -od
      2024-06-04 03:22:27,956 [virtwho.rhsm_log DEBUG] MainProcess(17366):MainThread @config.py:init_config:1582 - [global]: Value for "status" not set, using default: False
      2024-06-04 03:22:27,957 [virtwho.rhsm_log DEBUG] MainProcess(17366):MainThread @config.py:init_config:1582 - [global]: Value for "json" not set, using default: False
      2024-06-04 03:22:27,957 [virtwho.rhsm_log DEBUG] MainProcess(17366):MainThread @config.py:init_config:1582 - [global]: Value for "print_" not set, using default: False
      2024-06-04 03:22:27,957 [virtwho.rhsm_log DEBUG] MainProcess(17366):MainThread @config.py:init_config:1582 - [global]: Value for "log_per_config" not set, using default: False
      2024-06-04 03:22:27,957 [virtwho.rhsm_log DEBUG] MainProcess(17366):MainThread @config.py:init_config:1582 - [global]: Value for "configs" not set, using default: []
      2024-06-04 03:22:27,957 [virtwho.rhsm_log DEBUG] MainProcess(17366):MainThread @config.py:init_config:1582 - [global]: Value for "reporter_id" not set, using default: sheep-45.lab.eng.brq2.redhat.com-4b686e8dc2bb412a9d26c0bb03b84fb2
      2024-06-04 03:22:27,957 [virtwho.rhsm_log DEBUG] MainProcess(17366):MainThread @config.py:init_config:1582 - [global]: Value for "interval" not set, using default: 3600
      2024-06-04 03:22:27,957 [virtwho.rhsm_log DEBUG] MainProcess(17366):MainThread @config.py:init_config:1582 - [global]: Value for "log_file" not set, using default: rhsm.log
      2024-06-04 03:22:27,958 [virtwho.rhsm_log DEBUG] MainProcess(17366):MainThread @config.py:init_config:1582 - [global]: Value for "log_dir" not set, using default: /var/log/rhsm
      2024-06-04 03:22:27,958 [virtwho.rhsm_log INFO] MainProcess(17366):MainThread @config.py:init_config:1582 - [virt-who-config-1]: The original server URL was incomplete. It has been enhanced to http://10.73.3.172:5985/wsman
      2024-06-04 03:22:27,958 [virtwho.rhsm_log INFO] MainProcess(17366):MainThread @executor.py:__init__:52 - Using config named 'virt-who-config-1'
      2024-06-04 03:22:27,958 [virtwho.rhsm_log INFO] MainProcess(17366):MainThread @main.py:main:136 - Using configuration "virt-who-config-1" ("hyperv" mode)
      2024-06-04 03:22:27,958 [virtwho.rhsm_log INFO] MainProcess(17366):MainThread @main.py:main:139 - Using reporter_id='sheep-45.lab.eng.brq2.redhat.com-4b686e8dc2bb412a9d26c0bb03b84fb2'
      2024-06-04 03:22:27,975 [rhsm.https DEBUG] MainProcess(17366):MainThread @https.py:<module>:57 - Using standard libs to provide httplib and ssl
      2024-06-04 03:22:27,989 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @virt.py:run:513 - Thread 'virt-who-config-1' started
      2024-06-04 03:22:27,989 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:connect:423 - Trying to connect to Hyper-V
      2024-06-04 03:22:28,608 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:retry_basic:114 - Using Basic authentication
      2024-06-04 03:22:29,261 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:getHostGuestMapping:470 - Unable to enumerate using root/virtualization namespace, trying root/virtualization/v2 namespace
      2024-06-04 03:22:29,569 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:retry_basic:114 - Using Basic authentication
      2024-06-04 03:22:30,265 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:post:280 - Received valid response from Hyper-V server: 200
      2024-06-04 03:22:30,603 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:post:280 - Received valid response from Hyper-V server: 200
      2024-06-04 03:22:30,997 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:post:280 - Received valid response from Hyper-V server: 200
      2024-06-04 03:22:31,311 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:post:280 - Received valid response from Hyper-V server: 200
      2024-06-04 03:22:31,626 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:post:280 - Received valid response from Hyper-V server: 200
      2024-06-04 03:22:31,988 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:post:280 - Received valid response from Hyper-V server: 200
      2024-06-04 03:22:32,301 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:post:280 - Received valid response from Hyper-V server: 200
      2024-06-04 03:22:32,624 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:post:280 - Received valid response from Hyper-V server: 200
      2024-06-04 03:22:32,937 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @hyperv.py:post:280 - Received valid response from Hyper-V server: 200
      2024-06-04 03:22:32,938 [virtwho.main INFO] MainProcess(17366):Thread-2 @virt.py:_send_data:1191 - Report for config "virt-who-config-1" gathered, placing in datastore
      2024-06-04 03:22:32,939 [virtwho.main DEBUG] MainProcess(17366):Thread-2 @virt.py:run:541 - Thread 'virt-who-config-1' terminated
      2024-06-04 03:22:32,998 [virtwho.destination_-1570315118395389390 DEBUG] MainProcess(17366):Thread-3 @virt.py:run:513 - Thread 'destination_-1570315118395389390' started
      2024-06-04 03:22:32,998 [virtwho.destination_-1570315118395389390 DEBUG] MainProcess(17366):Thread-3 @subscriptionmanager.py:_connect:147 - Authenticating with RHSM username admin
      2024-06-04 03:22:32,998 [virtwho.destination_-1570315118395389390 INFO] MainProcess(17366):Thread-3 @subscriptionmanager.py:_connect:158 - X-Correlation-ID: da31960fcab94254adb0b1acceac4212
      2024-06-04 03:22:32,998 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:__init__:242 - Environment variable NO_PROXY= will be used
      2024-06-04 03:22:33,000 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:__init__:626 - Creating new BaseRestLib instance
      2024-06-04 03:22:33,000 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:__init__:368 - Connection built: host=host-2620-52-0-9f-f816-3eff-fe80-4d3d.vms.sat.rdu2.redhat.com port=443 handler=/rhsm auth=basic username=admin
      2024-06-04 03:22:33,001 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1150 - Making request: GET /rhsm/status/
      2024-06-04 03:22:33,001 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_create_connection:759 - Creating new connection
      2024-06-04 03:22:33,315 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_create_connection:824 - Created connection: <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('2620:52:0:25a2:d836:d0ff:fe6e:502d', 41656, 0, 0), raddr=('2620:52:0:9f:f816:3eff:fe80:4d3d', 443, 0, 0)>
      2024-06-04 03:22:33,455 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_update_smoothed_response_time:1230 - Response time: 0.00021576881408691406, Smoothed response time: 0.00021576881408691406
      2024-06-04 03:22:33,499 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1184 - Response: status=200, request="GET /rhsm/status/"
      2024-06-04 03:22:33,499 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1193 - HTTP header 'Connection' not included in response
      2024-06-04 03:22:33,500 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1150 - Making request: GET /rhsm/status
      2024-06-04 03:22:33,501 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_create_connection:756 - Reusing connection: <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('2620:52:0:25a2:d836:d0ff:fe6e:502d', 41656, 0, 0), raddr=('2620:52:0:9f:f816:3eff:fe80:4d3d', 443, 0, 0)>
      2024-06-04 03:22:33,636 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_update_smoothed_response_time:1230 - Response time: 0.00019598007202148438, Smoothed response time: 0.0002137899398803711
      2024-06-04 03:22:33,652 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1184 - Response: status=200, request="GET /rhsm/status"
      2024-06-04 03:22:33,652 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1188 - Server wants to keep connection
      2024-06-04 03:22:33,652 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1204 - Connection timeout: 15 is used from 'Keep-Alive' HTTP header
      2024-06-04 03:22:33,652 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1207 - Max number of requests: 99 is used from 'Keep-Alive' HTTP header
      2024-06-04 03:22:33,653 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_load_manager_capabilities:1483 - Server has the following capabilities: ['instance_multiplier', 'derived_product', 'vcpu', 'cert_v3', 'hypervisors_heartbeat', 'remove_by_pool_id', 'syspurpose', 'storage_band', 'cores', 'multi_environment', 'hypervisors_async', 'org_level_content_access', 'guest_limit', 'ram', 'batch_bind', 'combined_reporting']
      2024-06-04 03:22:33,653 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1150 - Making request: PUT /rhsm/hypervisors/Default_Organization/heartbeat?reporter_id=sheep-45.lab.eng.brq2.redhat.com-4b686e8dc2bb412a9d26c0bb03b84fb2
      2024-06-04 03:22:33,654 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_create_connection:756 - Reusing connection: <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('2620:52:0:25a2:d836:d0ff:fe6e:502d', 41656, 0, 0), raddr=('2620:52:0:9f:f816:3eff:fe80:4d3d', 443, 0, 0)>
      2024-06-04 03:22:33,913 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_update_smoothed_response_time:1230 - Response time: 0.00016498565673828125, Smoothed response time: 0.00020890951156616211
      2024-06-04 03:22:33,955 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1184 - Response: status=200, request="PUT /rhsm/hypervisors/Default_Organization/heartbeat?reporter_id=sheep-45.lab.eng.brq2.redhat.com-4b686e8dc2bb412a9d26c0bb03b84fb2"
      2024-06-04 03:22:33,955 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1188 - Server wants to keep connection
      2024-06-04 03:22:33,955 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1204 - Connection timeout: 15 is used from 'Keep-Alive' HTTP header
      2024-06-04 03:22:33,955 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1207 - Max number of requests: 98 is used from 'Keep-Alive' HTTP header
      2024-06-04 03:22:33,956 [virtwho.destination_-1570315118395389390 INFO] MainProcess(17366):Thread-3 @virt.py:_send_data:797 - Hosts-to-guests mapping for config "virt-who-config-1": 1 hypervisors and 1 guests found
      2024-06-04 03:22:33,957 [virtwho.destination_-1570315118395389390 INFO] MainProcess(17366):Thread-3 @virt.py:_send_data:836 - Sending updated Host-to-guest mapping to "Default_Organization" including 1 hypervisors and 1 guests
      2024-06-04 03:22:33,958 [virtwho.destination_-1570315118395389390 DEBUG] MainProcess(17366):Thread-3 @subscriptionmanager.py:_connect:147 - Authenticating with RHSM username admin
      2024-06-04 03:22:33,958 [virtwho.destination_-1570315118395389390 INFO] MainProcess(17366):Thread-3 @subscriptionmanager.py:_connect:158 - X-Correlation-ID: da31960fcab94254adb0b1acceac4212
      2024-06-04 03:22:33,958 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:__init__:242 - Environment variable NO_PROXY= will be used
      2024-06-04 03:22:33,959 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:__init__:626 - Creating new BaseRestLib instance
      2024-06-04 03:22:33,960 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:__init__:368 - Connection built: host=host-2620-52-0-9f-f816-3eff-fe80-4d3d.vms.sat.rdu2.redhat.com port=443 handler=/rhsm auth=basic username=admin
      2024-06-04 03:22:33,960 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1150 - Making request: GET /rhsm/status/
      2024-06-04 03:22:33,961 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_create_connection:759 - Creating new connection
      2024-06-04 03:22:34,187 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_create_connection:824 - Created connection: <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('2620:52:0:25a2:d836:d0ff:fe6e:502d', 41672, 0, 0), raddr=('2620:52:0:9f:f816:3eff:fe80:4d3d', 443, 0, 0)>
      2024-06-04 03:22:34,326 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_update_smoothed_response_time:1230 - Response time: 0.00018024444580078125, Smoothed response time: 0.00018024444580078125
      2024-06-04 03:22:34,412 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1184 - Response: status=200, request="GET /rhsm/status/"
      2024-06-04 03:22:34,412 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1193 - HTTP header 'Connection' not included in response
      2024-06-04 03:22:34,413 [virtwho.destination_-1570315118395389390 DEBUG] MainProcess(17366):Thread-3 @subscriptionmanager.py:_is_rhsm_server_async:291 - Checking if server has capability 'hypervisor_async'
      2024-06-04 03:22:34,413 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1150 - Making request: GET /rhsm/status
      2024-06-04 03:22:34,414 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_create_connection:756 - Reusing connection: <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('2620:52:0:25a2:d836:d0ff:fe6e:502d', 41672, 0, 0), raddr=('2620:52:0:9f:f816:3eff:fe80:4d3d', 443, 0, 0)>
      2024-06-04 03:22:34,549 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_update_smoothed_response_time:1230 - Response time: 0.00022792816162109375, Smoothed response time: 0.0001850128173828125
      2024-06-04 03:22:34,564 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1184 - Response: status=200, request="GET /rhsm/status"
      2024-06-04 03:22:34,565 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1188 - Server wants to keep connection
      2024-06-04 03:22:34,565 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1204 - Connection timeout: 15 is used from 'Keep-Alive' HTTP header
      2024-06-04 03:22:34,565 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1207 - Max number of requests: 99 is used from 'Keep-Alive' HTTP header
      2024-06-04 03:22:34,565 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_load_manager_capabilities:1483 - Server has the following capabilities: ['instance_multiplier', 'derived_product', 'vcpu', 'cert_v3', 'hypervisors_heartbeat', 'remove_by_pool_id', 'syspurpose', 'storage_band', 'cores', 'multi_environment', 'hypervisors_async', 'org_level_content_access', 'guest_limit', 'ram', 'batch_bind', 'combined_reporting']
      2024-06-04 03:22:34,566 [virtwho.destination_-1570315118395389390 DEBUG] MainProcess(17366):Thread-3 @subscriptionmanager.py:_is_rhsm_server_async:295 - Server has capability 'hypervisors_async'
      2024-06-04 03:22:34,566 [virtwho.destination_-1570315118395389390 DEBUG] MainProcess(17366):Thread-3 @subscriptionmanager.py:hypervisorCheckIn:210 - Host-to-guest mapping being sent to 'Default_Organization': {
          "hypervisors": [
              {
                  "hypervisorId": {
                      "hypervisorId": "WIN-TTDN8QTEL3F"
                  },
                  "name": "WIN-TTDN8QTEL3F",
                  "guestIds": [
                      {
                          "guestId": "DFF3147E-39F2-A74A-85CE-FBA29DD1AD90",
                          "state": 1,
                          "attributes": {
                              "virtWhoType": "hyperv",
                              "active": 1
                          }
                      }
                  ],
                  "facts": {
                      "cpu.cpu_socket(s)": "2",
                      "hypervisor.type": "hyperv",
                      "hypervisor.version": "10.0.20348.143",
                      "dmi.system.uuid": "7E9FEA52-1793-4747-A88D-08CB81B92D79"
                  }
              }
          ]
      }
      2024-06-04 03:22:34,566 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1150 - Making request: POST /rhsm/hypervisors/Default_Organization?env=&cloaked=False&reporter_id=sheep-45.lab.eng.brq2.redhat.com-4b686e8dc2bb412a9d26c0bb03b84fb2
      2024-06-04 03:22:34,567 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_create_connection:756 - Reusing connection: <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('2620:52:0:25a2:d836:d0ff:fe6e:502d', 41672, 0, 0), raddr=('2620:52:0:9f:f816:3eff:fe80:4d3d', 443, 0, 0)>
      2024-06-04 03:22:34,982 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_update_smoothed_response_time:1230 - Response time: 0.00022125244140625, Smoothed response time: 0.00018863677978515623
      2024-06-04 03:22:35,018 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1184 - Response: status=200, request="POST /rhsm/hypervisors/Default_Organization?env=&cloaked=False&reporter_id=sheep-45.lab.eng.brq2.redhat.com-4b686e8dc2bb412a9d26c0bb03b84fb2"
      2024-06-04 03:22:35,019 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1188 - Server wants to keep connection
      2024-06-04 03:22:35,019 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1204 - Connection timeout: 15 is used from 'Keep-Alive' HTTP header
      2024-06-04 03:22:35,019 [rhsm.connection DEBUG] MainProcess(17366):Thread-3 @connection.py:_request:1207 - Max number of requests: 98 is used from 'Keep-Alive' HTTP header
      2024-06-04 03:22:35,020 [virtwho.destination_-1570315118395389390 DEBUG] MainProcess(17366):Thread-3 @virt.py:run:541 - Thread 'destination_-1570315118395389390' terminated
      2024-06-04 03:22:36,002 [virtwho.main DEBUG] MainProcess(17366):MainThread @__main__.py:main:24 - virt-who terminated
      2024-06-04 03:22:36,002 [virtwho.main DEBUG] MainProcess(17366):MainThread @main.py:exit:261 - None
      2024-06-04 03:22:36,002 [virtwho.main DEBUG] MainProcess(17366):MainThread @executor.py:terminate:272 - virt-who is shutting down 

       

      Actual results: 

      virt-who can not establish the connection for the hypervisors with the IPV6 only Satellite server with the error "fails with error: Unable to connect to Hyper-V server: HTTPConnectionPool(host='10.73.3.172', port=5985): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3e2148080>: Failed to establish a new connection: [Errno 101] Network is unreachable',))"

       

      Expected results:

      virt-who can not establish the connection for the hypervisors with the IPV6 only Satellite server 

       

       

              csi-client-tools-bugs CSI Client Tools Bugs Bot
              yanpliu yanping liu
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Jan Fiala Jan Fiala
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: