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 905544 - yum repolist is including /$releasever/$basearch as a suffix to the repo id
Summary: yum repolist is including /$releasever/$basearch as a suffix to the repo id
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2013-01-29 16:01 UTC by John Sefler
Modified: 2014-01-21 06:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-29 16:40:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2013-01-29 16:01:30 UTC
Description of problem:

I am not sure if this is a new feature for RHEL7 or a bug, but when the baseurl of a repo contains $releasever and/or $basearch anywhere in its path, the value listed in the repo id column when calling "yum repolist" will be appended with suffix /$releasever/$basearch.  Is this a new feature?  See example below.


Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -q yum
yum-3.4.3-47.el7.noarch
[root@jsefler-7 ~]# rpm -q --whatprovides /etc/redhat-release 
redhat-release-server-6.92Server-7.0.0.2.el7.x86_64


How reproducible:


Steps to Reproduce:
[root@jsefler-7 ~]# cat /etc/yum.repos.d/test.repo
[test-repo-with-releasever-basearch]
name = test repo with releasever basearch
baseurl = https://cdn.redhat.com/content/dist/rhel/$arch/$basearch/server/6/$releasever/foobar/$base/test/$arch/foo/$uuid/bar
enabled = 1


[root@jsefler-7 ~]# yum repolist 2>/dev/null
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id                                                repo name                            status
test-repo-with-releasever-basearch/6.92Server/x86_64   test repo with releasever basearch   0
repolist: 0
[root@jsefler-7 ~]# 

  
Actual results:
Notice that the repo id reported by yum repolist is "test-repo-with-releasever-basearch/6.92Server/x86_64".  

Expected results:
On RHEL5 or RHEL6, this value would be "test-repo-with-releasever-basearch".

Additional info:

Comment 1 James Antill 2013-01-29 16:40:48 UTC
Yeh, this is expected.


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