Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2000650

Summary: Anaconda doesn't inform when the rhsm kickstart command fails
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: unspecified    
Version: 8.5CC: jkonecny, pzatko, rvykydal
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-33.16.7.5-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2000652 (view as bug list) Environment:
Last Closed: 2022-11-08 09:17: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: 1956679    

Description Jan Stodola 2021-09-02 15:48:14 UTC
Description of problem:
When running a kickstart installation and the installation source is set to Red Hat CDN using the rhsm kickstart command, anaconda doesn't inform the user when the registration fails (for example when an invalid activation key is provided):

...
Starting automated install....
Saving storage configuration...
Checking storage configuration...

================================================================================

================================================================================
Installation

1) [x] Language settings                 2) [x] Time settings
       (English (United States))                (America/New_York timezone)
3) [!] Installation source               4) [!] Software selection
       (Error setting up software               (Error checking software
       source)                                  selection)
5) [x] Installation Destination          6) [x] Kdump
       (Automatic partitioning                  (Kdump is enabled)
       selected)
7) [x] Network configuration             8) [ ] User creation
       (Wired (enp1s0) connected)               (No user will be created)

Please make a selection from the above ['b' to begin installation, 'q' to quit,
'r' to refresh]:


In case there is a dvd.iso attached to the system, anaconda automatically uses it for the installation instead.

Version-Release number of selected component (if applicable):
RHEL-8.4 GA
anaconda-33.16.4.15-1.el8

How reproducible:
Always

Steps to Reproduce:
1. run a kickstart installation containing the following line:
rhsm --organization=unknown_organization --activation-key=unknown_key

Actual results:
No error message describing why the installation fails.
Or, if there is a usable DVD/USB media in the system, anaconda automatically switches to that media.

Expected results:
The installation is interrupted if the rhsm kickstart command fails. The user can see an error message.

Comment 4 Jan Stodola 2021-09-02 15:54:07 UTC
RHEL-9 clone: bug 2000652

Comment 7 Martin Kolman 2022-06-08 16:59:44 UTC
PR: https://github.com/rhinstaller/anaconda/pull/4180

Comment 14 Petr Zatko 2022-06-13 09:25:55 UTC
Marking as Verified: Tested as the fix passes acceptance criteria
Follow-up bug reported as BZ2096199

Comment 17 Jan Stodola 2022-06-20 13:35:44 UTC
Checked that anaconda-33.16.7.5-1.el8 is in nightly compose RHEL-8.7.0-20220619.0

Moving to VERIFIED

Comment 19 errata-xmlrpc 2022-11-08 09:17: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 (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-2022:7462