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 creating a Fedora container using Buildah on a RHEL host, dnf fails to install while using '--installroot' due to subscription manager restrictions that should not be in place for this scenario.
Version-Release number of selected component (if applicable): unknonw
How reproducible:
Steps to Reproduce:
1. sudo -s
2. newcontainer=$(buildah from scratch)
3. scratchmnt=$(buildah mount $newcontainer)
4. dnf install --installroot $scratchmnt --releasever 30 bash coreutils --setopt install_weak_deps=false -y
Actual results:
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 7.1 B/s | 10 B 00:01
Failed to download metadata for repo 'rhel-8-for-x86_64-appstream-rpms'
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-appstream-rpms'
Expected results: The command to complete.
Additional info: See Buildah issue with full information: https://github.com/containers/buildah/issues/1973. If the commands above are run on any other Linux distribution it works. If the target container was a RHEL based container, then I could accept the error, but it should not be erroring for other distributions such as Fedora, Alpine, Busybox, etc.