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.
Description of problem: When using Image Builder on RHEL 8.3 GA with a system registered to Satellite, the Image Builder sources have the appstream/base OS repositories pointed to cdn.redhat.com rather than the Satellite server. My system was not able to connect to these repositories, so Image Builder was unusable. The sources are listed as "System source" and it doesn't appear that they can be deleted.
Version-Release number of selected component (if applicable): RHEL 8.3 GA
How reproducible: every time
Steps to Reproduce:
1. Build RHEL 8.3 system registered to Satellite server
2. Go in to Image Builder and look at sources
3. Attempt to build a blueprint, and the list of packages never loads
Actual results:
Sources for appstream/base OS are pointed to cdn.redhat.com and the system can't connect to them. It doesn't appear that these sources can be deleted.
Expected results:
If the host is registered to Satellite, the Image Builder sources should point to the Satellite server as well.
You can do the following:
mkdir -p /etc/osbuild-composer/repositories
cp /usr/share/osbuild-composer/repositories/rhel-8.json /etc/osbuild-composer/repositories/
Now, open /etc/osbuild-composer/repositories/rhel-8.json and edit the baseurls.
I've modified the rhel-8.json base URLs to point to the satellite server, I get a 403 error in messages. Same behavior. has the workaround been validated?
Comment 7Christophe Besson
2021-04-07 08:15:32 UTC
Just added another case.
Originally I opened another rhbz#1945670 but this is a clone.
We also reproduced that issue internally, with "custom repos" (those of the Sat server) defined in /etc/osbuild-composer/repositories/rhel-8.json, and symlinked the cacert (/etc/rhsm/ca/redhat-uep.pem -> /etc/rhsm/ca/katello-server-ca.pem).
Issue is the same.
Stracing osbuild shows it reads a wrong key/cert pair from /etc/pki/entitlement.
Please note that overwriting the specific key/cert pair used (in my case /etc/pki/entitlement/8048553451084698847{-key}.pem) by the debug cert of the Satellite server fixes the issue.
Comment 8Christophe Besson
2021-04-07 08:21:17 UTC
Please also note the issue has been reproduced by defining other custom repos (for 3rd parties):
~~~
# dnf repolist
Updating Subscription Management repositories.
repo id repo name
DefaultOrganization_CustomProduct2_CustomRepo2 CustomRepo2
DefaultOrganization_CustomProduct3_CustomRepo3 CustomRepo3
DefaultOrganization_CustomProduct_CustomRepo1 CustomRepo1
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
~~~
I guess it could work without them (only one key/cert pair in /etc/pki/entitlement).
The upstream PR[1] that fixed this bug contained also regression tests for this specific bug. These tests are passing therefore I consider this PR preverified.
[1]: https://github.com/osbuild/osbuild-composer/pull/1405
Comment 34Alexander Todorov
2021-09-01 10:05:34 UTC
@Paul,
ping, see comment #32. Are you able to test with the latest osbuild-composer ?
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 (osbuild 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-2021:4273