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.

Bug 2095053

Summary: Centos Stream has added new variables to the repo url
Product: Red Hat Enterprise Linux 8 Reporter: Brian Lane <bcl>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: jstodola
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lorax-28.14.69-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:44:40 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:

Description Brian Lane 2022-06-08 21:33:18 UTC
Centos stream has added the $stream and $infra variables to the default repo urls, which is causing lorax's tests to fail with an error trying to load the appstream repo.

You can reproduce this by running 'make test-in-docker' from the git checkout.

The fix is to add loading of the system's variables to the pylorax/api/dnfbase function, so that the urls can be used from the /etc/yum.repos.d/ directory without modification.

Currently blocking the backport for the fix in bug #2052154

Comment 1 Brian Lane 2022-06-08 21:58:22 UTC
PR here - https://github.com/weldr/lorax/pull/1236

Comment 3 Jan Stodola 2022-06-10 15:02:39 UTC
[jstodola@fedora lorax (rhel8-branch)]$ make test-in-docker
podman build -t welder/lorax-tests:rhel8-latest -f Dockerfile.test .
STEP 1/9: FROM centos:stream8
STEP 2/9: RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
CentOS Stream 8 - AppStream                      11 MB/s |  23 MB     00:02    
CentOS Stream 8 - BaseOS                        4.3 MB/s |  23 MB     00:05    
CentOS Stream 8 - Extras                        202 kB/s |  18 kB     00:00    
Last metadata expiration check: 0:00:01 ago on Fri Jun 10 14:42:53 2022.
epel-release-latest-8.noarch.rpm                 51 kB/s |  23 kB     00:00    
Dependencies resolved.
================================================================================
 Package             Architecture  Version            Repository           Size
================================================================================
Installing:
 epel-release        noarch        8-15.el8           @commandline         23 k
.
.
.

TOTAL                             5372   2367   2082    156    54%
[ -f "/usr/bin/coveralls" ] && [ -n "" ] && coveralls || echo

make[1]: Leaving directory '/lorax'
cp /lorax/.coverage /test-results/
[jstodola@fedora lorax (rhel8-branch)]$ echo $?
0
[jstodola@fedora lorax (rhel8-branch)]$


Verified:Tested

Comment 6 Jan Stodola 2022-06-13 07:32:33 UTC
Checked that lorax-28.14.69-1.el8 is in nightly compose RHEL-8.7.0-20220612.0

Moving to VERIFIED.

Comment 8 errata-xmlrpc 2022-11-08 09:44:40 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 (lorax 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:7584