Bug 1931069

Summary: Allow to finish installation even when insights-client fails to register
Product: Red Hat Enterprise Linux 8 Reporter: Frank Ansari <mail>
Component: anacondaAssignee: Martin Kolman <mkolman>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact: Sagar Dubewar <sdubewar>
Priority: unspecified    
Version: 8.3CC: aday, fidencio, info, jstodola, mkolman, pkotvan, prgutier, rvykydal, sbueno, sdubewar, sjalgaon, zveleba
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of:
: 1940018 1955296 (view as bug list) Environment:
Last Closed: 2021-11-09 18:42:11 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:
Bug Depends On:    
Bug Blocks: 1940018    
Attachments:
Description Flags
installation error
none
anaconda-tb file
none
insights-client logfile
none
insights-client logfile none

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