Bug 2017428

Summary: Registration to CDN can't be persisted if use rhsm in text mode with liveimg payload
Product: Red Hat Enterprise Linux 9 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: 9.0CC: jkonecny, rvykydal
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-34.25.0.21-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:30:45 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:

Comment 4 Martin Kolman 2021-11-25 13:47:14 UTC
PR: https://github.com/rhinstaller/anaconda/pull/3722

Comment 5 Jan Stodola 2021-11-29 16:51:53 UTC
Verified with anaconda-34.25.0.21-1.el9, the installed system was registered after both GUI and TUI kickstart installations with liveimg:

[root@localhost ~]# subscription-manager list
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux for x86_64 Beta
Product ID:     486
Version:        9.0 Beta
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         16.12.2020
Ends:           15.12.2021

[root@localhost ~]#


Config files were transferred to the installed system:
...
15:35:04,362 WARNING org.fedoraproject.Anaconda.Modules.Subscription:INFO:anaconda.threading:Running Thread: AnaTaskThread-TransferSubscriptionTokensTask-1 (139752597956160)
15:35:04,363 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring syspurpose file
15:35:04,364 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring entitlement keys
15:35:04,364 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring RHSM consumer key
15:35:04,364 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring RHSM consumer cert
15:35:04,364 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring RHSM repo file
15:35:04,365 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring RHSM config file
15:35:04,365 WARNING org.fedoraproject.Anaconda.Modules.Subscription:INFO:anaconda.threading:Thread Done: AnaTaskThread-TransferSubscriptionTokensTask-1 (139752597956160)

...

Also successfully tested an interactive GUI installation with registration and with liveimg specified as the only command in the kickstart file.

The "CDN / kickstart registration / GUI" and "CDN / kickstart registration / TUI" test cases will be executed as part of the final verification due to infrastructure issues.

Comment 8 Jan Stodola 2021-12-06 11:44:48 UTC
anaconda-34.25.0.21-1.el9 is present in RHEL-9.0.0-20211205.3, moving to VERIFIED.

Comment 10 errata-xmlrpc 2022-05-17 12:30:45 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 (new packages: anaconda), 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:2326