Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 438198

Summary: pup - backtrace on repository disabling via Repository Manager
Product: Red Hat Enterprise Linux 5 Reporter: Michal Nowak <mnowak>
Component: pirutAssignee: James Antill <james.antill>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: bkearney, ohudlick
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: 2008-03-19 20:22:01 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
yum config file
none
Our local server is dead this is "OK" from pup POV
none
Unchecking the selected one backtraces immediately
none
backtrace none

Description Michal Nowak 2008-03-19 17:24:21 UTC
Description of problem:

started pup then I got msg that is not possible to get repomd.xml file (the
rerver is dead AFAIK), then I choose to edit config  file via Repository
Manager, unchecked rhel-5-server and got backtrace

Component: pirut
Summary: TBff145c36 yumRepo.py:348:disablePersistent:AttributeError: 'RhnRepo'
object has no attribute 'cfg'

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/pirut/RepoSelector.py", line 395, in
_repoToggled
    repo.disablePersistent()
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 348, in
disablePersistent
    self.cfg.set(self.id, 'enabled', '0')
AttributeError: 'RhnRepo' object has no attribute 'cfg'

Local variables in innermost frame:
self: rhel-i386-server-5

Version-Release number of selected component (if applicable):
pirut-1.3.28-12.el5

How reproducible:
always

Actual results:
traceback && quit

Expected results:
disabled repo

Additional info:
see attached /etc/yum.conf

It's happening only on this one repo, others are possible to enable/disable.

Comment 1 Michal Nowak 2008-03-19 17:24:21 UTC
Created attachment 298544 [details]
yum config file

Comment 2 Michal Nowak 2008-03-19 17:33:29 UTC
Created attachment 298547 [details]
Our local server is dead this is "OK" from pup POV

Comment 3 Michal Nowak 2008-03-19 17:34:41 UTC
Created attachment 298548 [details]
Unchecking the selected one backtraces immediately

Comment 4 Michal Nowak 2008-03-19 17:34:59 UTC
Created attachment 298549 [details]
backtrace

Comment 5 James Antill 2008-03-19 20:22:01 UTC

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