Bug 501723

Summary: yum-plugin-tmprepo-1.1.22-1.fc11 causes yum to crash
Product: [Fedora] Fedora Reporter: Siobhan <siobhan>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: aab, a.mani.cms, bjrosen, bugzilla, edgar.hoch, eli, james.antill, joe.christy, jwalant.soneji, mathguthrie, pmatilai, the.hw.group, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-12 14:26:45 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:

Description Siobhan 2009-05-20 13:57:24 UTC
Description of problem:

Installing yum-plugin-tmprepo-1.1.22-1.fc11.noarch from updates-testing causes yum to fail unless the plugin is disabled (--disableplugin=yum-tmprepo).


Version-Release number of selected component (if applicable):

yum-plugin-tmprepo-1.1.22-1.fc11.noarch


How reproducible:

Install yum-plugin-tmprepo-1.1.22-1.fc11.noarch


Steps to Reproduce:
1. Enable updates-testing repo for F11
2. yum install yum-plugin-tmprepo-1.1.22-1.fc11.noarch
3. Issue any yum command without --disableplugin=yum-tmprepo


Actual results:

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 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 189, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 649, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 237, in _getConfig
    startupconf.pluginconfpath,disabled_plugins,enabled_plugins)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 408, in doPluginSetup
    plugin_types, confpath, disabled_plugins, enabled_plugins)
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 163, in __init__
    self.run('config')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 180, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/tmprepo.py", line 179, in config_hook
    parser.values.tmp_repos = []
AttributeError: OptionGroup instance has no attribute 'values'


Expected results:

Expect yum to function without fatal python errors.


Additional info:

=================================================================================================================================================================================
 Package                                        Arch                               Version                                     Repository                                   Size
=================================================================================================================================================================================
Installing:
 yum-plugin-tmprepo                             noarch                             1.1.22-1.fc11                               updates-testing                              13 k

Transaction Summary
=================================================================================================================================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 13 k
Is this ok [y/N]: y
Downloading Packages:
yum-plugin-tmprepo-1.1.22-1.fc11.noarch.rpm                                                                                                               |  13 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : yum-plugin-tmprepo-1.1.22-1.fc11.noarch                                                                                                                   1/1 

Installed:
  yum-plugin-tmprepo.noarch 0:1.1.22-1.fc11                                                                                                                                      

Complete!
[root@xxxxxxxxxx ~]# yum update
Loaded plugins: aliases, allowdowngrade, changelog, downloadonly, fastestmirror, filter-data, keys, list-data, merge-conf, priorities, protect-packages, refresh-packagekit,
              : refresh-updatesd, remove-with-leaves, tmprepo, verify, versionlock
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 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 189, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 649, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 237, in _getConfig
    startupconf.pluginconfpath,disabled_plugins,enabled_plugins)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 408, in doPluginSetup
    plugin_types, confpath, disabled_plugins, enabled_plugins)
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 163, in __init__
    self.run('config')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 180, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/tmprepo.py", line 179, in config_hook
    parser.values.tmp_repos = []
AttributeError: OptionGroup instance has no attribute 'values'

[root@xxxxxxxxxx ~]# yum --disableplugin=tmprepo remove yum-tmprepo
Loaded plugins: aliases, allowdowngrade, changelog, downloadonly, fastestmirror, filter-data, keys, list-data, merge-conf, priorities, protect-packages, refresh-packagekit,
              : refresh-updatesd, remove-with-leaves, verify, versionlock
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package yum-plugin-tmprepo.noarch 0:1.1.22-1.fc11 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================
 Package                                          Arch                                 Version                                     Repository                               Size
=================================================================================================================================================================================
Removing:
 yum-plugin-tmprepo                               noarch                               1.1.22-1.fc11                               installed                               7.6 k

Transaction Summary
=================================================================================================================================================================================
Install      0 Package(s)         
Update       0 Package(s)         
Remove       1 Package(s)         

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : yum-plugin-tmprepo-1.1.22-1.fc11.noarch                                                                                                                   1/1 

Removed:
  yum-plugin-tmprepo.noarch 0:1.1.22-1.fc11                                                                                                                                      
Complete!

Comment 1 James Antill 2009-05-20 14:07:08 UTC
  File "/usr/lib/yum-plugins/tmprepo.py", line 179, in config_hook
    parser.values.tmp_repos = []
AttributeError: OptionGroup instance has no attribute 'values'

...delete that line and it'll work, it's fixed upstream but no new yum-utils yet.

Comment 2 Bug Zapper 2009-06-09 16:10:32 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Joe Christy 2009-06-17 19:59:07 UTC
This also affects F10

Comment 4 John Guthrie 2009-06-19 15:38:34 UTC
*** Bug 506229 has been marked as a duplicate of this bug. ***

Comment 5 Andrew Burgess 2009-06-20 19:59:52 UTC
Just happened to me in fc10 with yum-plugin-tmprepo.noarch 0:1.1.22-1.fc10 from updates. I deleted the package to work around it.

Comment 6 Yuri Timofeev 2009-06-22 13:01:17 UTC
I confirm, also worked :
rpm -e yum-plugin-tmprepo

Comment 7 James Antill 2009-06-22 14:36:52 UTC
*** Bug 507008 has been marked as a duplicate of this bug. ***

Comment 8 James Antill 2009-06-22 17:55:55 UTC
*** Bug 507417 has been marked as a duplicate of this bug. ***

Comment 9 John Guthrie 2009-06-23 03:05:59 UTC
(In reply to comment #5)
> Just happened to me in fc10 with yum-plugin-tmprepo.noarch 0:1.1.22-1.fc10 from
> updates. I deleted the package to work around it.  

I was able to work around simply by disabling the plugin in /etc/yum/pluginconf.d/tmprepo.conf.  In that file, change

enabled=1

to read

enabled=0

and yum should work again.

Comment 10 John Guthrie 2009-06-23 03:14:03 UTC
Also, shouldn't we think about changing the affected component of this bug from yum-utils to yum-plugin-tmprepo?

Comment 11 James Antill 2009-07-23 04:11:16 UTC
*** Bug 513319 has been marked as a duplicate of this bug. ***

Comment 12 seth vidal 2009-09-08 19:38:43 UTC
*** Bug 521469 has been marked as a duplicate of this bug. ***

Comment 13 seth vidal 2009-10-12 14:26:45 UTC
this is fixed in latest f11 yum-utils.

Comment 14 seth vidal 2009-10-12 21:22:24 UTC
*** Bug 506515 has been marked as a duplicate of this bug. ***