virt-who is unable to report the Hypervisor and encounters the error: "Communication with subscription manager failed with code 302."
Environment
- Red Hat Satellite 6
- virt-who
Issue
virt-who
is failing to function correctly and is displaying the following error message:-
virt-who is unable to report the hypervisor and is encountering the following error:
virt.py:_send_data:609 - Error during heartbeat: Communication with subscription manager failed with code 302:Unknown content error (HTTP 302 - Found, len 0)
Resolution
-
Execute the following command on the virt-who server to exclude it from using the proxy:
# subscription-manager config --server.no_proxy=satellite-fqdn-name
Diagnostic Steps
-
Upon checking the
rhsm.log
, it was found that the system was using a proxy. Even after settingno_proxy=*
in/etc/virt-who.conf
and addingno_proxy=*
inrhsm.conf
,virt-who
still used the proxy.[rhsm.connection DEBUG] MainProcess(1421043):Thread-3 @connection.py:__init__:310 - Connection built: http_proxy=webproxy.example:8080 host=satellite-fqdname port=443 handler=/rhsm auth=basic username=virt_who_reporter_1 [virtwho.destination_-6547271276766795381 DEBUG] MainProcess(1421043):Thread-3 @subscriptionmanager.py:_connect:148 - Authenticating with RHSM username virt_who_reporter_1 [virtwho.destination_-6547271276766795381 INFO] MainProcess(1421043):Thread-3 @subscriptionmanager.py:_connect:159 - X-Correlation-ID: efe02247827b4c39a01d76c87b9c82b6 [rhsm.connection DEBUG] MainProcess(1421043):Thread-3 @connection.py:_request:779 - Making request: GET /rhsm/status/ [rhsm.connection DEBUG] MainProcess(1421043):Thread-3 @connection.py:_create_connection:650 - Using proxy: webproxy.example:8080 [rhsm.connection DEBUG] MainProcess(1421043):Thread-3 @connection.py:_update_smoothed_response_time:884 - Response time: 0.17221570014953613, Smoothed response time: 0.17221570014953613 [rhsm.connection DEBUG] MainProcess(1421043):Thread-3 @connection.py:_request:861 - Response: status=302, request="GET /rhsm/status/" [virtwho.destination_-6547271276766795381 ERROR] MainProcess(1421043):Thread-3 @virt.py:_send_data:609 - Error during heartbeat: Communication with subscription manager failed with code 302: Unknown content error (HTTP 302 - Found, len 0)
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments