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.
Created attachment 1741210[details]
insights-client support bundle
Description of problem:
Though Insights data collection and upload of report is successful there are several error messages printed to STDOUT/STDERR. This is confusing and should not happen.
Version-Release number of selected component (if applicable):
Client: 3.1.1
Core: 3.0.200-1
How reproducible:
I found the problem in my lab environment. The issue is reproducible in an isolated environment where the insights-client is accessing Insights through a proxy.
The affected host is running as a libvirt-guest in an isolated network. Name resolution is only available for the internal zone 'private1'. To access the internet the host has to use a squid proxy running on a RHEL 8 machine. RHSM and insights-client are configured to use this proxy as described in KB 1583183 [Accessing Red Hat Insights Through a Firewall/Proxy](Accessing Red Hat Insights Through a Firewall/Proxy).
~~~
$ grep proxy /etc/rhsm/rhsm.conf
# an http proxy server to use
proxy_hostname = 192.168.100.2
# The scheme to use for the proxy when updating repo definitions, if needed
proxy_scheme = http
# port for http proxy server
proxy_port = 3128
# user name for authenticating to an http proxy, if needed
proxy_user =
# password for basic http proxy auth, if needed
proxy_password =
# host/domain suffix blacklist for proxy, if needed
no_proxy =
~~~
Steps to Reproduce:
1. Run `sudo insights-client`
Actual results:
~~~
$ sudo insights-client
[sudo] password for jkastning:
Fatal: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Fatal: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
~~~
Expected results:
$ sudo insights-client
Starting to collect Insights data for rhel7-t1.private1
Uploading Insights data.
Successfully uploaded report from rhel7-t1.private1 to account 6929842.
View details about this system on cloud.redhat.com:
https://cloud.redhat.com/insights/inventory/UUID
~~~
Additional info:
A connection test is successful:
~~~
$ sudo insights-client --test-connection
Running Connection Tests...
=== Begin Upload URL Connection Test ===
Testing: https://cert-api.access.redhat.com/r/insights/uploads/
HTTP Status Code: 200
HTTP Status Text: OK
HTTP Response Text:
Successfully connected to: https://cert-api.access.redhat.com/r/insights/uploads/
=== End Upload URL Connection Test: SUCCESS ===
=== Begin API URL Connection Test ===
Testing: https://cert-api.access.redhat.com/r/insights/
HTTP Status Code: 200
HTTP Status Text: OK
HTTP Response Text: lub-dub
Successfully connected to: https://cert-api.access.redhat.com/r/insights/
=== End API URL Connection Test: SUCCESS ===
Connectivity tests completed successfully
See /var/log/insights-client/insights-client.log for more details.
Fatal: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Running Connection Tests...
=== Begin Upload URL Connection Test ===
Testing: https://cert-api.access.redhat.com/r/insights/uploads/
HTTP Status Code: 200
HTTP Status Text: OK
HTTP Response Text:
Successfully connected to: https://cert-api.access.redhat.com/r/insights/uploads/
=== End Upload URL Connection Test: SUCCESS ===
=== Begin API URL Connection Test ===
Testing: https://cert-api.access.redhat.com/r/insights/
HTTP Status Code: 200
HTTP Status Text: OK
HTTP Response Text: lub-dub
Successfully connected to: https://cert-api.access.redhat.com/r/insights/
=== End API URL Connection Test: SUCCESS ===
Connectivity tests completed successfully
See /var/log/insights-client/insights-client.log for more details.
Fatal: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
~~~
But it's not possible upload a report. I generated and attached an insights-client support bundle.
In case you need additional info or help to reproduce the issue, please feel free to reach out.
Hi there, I would like to ask if this bug is currently under investigation or if somebody already is working on it.
Do you need additional information on this?
Regards,
Joerg
(In reply to Joerg K from comment #2)
> Hi there, I would like to ask if this bug is currently under investigation
> or if somebody already is working on it.
>
> Do you need additional information on this?
>
> Regards,
> Joerg
Joerg, thanks for the update.
Can you try downgrading the insights-client package version and give a try.
# yum downgrade insights-client
# insights-client
(In reply to Sagar Lutade from comment #3)
> Can you try downgrading the insights-client package version and give a try.
>
> # yum downgrade insights-client
> # insights-client
I've downgraded insights-client to version client 3.0.14 and run `sudo insights-client --register` as well as `sudo insights-client`. Report generating and uploading succeeded without any error message.
~~~
$ sudo insights-client --version
Client: 3.0.14
Core: 3.0.202-1
~~~
IMHO the issue doesn't exist in this version.