Bug 1957063

Summary: RHSM DBus API is not available
Product: Red Hat Enterprise Linux 9 Reporter: Brian Lane <bcl>
Component: anacondaAssignee: Vendula Poncova <vponcova>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: jkonecny, jstodola, lzap, pzatko, rvykydal, vponcova
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-34.25.0.21-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:30:42 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: 1942219, 1971841    
Attachments:
Description Flags
anaconda.log none

Description Brian Lane 2021-05-05 00:03:28 UTC
Description of problem:

Running livemedia-creator --no-virt on RHEL9 fails because it expects the RHSM DBus api to be running. Note that livemedia-creator work when using virt and a boot.iso so the problem is related to running anaconda directly from lmc.

livemedia-creator should work without this.

I don't really understand all the dbus changes to Anaconda, but I was able to work around it using this:

https://github.com/rhinstaller/anaconda/pull/3337

Comment 1 Vendula Poncova 2021-05-05 10:22:23 UTC
Could you attach logs from the installation, please?

Comment 2 Brian Lane 2021-05-05 15:54:42 UTC
Created attachment 1779848 [details]
anaconda.log

Comment 3 Vendula Poncova 2021-06-28 12:28:20 UTC
The issue should be fixed in upstream with https://github.com/rhinstaller/anaconda/pull/3464.

Comment 4 Jan Stodola 2021-08-19 16:12:34 UTC
*** Bug 1976141 has been marked as a duplicate of this bug. ***

Comment 5 Brian Lane 2021-10-26 22:10:30 UTC
Still a problem when using anaconda-tui-34.25.0.17-1.el9.x86_64

Comment 6 Brian Lane 2021-11-04 18:37:51 UTC
@jstodola I tested this by copying the rhel.conf to /etc/anaconda/conf.d/99-lmc.conf and removing the subscription module from the list. Everything ran fine, so I don't anticipate any other issues with this patch. livemedia-creator using unshare is working fine.

Comment 8 Jiri Konecny 2021-11-11 13:24:22 UTC
(In reply to Brian Lane from comment #6)
> @jstodola I tested this by copying the rhel.conf to
> /etc/anaconda/conf.d/99-lmc.conf and removing the subscription module from
> the list. Everything ran fine, so I don't anticipate any other issues with
> this patch. livemedia-creator using unshare is working fine.

Just to be clear. Do I understand it correctly that removing the subscription module from the list of modules is enough to solve this issue? If yes, than I don't think we need to apply patch from the comment 3.

Comment 9 Brian Lane 2021-11-11 17:26:38 UTC
(In reply to Jiri Konecny from comment #8)
> (In reply to Brian Lane from comment #6)
> > @jstodola I tested this by copying the rhel.conf to
> > /etc/anaconda/conf.d/99-lmc.conf and removing the subscription module from
> > the list. Everything ran fine, so I don't anticipate any other issues with
> > this patch. livemedia-creator using unshare is working fine.
> 
> Just to be clear. Do I understand it correctly that removing the
> subscription module from the list of modules is enough to solve this issue?
> If yes, than I don't think we need to apply patch from the comment 3.

No, that was just me doing a test to make sure that there were no issues deeper inside anaconda. I had to manually edit the config file, which changes the behavior for the whole system, not just the livemedia-creator run, so we do need the fix in order to not interfere with other users of anaconda or normal subscription operation.

Comment 10 Brian Lane 2021-11-15 19:52:55 UTC
Note that this may also be a problem on CentOS since it doesn't install subscription-manager. I've built an iso using content from https://odcs.stream.centos.org/test/latest-CentOS-Stream/compose/ and it ends up with the connect to redhat spoke, but when you try to exit from it without filling anything in you get a traceback with 'RHSM DBus API is not available'

Comment 13 Jan Stodola 2021-11-16 17:22:09 UTC
Just for the record, update for the Customizing Anaconda guide was requested in bug 2023851, Image Builder update in bug 2023855.

Comment 14 Vendula Poncova 2021-11-23 11:48:44 UTC
Fixed in https://github.com/rhinstaller/anaconda/pull/3716.

Comment 15 Jan Stodola 2021-11-30 10:48:40 UTC
Reproduced with anaconda-34.25.0.20-1.el9.
Verified with anaconda-34.25.0.21-1.el9, it's possible to build an image with "livemedia-creator --no-virt" and anaconda shows the kpump and oscap addons when running regular installation from boot.iso.

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

Comment 23 errata-xmlrpc 2022-05-17 12:30:42 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