Bug 1824422
Summary: | Registration to CDN can't be persisted if use rhsm in text mode with liveimg payload | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Qin Yuan <qiyuan> | ||||||
Component: | anaconda | Assignee: | Martin Kolman <mkolman> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 8.2 | CC: | cshao, ftan, jkonecny, jstodola, lsvaty, mavital, michal.skrivanek, mkolman, peyu, pzatko, qiyuan, rvykydal, sbarcomb, sbonazzo, weiwang, yaniwang | ||||||
Target Milestone: | rc | Keywords: | Reopened, TestCaseNeeded, Triaged | ||||||
Target Release: | 8.5 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | anaconda-33.16.6.4-1.el8 | Doc Type: | No Doc Update | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2022-05-10 13:36:52 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
Qin Yuan
2020-04-16 08:18:49 UTC
sounds like unrelated to RHV. RHEL bug? I tried out the following ks with RHEL-8.2.0-20200310.0-BaseOS-x86_64-boot.iso, subscription works fine: text lang en_US.UTF-8 keyboard us rootpw redhat timezone America/New_York zerombr clearpart --all --initlabel autopart rhsm --organization="your-id" --activation-key="your-key" --connect-to-insights --server-hostname="subscription.rhsm.stage.redhat.com" --rhsm-baseurl="https://cdn.stage.redhat.com" %packages vim %end For rhvh 4.4, rhsm cmd works fine if define graphical installation mode in ks. But in text mode, some files, like /etc/pki/entitlement/*.pem, /etc/rhsm/rhsm.conf, are not synced to /mnt/sysimage/etc/. I think it should be related to Anaconda. Does this still reproduce? Chen will test it and provide the results. > Does this still reproduce?
Yes, still can reproduce this issue on RHVH-4.4-20210903.0-RHVH-x86_64-dvd1.iso.
Info checked after first reboot:
# subscription-manager list
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Virtualization Host
Product ID: 328
Version: 4
Arch: x86_64
Status: Unknown
Status Details:
Starts:
Ends:
# ls -al /etc/pki/entitlement/
total 0
drwxr-xr-x. 2 root root 6 Jun 8 21:11 .
drwxr-xr-x. 16 root root 231 Sep 3 10:36 ..
Hi, could you please provide us new logs from the installation. I would like to check if you are using Anaconda before or after rebase. Created attachment 1822502 [details]
new-log
And just a note, that I was not able to reproduce this bug when installing from an rpm repository - "inst.repo=http://..." on the kernel command line and no "liveimg" in kickstart. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. RHEL-9 clone: bug 2017428 Turns out this is caused by installation task queue being populated before background processing threads (including the subscription thread) can finish processing. As a result the subscription token transfer task gets scheduled in "do nothing" mode as at the time it is added to the task queue, the system is not yet subscribed. This has been fixed by first waiting for all background processing threads to finish and only then start to populate installation task queue. Thanks a lot to Vendula Poncova for help tracking down the root cause as well as to Honza Stodola for helping me test the fix! :) PR with fix: https://github.com/rhinstaller/anaconda/pull/3704 Verified with anaconda-33.16.6.4-1.el8, 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: 8.6 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:43:43,516 WARNING org.fedoraproject.Anaconda.Modules.Subscription:INFO:anaconda.threading:Running Thread: AnaTaskThread-TransferSubscriptionTokensTask-1 (140650179622656) 15:43:43,517 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring syspurpose file 15:43:43,529 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring entitlement keys 15:43:43,532 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring RHSM consumer key 15:43:43,532 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring RHSM consumer cert 15:43:43,533 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring RHSM repo file 15:43:43,535 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:subscription: transferring RHSM config file 15:43:43,536 WARNING org.fedoraproject.Anaconda.Modules.Subscription:INFO:anaconda.threading:Thread Done: AnaTaskThread-TransferSubscriptionTokensTask-1 (140650179622656) ... 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. anaconda-33.16.6.4-1.el8 is included in RHEL-8.6.0-20211201.1, moving to VERIFIED. 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:1780 |