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 687876

Summary: Enabled repo with no urls (should be impossible) makes yum-debug-dump traceback
Product: Red Hat Enterprise Linux 6 Reporter: Red Hat Case Diagnostics <case-diagnostics>
Component: yum-utilsAssignee: James Antill <james.antill>
Status: CLOSED CANTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: ksrot, pknirsch
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:672e1204
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-10 14:36:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Red Hat Case Diagnostics 2011-03-15 16:10:33 UTC
This description generated by Andreas from an ABRT report
architecture: x86_64
cmdline: /usr/bin/python -tt /usr/bin/yum-debug-dump
component: yum-utils
executable: /usr/bin/yum-debug-dump
kernel: 2.6.32-71.el6.x86_64
package: yum-utils-1.1.26-11.el6
reason: yum-debug-dump:78:dump_repos:IndexError: list index out of range
release: Red Hat Enterprise Linux Server release 6.0 (Santiago)
time: 1300205401
uid: 0
backtrace: yum-debug-dump:78:dump_repos:IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/bin/yum-debug-dump", line 206, in <module>
    main()
  File "/usr/bin/yum-debug-dump", line 202, in main
    fn = my.create_debug_file(fn=filename)
  File "/usr/bin/yum-debug-dump", line 178, in create_debug_file
    fo.write(self.dump_repos())
  File "/usr/bin/yum-debug-dump", line 78, in dump_repos
    msg += '%%%s - %s\n' % (repo.id, repo.urls[0])
IndexError: list index out of range

Local variables in innermost frame:
repo: <yum.yumRepo.YumRepository object at 0x1c91f50>
msg: '%%%%REPOS\n'
self: <__main__.YumDebugDump object at 0x1988ad0>

Comment 1 Red Hat Case Diagnostics 2011-03-15 16:10:53 UTC
Created attachment 485538 [details]
File: backtrace

Comment 4 RHEL Program Management 2011-04-04 02:00:01 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 9 Karel Srot 2011-07-27 11:38:38 UTC
Hi James,
I am unable to reproduce this bug. Do you know the reproducer?

Comment 10 James Antill 2011-07-27 19:59:28 UTC
 No idea, as I said ... it should be impossible.

 You can write some code to do it, using the yum API just create a Repo that has an empty .urls ... but I think a lot of stuff will break.
 My guess is something went wrong in rhnplugin, maybe due to the new caching repos. thing (although the git code was added using a file:// url, so that shouldn't be it).

Comment 15 James Antill 2012-01-10 14:36:16 UTC
Can't reproduce, should be impossible, and customer has closed out their ticket. Closing.