Bug 905544

Summary: yum repolist is including /$releasever/$basearch as a suffix to the repo id
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: james.antill
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-29 16:40:48 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:
Bug Depends On:    
Bug Blocks: 863175    

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.