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:
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.