Bug 905546

Summary: yum repolist all|disabled is throwing a traceback
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: james.antill, tcallawa
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:55:09 UTC Type: Bug
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: 863175    

Description John Sefler 2013-01-29 16:07:20 UTC
Description of problem:
tracebacks are being thrown when calling "yum repolist all" and "yum repolist disabled"

Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -qa | grep yum
yum-3.4.3-47.el7.noarch
yum-metadata-parser-1.1.4-7.el7.x86_64


How reproducible:


Steps to Reproduce:
[root@jsefler-7 ~]# yum repolist
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repolist: 0
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# yum repolist enabled
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repolist: 0
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# yum repolist disabled
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
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 319, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 144, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 485, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1974, in doCommand
    rid = repo.ui_id # can't use str()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 387, in _ui_id
    if '$releasever' in val:
TypeError: argument of type 'Undefined' is not iterable
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# yum repolist all
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
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 319, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 144, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 485, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1974, in doCommand
    rid = repo.ui_id # can't use str()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 387, in _ui_id
    if '$releasever' in val:
TypeError: argument of type 'Undefined' is not iterable
[root@jsefler-7 ~]# 



Actual results:
above

Expected results:


Additional info:

Comment 2 John Sefler 2013-04-28 15:44:49 UTC
This bug appear to be working now with yum version...

[root@jsefler-7 ~]# rpm -q yum
yum-3.4.3-49.el7.noarch


[root@jsefler-7 ~]# yum repolist disabled
Loaded plugins: langpacks, product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id             repo name                                                   
rel-eng-latest      latest-RHEL-7 Server on x86_64                              
rel-eng-snapshot    hand-configured snapshot repo for RHEL-7 Server on x86_64   
repolist: 0
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# 
[root@jsefler-7 ~]# yum repolist all
Loaded plugins: langpacks, product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id          repo name                                              status
rel-eng-latest   latest-RHEL-7 Server on x86_64                         disabled
rel-eng-snapshot hand-configured snapshot repo for RHEL-7 Server on x86 disabled
repolist: 0
[root@jsefler-7 ~]# 


VERIFIED:  yum repolist all|disabled is NO LONGER throwing a traceback

Comment 3 Ludek Smid 2014-06-13 12:55:09 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.