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.
Bug 1931069 - Allow to finish installation even when insights-client fails to register
Summary: Allow to finish installation even when insights-client fails to register
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: anaconda
Version: 8.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Martin Kolman
QA Contact: Release Test Team
Sagar Dubewar
URL:
Whiteboard:
: 1924938 1939919 2013193 (view as bug list)
Depends On:
Blocks: 1940018
TreeView+ depends on / blocked
 
Reported: 2021-02-20 13:17 UTC by Frank Ansari
Modified: 2022-03-22 09:34 UTC (History)
12 users (show)

Fixed In Version: anaconda-33.16.5.3-1.el8
Doc Type: Bug Fix
Doc Text:
.RHEL installation no longer aborts when Insights client fails to register system Previously, the RHEL installation failed with an error at the end if the Red Hat Insights client failed to register the system during the installation. With this update, the system completes the installation even if the insights client fails. The user is notified about the error during installation so the error can be handled later independently.
Clone Of:
: 1940018 1955296 (view as bug list)
Environment:
Last Closed: 2021-11-09 18:42:11 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
installation error (195.26 KB, image/png)
2021-02-20 13:17 UTC, Frank Ansari
no flags Details
anaconda-tb file (1.68 MB, text/plain)
2021-02-23 16:24 UTC, Frank Ansari
no flags Details
insights-client logfile (3.97 KB, text/plain)
2021-02-26 16:44 UTC, Frank Ansari
no flags Details
insights-client logfile (13.95 KB, text/plain)
2021-02-26 16:45 UTC, Frank Ansari
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4254 0 None None None 2021-11-09 18:42:34 UTC

Internal Links: 1923177

Description Frank Ansari 2021-02-20 13:17:29 UTC
Created attachment 1758431 [details]
installation error

Description of problem:
I have done two test installations with rhel-8.3-x86_64-boot.iso.

One installation was as VM on a Proxmox hypervisor the other on a bare metal machine.

In both cases the graphical installer stops with some unknown error.


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


How reproducible:
Try to install a RHEL system with rhel-8.3-x86_64-boot.iso.


Steps to Reproduce:
1.
2.
3.

Actual results:
The installation stops. But it comes up to a point where kernel and grub are already installed. I cannot login afterward because the files are not labelde correctly for SELinux. What I could do is to enter the system with rd.break, change SELinux into permissive mode and do a relabeling.

Expected results:
A working installation.


Additional info:

Comment 1 Jan Stodola 2021-02-22 09:16:38 UTC
Can you please provide /tmp/anaconda-tb* from the installation environment when the error appears?
Adding Martin to CC, since this is an Insights-related traceback.

Comment 2 Frank Ansari 2021-02-23 16:24:34 UTC
Created attachment 1758875 [details]
anaconda-tb file

Comment 3 Frank Ansari 2021-02-23 16:25:16 UTC
New test installation with Proxmox done. File attached.

Comment 4 Jan Stodola 2021-02-23 18:28:26 UTC
Here is the error from anaconda-tb:

16:15:48,867 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:insights-connect-task: connecting to insights
16:15:48,868 WARNING org.fedoraproject.Anaconda.Modules.Subscription:INFO:program:Running in chroot '/mnt/sysroot'... /usr/bin/insights-client --register
16:15:59,184 WARNING org.fedoraproject.Anaconda.Modules.Subscription:INFO:program:Unable to fetch egg url. Defaulting to /release
16:15:59,184 WARNING org.fedoraproject.Anaconda.Modules.Subscription:INFO:program:Could not connect to the Insights API. Run insights-client --test-connection for more information.
16:15:59,184 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:program:Return code: 1
16:15:59,184 WARNING org.fedoraproject.Anaconda.Modules.Subscription:INFO:anaconda.threading:Thread Failed: AnaTaskThread-ConnectToInsightsTask-1 (140107564644096)
16:15:59,186 WARNING org.fedoraproject.Anaconda.Modules.Subscription:ERROR:anaconda.modules.common.task.task:Thread AnaTaskThread-ConnectToInsightsTask-1 has failed: Traceback (most recent call last):
16:15:59,186 WARNING org.fedoraproject.Anaconda.Modules.Subscription:  File "/usr/lib64/python3.6/site-packages/pyanaconda/threading.py", line 280, in run
16:15:59,186 WARNING org.fedoraproject.Anaconda.Modules.Subscription:    threading.Thread.run(self)
16:15:59,186 WARNING org.fedoraproject.Anaconda.Modules.Subscription:  File "/usr/lib64/python3.6/threading.py", line 864, in run
16:15:59,186 WARNING org.fedoraproject.Anaconda.Modules.Subscription:    self._target(*self._args, **self._kwargs)
16:15:59,186 WARNING org.fedoraproject.Anaconda.Modules.Subscription:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/common/task/task.py", line 97, in _task_run_callback
16:15:59,186 WARNING org.fedoraproject.Anaconda.Modules.Subscription:    self._set_result(self.run())
16:15:59,186 WARNING org.fedoraproject.Anaconda.Modules.Subscription:  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/subscription/installation.py", line 81, in run
16:15:59,186 WARNING org.fedoraproject.Anaconda.Modules.Subscription:    raise InsightsConnectError("Connecting to Red Hat Insights failed.")

As a workaround you can uncheck the "Connect to Red Hat Insights" check box before registering your systems in the installer.
You can try to register to Insights on the installed system later by running:

# insights-client --register

I'm curios if the command will suceed or the same "Could not connect to the Insights API..." error will be printed even on the installed system - can you please try it and report back?


For anaconda part - it should not crash with a traceback when insights-client fails. This problem can be reproduced by disconnecting the network device when the packages are being installed.

Comment 5 Frank Ansari 2021-02-26 16:42:49 UTC
With unchecked "Insight" Box the installation runs without error and I could login into the system.

After this I tried

insights-client --register
insights-client --test-connection

Both commands failed. I have attached the logs.

Comment 6 Frank Ansari 2021-02-26 16:44:47 UTC
Created attachment 1759548 [details]
insights-client logfile

Comment 7 Frank Ansari 2021-02-26 16:45:16 UTC
Created attachment 1759549 [details]
insights-client logfile

Comment 8 Jan Stodola 2021-03-17 12:54:27 UTC
Let's keep this bug open for anaconda not to crash when insights-client fails. The problem with insights-client on the installed system has been cloned as a new bug 1940018.

Comment 9 Jan Stodola 2021-03-17 12:58:57 UTC
*** Bug 1939919 has been marked as a duplicate of this bug. ***

Comment 10 info@meile.biz 2021-03-17 14:46:44 UTC
Thanks for the hint. Unheck the Insight option as shown in

https://wwwsec.meile.biz/Austausch/RHEL/Insight_deaktivieren.png

solved the problem.

Comment 11 Frank Ansari 2021-03-23 14:31:31 UTC
I tried again 

insights-client --register
insights-client --test-connection

Both commands are working now.

Comment 13 Jan Stodola 2021-03-25 08:51:02 UTC
*** Bug 1924938 has been marked as a duplicate of this bug. ***

Comment 19 Martin Kolman 2021-06-15 15:05:57 UTC
PR: https://github.com/rhinstaller/anaconda/pull/3443

Comment 31 Jan Stodola 2021-10-12 12:07:23 UTC
*** Bug 2013193 has been marked as a duplicate of this bug. ***

Comment 33 errata-xmlrpc 2021-11-09 18:42:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4254


Note You need to log in before you can comment on or make changes to this bug.