Bug 687887 - Command "yum repolist" generates Traceback when system is not registered to RHN.
Summary: Command "yum repolist" generates Traceback when system is not registered to ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Client
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2011-03-15 16:28 UTC by Dimitar Yordanov
Modified: 2012-03-15 15:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 15:49:21 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Dimitar Yordanov 2011-03-15 16:28:31 UTC
Description of problem:
Command "yum repolist"  generates Traceback when system is not registered to RHN.

Version-Release number of selected component (if applicable):
REHL6.1
yum-3.2.29-7.el6.noarch
yum-rhn-plugin-0.9.1-19.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1.rm -f /etc/sysconfig/rhn/systemid
2.yum repolist
  
Actual results:
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
INFO:rhsm-app.repolib:repos updated: 0
This system may not be a registered to RHN. SystemId could not be acquired.
RHN Satellite or RHN Classic support will be disabled.
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 267, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 120, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 432, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1025, in doCommand
    if nm_len < utf8_width(rname):
  File "/usr/lib/python2.6/site-packages/yum/i18n.py", line 218, in utf8_width
    for (ucs, bytes) in __utf8_iter_ucs(msg):
  File "/usr/lib/python2.6/site-packages/yum/i18n.py", line 174, in __utf8_iter_ucs
    for byte0 in uiter:
  File "/usr/lib/python2.6/site-packages/yum/i18n.py", line 170, in __utf8_iter_ints
    for byte in to_utf8(msg):
TypeError: 'NoneType' object is not iterable
[root@dell-per300-01 BKup]# rpm -q yum 
yum-3.2.29-7.el6.noarch


Expected results:
No traceback

Additional info:

Comment 1 Jan Pazdziora 2012-03-15 15:16:51 UTC
I'm not able to reproduce on RHEL 6.1 with

yum-3.2.29-21.el6.noarch
yum-rhn-plugin-0.9.1-26.el6_1.1.noarch

Can you upgrade your yum and retest? If you still get the traceback, can you remove yum-rhn-plugin and retest, to see if it's a bug in yum or yum-rhn-plugin?

Comment 2 Dimitar Yordanov 2012-03-15 15:42:50 UTC
Hi Jan, 

 I am not able to reproduce it as well.

 # mv /etc/sysconfig/rhn/systemid{,.SAVE}
 # yum repolist
 Loaded plugins: rhnplugin
 This system is not registered with RHN.
 RHN Satellite or RHN Classic support will be disabled.
 repolist: 0
 # rpm -q yum
 yum-3.2.29-22.el6_2.2.noarch


Dimi

Comment 3 Jan Pazdziora 2012-03-15 15:49:21 UTC
Great, let's CURRENTRELEASE it.


Note You need to log in before you can comment on or make changes to this bug.