Bug 1862116

Summary: Anaconda : Registration of the RHEL 8.3 system fails
Product: Red Hat Enterprise Linux 8 Reporter: Christian Labisch <clnetbox>
Component: anacondaAssignee: Martin Kolman <mkolman>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact: Shweta Naresh <sjalgaon>
Priority: unspecified    
Version: 8.3CC: jangerrit.kootstra, jrusz, jstodola, lmanasko, m.a.young, mkolman, sbueno, sjalgaon
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-33.16.3.16-1 Doc Type: Bug Fix
Doc Text:
.System registration using CDN failed with the error message *Name or service not known* When you attempted to register a system using the Content Delivery Network (CDN), the registration process failed with the error message *Name or service not known*. This issue occurred because the empty *Custom server URL* and *Custom Base URL* values overwrote the default values for system registration. With this update, the empty values now do not overwrite the default values, and the system registration completes successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:23:57 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:
Attachments:
Description Flags
rhel8.3beta-1.png
none
rhel8.3beta-2.png
none
rhel8.3beta-3.png
none
tar file of logs for registration attempt
none
rhel8.3beta.tar.xz none

Description Christian Labisch 2020-07-30 13:50:05 UTC
There seems to be a bug in Anaconda of the boot.iso, that makes it impossible to install the system.
I have added the boot option ip=dhcp to the boot parameters to ensure a working internet connection.

Registration of the RHEL 8.3 system fails with [Erno -2] Name or service not known - although network is connected.
Looks as if the installer doesn't find my account and/or a valid Red Hat Beta subscription, which of course I have.

Main problem : The net installer functionality can only be used when the install medium is connected to Red Hat CDN.
To make sure that this was not a temporary issue, I've booted with the RHEL 8.2 boot.iso and could register at once.

The same is valid for dvd.iso as well, it is not possible to register the system from within the Anaconda installer.
Additional information : other customers can confirm what I report -> https://access.redhat.com/discussions/5253291

Comment 1 Christian Labisch 2020-07-30 13:55:10 UTC
Created attachment 1702958 [details]
rhel8.3beta-1.png

Comment 2 Christian Labisch 2020-07-30 13:55:38 UTC
Created attachment 1702959 [details]
rhel8.3beta-2.png

Comment 3 Samantha N. Bueno 2020-07-31 10:41:15 UTC
Hi Christian,
Could you please attach logs from an installation attempt where you see this error? They can be found in /tmp.
Thanks a lot.

Comment 4 Christian Labisch 2020-07-31 12:56:05 UTC
(In reply to Samantha N. Bueno from comment #3)
> Hi Christian,
> Could you please attach logs from an installation attempt where you see this
> error? They can be found in /tmp.
> Thanks a lot.

Hi Samantha,

What do you mean ? How would I be able to export log files from an ISO that is running in RAM ?
As I reported before there is no way to install anything from the boot.iso without registration.
Only thing I can give you is a screenshot from the running VM where I switched to TTY afterwards.

Regards,
Christian

Comment 5 Christian Labisch 2020-07-31 12:58:22 UTC
Created attachment 1703100 [details]
rhel8.3beta-3.png

Comment 6 Michael Young 2020-08-01 11:31:01 UTC
Created attachment 1703162 [details]
tar file of logs for registration attempt

I reproduced the same problem in a test set up. I have attached a tar file of the logs (with my username anonymized).

Comment 7 Michael Young 2020-08-01 12:37:00 UTC
I think I have a workaround. On the Connect to Red Hat page, if I expand the Options section, tick Custom server URL and set to subscription.rhsm.redhat.com I can register successfully.

Comment 8 Christian Labisch 2020-08-01 16:05:25 UTC
Created attachment 1703180 [details]
rhel8.3beta.tar.xz

Hi Samantha,

Meanwhile I have found a way to provide you with the log files ... I have created and inserted a second virtual disk into the VM and copied them from RAM onto that second disk.
Then I mounted this second virtual disk with the libguestfs-tools and copied them onto my fedora workstation - so, here they are. I can confirm that the workaround that Michael
provided was successful - selecting "Custom server URL" and inserting "subscription.rhsm.redhat.com" registers successfully - BUT : Unfortunately now the next problem appears !
Installation source - Red Hat CDN says "Error setting up base repository". As a workaround I have tried to add these two URL's, after having selected "On the network" option ->
https://cdn.redhat.com/content/beta/rhel8/8/x86_64/baseos/os | https://cdn.redhat.com/content/beta/rhel8/8/x86_64/appstream/os - still no chance - I'm receiving the same error.

Regards,
Christian

Comment 9 Michael Young 2020-08-01 16:13:46 UTC
It seems what is happening is that on the Connect to Red Hat page, if the Custom server URL and Custom base URL aren't ticked in the Options section (whether on not it is expanded) then these values get set to the blank string (overriding the initial sensible default settings of subscription.rhsm.redhat.com and https://cdn.redhat.com in /etc/rhsm/rhsm.conf) so unless these options are explicitly set to the right values the server can't be subscribed or installed from Red Hat CDN.

Comment 10 Christian Labisch 2020-08-01 17:29:42 UTC
Hi Samantha,

I can confirm what Michael found out : What he described in Comment 9 is the workaround that lets us successfully install RHEL 8.3 Beta - Thanks a lot for that, Michael ! :)

Regards,
Christian

Comment 11 Martin Kolman 2020-08-03 15:42:13 UTC
PR with a fix: https://github.com/rhinstaller/anaconda/pull/2762

Comment 12 Samantha N. Bueno 2020-08-03 15:47:07 UTC
Thanks, Christian and Michael, and sorry for the trouble. Glad there is a workaround for now. Martin's already got a PR for this, so we'll have it fixed for GA. :)

Comment 14 Christian Labisch 2020-08-04 10:05:52 UTC
I have posted the temporary solution separately on the Customer Community Portal in order to avoid frustration of customers that run into this issue : https://access.redhat.com/discussions/5290381

Comment 21 ir. Jan Gerrit Kootstra 2020-08-10 05:46:41 UTC
All,

The issue is also found when using the DVD iso, not only the boot.iso. You might have concluded this already, but still new readers might not be aware of it.

Regards,

Jan Gerrit Kootstra

Comment 28 errata-xmlrpc 2020-11-04 03:23:57 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-2020:4729