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: | anaconda | Assignee: | 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.3 | CC: | aday, fidencio, info, jstodola, mkolman, pkotvan, prgutier, rvykydal, sbueno, sdubewar, sjalgaon, zveleba | ||||||||||
Target Milestone: | rc | Keywords: | 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: |
|
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. Created attachment 1758875 [details]
anaconda-tb file
New test installation with Proxmox done. File attached. 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. 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. Created attachment 1759548 [details]
insights-client logfile
Created attachment 1759549 [details]
insights-client logfile
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. *** Bug 1939919 has been marked as a duplicate of this bug. *** Thanks for the hint. Unheck the Insight option as shown in https://wwwsec.meile.biz/Austausch/RHEL/Insight_deaktivieren.png solved the problem. I tried again insights-client --register insights-client --test-connection Both commands are working now. *** Bug 1924938 has been marked as a duplicate of this bug. *** *** Bug 2013193 has been marked as a duplicate of this bug. *** 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 |
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: