Bug 753668

Summary: yum repolist --verbose lists baseurls twice in RHEL6
Product: Red Hat Enterprise Linux 6 Reporter: Marcus Furlong <furlongm>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: 7andrew, pknirsch
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-16 20:07:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marcus Furlong 2011-11-14 04:00:35 UTC
Description of problem:
Two possibly related issues. yum repolist --verbose does not list all the baseurl defined in a .repo file. On RHEL5 this is the only issue. On RHEL6, the same issue occurs, but yum repolist also seems to list the Repo-baseurl twice:

# yum repolist enabled --verbose
Loading "rhnplugin" plugin
Loading "etckeeper" plugin
Loading "priorities" plugin
Loading "product-id" plugin
Loading "security" plugin
Loading "subscription-manager" plugin
Updating Red Hat repositories.
Config time: 0.077
Yum Version: 3.2.29
Looking for repo options for [rhel-x86_64-server-6]
Looking for repo options for [rhel-x86_64-server-optional-6]
Setting up Package Sacks
pkgsack time: 0.026
Repo-id      : epel
Repo-name    : Extra Packages for Enterprise Linux 6 - x86_64
Repo-revision: 1321145355
Repo-tags    : binary-x86_64
Repo-updated : Sun Nov 13 12:00:51 2011
Repo-pkgs    : 6,560
Repo-size    : 6.1 G
Repo-baseurl : http://ftp.swin.edu.au/epel/6/x86_64
Repo-baseurl : http://ftp.swin.edu.au/epel/6/x86_64/
Repo-expire  : 21,600 second(s) (last: Mon Nov 14 14:43:18 2011)

Repo-id      : rhel-x86_64-server-6
Repo-name    : Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)
Repo-updated : Thu Nov 10 00:10:14 2011
Repo-pkgs    : 5,577
Repo-size    : 6.7 G
Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-6
Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-6
Repo-expire  : 21,600 second(s) (last: Mon Nov 14 14:43:22 2011)

Repo-id      : rhel-x86_64-server-optional-6
Repo-name    : RHEL Server Optional (v. 6 64-bit x86_64)
Repo-updated : Thu Nov 10 00:10:14 2011
Repo-pkgs    : 3,656
Repo-size    : 3.6 G
Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-optional-6
Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-optional-6
Repo-expire  : 21,600 second(s) (last: Mon Nov 14 14:43:24 2011)

Ideally this should be fixed to output all baseurls for a given repo, rather than outputting one Repo-baseurl multiple times.

Comment 2 Marcus Furlong 2011-11-16 06:59:58 UTC
Seems it was the formatting in my repo file that caught me out:

https://lists.dulug.duke.edu/pipermail/yum/2005-October/007643.html

There needs to be whitespace before the second baseurl in the repo file. Maybe the documentation should be updated to more clear?

For the second issue, Repo-baseurl is still listed twice in RHEL6, as opposed to once in RHEL5.

Comment 3 James Antill 2011-11-16 20:07:53 UTC

*** This bug has been marked as a duplicate of bug 697885 ***