Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 576803

Summary: yum-rhn-plugin fails with traceback (AttributeError: 'module' object has no attribute 'channel_blacklist')
Product: [Community] Spacewalk Reporter: Michael Mráka <mmraka>
Component: ClientsAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Kastner <jkastner>
Severity: medium Docs Contact:
Priority: low    
Version: 0.9CC: jkastner
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 576807 (view as bug list) Environment:
Last Closed: 2010-05-05 15:01:20 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:
Bug Depends On:    
Bug Blocks: 559281, 576807    

Description Michael Mráka 2010-03-25 09:49:05 UTC
Description of problem:
yum-rhn-plugin fails with traceback


Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
yum-rhn-plugin-0.9.1-1.el5.noarch
yum-3.2.22-20.el5.noarch
rhn-client-tools-0.9.6-1.el5.noarch

How reproducible:
always

Steps to Reproduce:
1. yum update
2.
3.
  
Actual results:
[root@xen36 ~]# yum update
Loaded plugins: rhnplugin, security
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 157, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 664, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 253, in _getConfig
    self.plugins.run('init')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/share/yum-plugins/rhnplugin.py", line 156, in init_hook
    if channel['label'] not in rhnChannel.channel_blacklist \
AttributeError: 'module' object has no attribute 'channel_blacklist'

Expected results:
yum update works

Additional info:

Comment 1 Jan Pazdziora (Red Hat) 2010-03-25 10:04:15 UTC
Fixed in Spacewalk master 1f60bc6392517a637e991a0d8662ea64dc70215d.

Comment 2 Jan Pazdziora (Red Hat) 2010-03-25 10:06:30 UTC
Tagged and built as yum-rhn-plugin-0.9.2-1.

Comment 4 Jiri Kastner 2010-04-13 12:08:48 UTC
verified on rhel5 with packages from spacewalk-client-nightly repo:
rpm -qa yum-rhn-plugin yum rhn-client-tools
yum-3.2.22-26.el5
yum-rhn-plugin-0.9.2-1.el5
rhn-client-tools-1.0.0-1.el5

Comment 5 Miroslav Suchý 2010-05-05 15:01:20 UTC
This bug has been fixed in Spacewalk 1.0.
Closing.