Bug 2107323
| Summary: | Insights failed to register/connect during installation | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Marek Haicman <mhaicman> |
| Component: | insights-client | Assignee: | Nobody <nobody> |
| Status: | CLOSED DUPLICATE | QA Contact: | Nobody <nobody> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | cmarinea, fjansen, gchamoul, jkonecny, jstodola, mhuth, mkolman, stomsa |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-10-20 12:37:20 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Marek Haicman
2022-07-14 18:24:49 UTC
The --retry option indeed doesn't work for registration:
[root@localhost ~]# rpm -q insights-client
insights-client-3.1.7-8.el9.noarch
[root@localhost ~]# time insights-client --retry=10 --register
Fatal error
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.9/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/lib/python3.9/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
.
.
.
real 0m2.087s
user 0m1.917s
sys 0m0.156s
[root@localhost ~]#
From insights-client man page:
--retry=RETRIES
Number of times to retry uploading. 180 seconds between tries.
(In reply to Jan Stodola from comment #5) > The --retry option indeed doesn't work for registration: > > [root@localhost ~]# rpm -q insights-client > insights-client-3.1.7-8.el9.noarch > [root@localhost ~]# time insights-client --retry=10 --register > Fatal error > Traceback (most recent call last): > File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 169, > in _new_conn > conn = connection.create_connection( > File "/usr/lib/python3.9/site-packages/urllib3/util/connection.py", line > 96, in create_connection > raise err > File "/usr/lib/python3.9/site-packages/urllib3/util/connection.py", line > 86, in create_connection > sock.connect(sa) > ConnectionRefusedError: [Errno 111] Connection refused > . > . > . > > real 0m2.087s > user 0m1.917s > sys 0m0.156s > [root@localhost ~]# > > From insights-client man page: > --retry=RETRIES > Number of times to retry uploading. 180 seconds between tries. Interesting - thanks for looking into this. But I still think registration retries is something that should be addressed on the insights client side - either by default or via (another ?) command line option. I really don't think running insights-client registration multiple times from our end is a good solution: - I'm sure insights client could do it much more efficiently - it would only help during installation, while a solution in insights-client will help any time users try to register a system to insights - what if the registration fails in some non-atomic way ? can't really tell from our end easily So reassigning to Red Hat Insights to implement the registration retry functionality. |