Bug 1791376

Summary: Installation source is incorrectly updated in the installation source after registering to Red Hat
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stodola <jstodola>
Component: anacondaAssignee: Martin Kolman <mkolman>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.2CC: mkolman, pzatko, rvykydal
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-29.19.2.15-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 15:31:10 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: 1743676, 1788322    
Attachments:
Description Flags
Main hub after registration
none
Installation source spoke after registration none

Description Jan Stodola 2020-01-15 16:53:05 UTC
Description of problem:
The installation source in the Installation source spoke is incorrectly updated after registration to Red Hat during the installation. It happens when inst.repo= is present on the kernel command line. See steps below.

Version-Release number of selected component (if applicable):
RHEL-8.2 Beta
anaconda-29.19.2.6-1.el8

How reproducible:
Always

Steps to Reproduce:
1. start the installation with inst.repo= on the kernel command line (tested with an http installation source)
2. proceed to the "Connect to Red Hat" spoke and register the system
3. return back to the main hub
4. see the installation source displayed in the main hub (it's set to the http source specified on the kernel command line, which is expected)
5. enter the Installation source spoke
6. see what installation source is selected

Actual results:
"Red Hat CDN" is selected and the field for entering the network installation source has been cleared.

Expected results:
Anaconda should keep the "On the network" installation source selected and configured with the http repository specified on the kernel command line. The user should be able to switch to "Red Hat CDN" if she/he decides to change the source.

Comment 1 Jan Stodola 2020-01-15 16:55:49 UTC
Created attachment 1652496 [details]
Main hub after registration

Comment 2 Jan Stodola 2020-01-15 16:56:23 UTC
Created attachment 1652497 [details]
Installation source spoke after registration

Comment 8 Martin Kolman 2020-02-03 14:52:46 UTC
PR: https://github.com/rhinstaller/anaconda/pull/2304

Comment 9 Martin Kolman 2020-02-04 11:16:57 UTC
Also adding an updates image for anyone who might want to try the fix on a recent RHEL 8.2 nightly:

http://file.brq.redhat.com/~mkolman/update_images/rhel8/rhsm_integration/rhel82_fix_url_with_cdn_status.img

Comment 10 Jan Stodola 2020-02-14 09:04:06 UTC
Martin,
I tried the updates image and the source is correctly unchanged after registering.
There is one problem - the "Software Selection" spoke says that "Source changed - please verify" after the registration, so the user has to enter the Source Selection spoke, although the source has not been changed. And the same happens after unregistering.

Comment 12 Martin Kolman 2020-02-18 17:52:53 UTC
Now targetted to be fixed by PR: https://github.com/rhinstaller/anaconda/pull/2319 (previous PR from comment 8 has been superseded).

Comment 17 errata-xmlrpc 2020-04-28 15:31:10 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, 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:1584