Bug 506229

Summary: After update running yum produces errors
Product: [Fedora] Fedora Reporter: Eli Wapniarski <eli>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 11CC: ffesti, james.antill, mathguthrie, pmatilai, 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-06-19 15:38:34 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 Eli Wapniarski 2009-06-16 08:17:29 UTC
This is urgent, because people will be upgrading complete systems and this update breaks the packaging system. If a system upgrade is interrupted for any reason the computer can very easily be left in a completely broken state.

I just updated yum to version 3.2.23-3.fc11 plus plugins to version 1.1.22-1.fc11 on both x86_64 and i586 platforms

Both systems gives the following error

yum clean all                                                                                                                         
/usr/lib/yum-plugins/fedorakmod.py:25: DeprecationWarning: the sets module is deprecated                                                                     
  from sets import Set                                                                                                                                       
Loaded plugins: aliases, allowdowngrade, auto-update-debuginfo, basearchonly, changelog, dellsysidplugin2, downloadonly, fastestmirror, fedorakmod, filter-  
              : data, keys, kmdl, list-data, merge-conf, post-transaction-actions, presto, priorities, protect-packages, protectbase, refresh-packagekit,    
              : refresh-updatesd, remove-with-leaves, rpm-warm-cache, security, show-leaves, tmprepo, tsflags, upgrade-helper, 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 652, 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'

Comment 1 Eli Wapniarski 2009-06-16 09:15:45 UTC
To Follow up, downgrading yum and plugins to previous version cleared up the problem.

Comment 2 seth vidal 2009-06-16 14:16:52 UTC
You were running an upgrade and the transaction was interrupted? If so, then, yes, things can break. There is no way to roll things back - it's not an atomic transaction.

Comment 3 John Guthrie 2009-06-16 16:54:18 UTC
I just ran into this issue under Fedora 10.  I was able to fix the issue by editing the file /etc/yum/pluginconf.d/tmprepo.conf and disabling the value of the "enabled" setting to 0.  I did notice that when I did the update, it appeared that the tmprepo plugin had been rolled into yum.  Is it possible that there is some kind of incompatibility between the configuration file format for tmprepo as a separate plugin and tmprepo as part of the main package?  (Or should the tmprepo.conf file just be removed?)

Comment 4 Eli Wapniarski 2009-06-16 17:16:44 UTC
(In reply to comment #2)
> You were running an upgrade and the transaction was interrupted? If so, then,
> yes, things can break. There is no way to roll things back - it's not an atomic
> transaction.  

No. My system is and I'm OK. What I'm warning about are those people like me that use yum to upgrade there systems. I know, I know, Its not recommended. However, I have not used a CD / DVD to upgrade a Fedora machine since version 4.

Yum will pull the packages from the updates repository and in the off chance something happens to interrupt the upgrade from 10 to 11, then that could very easily leave the computer in a completely broken state with no way to continue with the upgrade.

I'm waiting for an answer to comment 3 before trying again with the latest version.

Comment 5 Eli Wapniarski 2009-06-16 17:30:10 UTC
OK. I just upgraded yum and plugins again and applied the workaround as outlined by John in Comment 3. Everything is OK

Comment 6 John Guthrie 2009-06-19 14:52:01 UTC
(In reply to comment #3)
> the "enabled" setting to 0.  I did notice that when I did the update, it
> appeared that the tmprepo plugin had been rolled into yum.

It looks like this was slightly incorrect.  It appears that the yum-tmprepo changed its package name to yum-plugins-tmprepo.  This may actually be a bug in that package.

Comment 7 John Guthrie 2009-06-19 15:38:34 UTC
It looks like this is the same as bug #501723.

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