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 1789122 - redhat-release does not have necessary base-module() Provides for DNF to auto-detect platform when building chroots
Summary: redhat-release does not have necessary base-module() Provides for DNF to auto...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: redhat-release
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Josh Boyer
QA Contact: Release Test Team
URL:
Whiteboard:
: 1698942 (view as bug list)
Depends On:
Blocks: 1623034 1699348
TreeView+ depends on / blocked
 
Reported: 2020-01-08 19:37 UTC by Neal Gompa
Modified: 2021-05-18 13:18 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 13:12:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CentOS 16877 0 None None None 2020-01-08 19:37:55 UTC
Red Hat Product Errata RHBA-2021:1569 0 None None None 2021-05-18 13:12:57 UTC

Description Neal Gompa 2020-01-08 19:37:56 UTC
Description of problem:
In cases where Red Hat Enterprise Linux 8 chroots are being made from scratch and modular content will be used as part of the initial install, DNF fails to resolve modular dependencies because it cannot discover the modular platform.

DNF does modular platform discovery in two ways:

* Reading the PLATFORM_ID from os-release(5)
* Reading the package providing system-release for base-module() Provides

The former method works on an existing RHEL 8 environment, but when trying to produce a brand new one without an existing reference or manual setting of the value, DNF relies on the latter method.

This declaration does not exist, which causes tools like appliance-creator, livecd-creator, kiwi, and others to fail to be able to resolve modular dependencies, essentially blocking the usage of modules with these tools.
 

Version-Release number of selected component (if applicable):
8.1-3.3.el8

How reproducible:
Always

Steps to Reproduce:
1. Create a directory with .repo files with RHEL repos on a Fedora system
2. dnf --setopt=reposdir=/path/to/rhelreposdir --installroot=/tmp/rhel8root install @core python36

Actual results:
It fails with dependency errors because the platform is not set.

Expected results:
It installs the packages and creates the chroot successfully.

Additional info:
I've fixed this in centos-release with the following change: https://git.centos.org/rpms/centos-release/c/89457ca3bf36c7c29d47c5d573a819dd7ee054fe?branch=c8

Comment 1 Tomas Mlcoch 2020-01-15 15:33:08 UTC
I wonder if this is a dup of: https://bugzilla.redhat.com/show_bug.cgi?id=1698942 ?

Comment 2 Rashmi 2020-01-15 15:39:01 UTC
cc Daniel Mach and Josh Boyer, could you please advise if this is something we want to do for RHEL8?
It boils down to adding 
"Provides:       base-module(platform:el%{base_release_version})"
in our redhat-release spec

Comment 4 Neal Gompa 2020-01-16 08:32:35 UTC
(In reply to Tomas Mlcoch from comment #1)
> I wonder if this is a dup of:
> https://bugzilla.redhat.com/show_bug.cgi?id=1698942 ?

This is technically a dupe of that, but this bug is more detailed than that one, so perhaps it's worth marking that one as a dupe of this?

Comment 5 Lisa S 2020-05-18 18:43:14 UTC
*** Bug 1698942 has been marked as a duplicate of this bug. ***

Comment 11 Peter Kotvan 2020-09-02 09:58:24 UTC
I was able to reproduce it with the steps described in the bug description. qa_ack+ granted.

Comment 19 errata-xmlrpc 2021-05-18 13:12: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 (redhat-release 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:1569


Note You need to log in before you can comment on or make changes to this bug.