ius-community team mailing list archive
-
ius-community team
-
Mailing list archive
-
Message #00119
Re: New yum 'replace' plugin for upgrading to IUS packages
This fixed my problem. Thanks!
-Kurt
On Aug 10, 2010, at 8:18 PM, BJ Dierkes wrote:
> Kurt,
>
> I've updated yum-plugin-replace to version 0.2.4, which is now pushed to ius-testing. Can you please test, and verify that this resolves your issues? You can either wait 24 hours for all mirrors to be updated, or you can pull the packages down directly from:
>
> http://dl.iuscommunity.org/pub/ius/testing
>
> ---
> BJ Dierkes
> Linux Systems Engineer IV / [RH]acker
> Infrastructure Services [Development]
> Rackspace Hosting
>
> On Aug 9, 2010, at 3:24 PM, Kurt Yoder wrote:
>
>> Yes; see notes [2] and [3]:
>>
>> [2]: current package version is yum-plugin-replace-0.2-1.el5
>> [3]: http://github.com/opscode/chef/blob/0.8-stable/chef/lib/chef/provider/package/yum-dump.py
>>
>>
>> -Kurt
>>
>> On Aug 9, 2010, at 4:17 PM, Bj Dierkes wrote:
>>
>>> Can you tell what version of yum-plugin-replace and I'm not familiar with yum-dump... Where can I get this for testing?
>>>
>>> I will be in the office tomorrow and can assist further. Thank you
>>>
>>> Sent from my iPhone
>>>
>>> On Aug 9, 2010, at 3:09 PM, Kurt Yoder <kyoder.loc@xxxxxxxxx> wrote:
>>>
>>>> Hello,
>>>>
>>>> (forewarning: I am writing this as a sysadmin on a CentOS host with IUS installed by the host owner/user, but paltry knowledge of IUS)
>>>>
>>>> I have been running Chef [1] on one of my CentOS 5.5 hosts. Recently, either the host's owner installed IUS, or upgraded it [2], and now CentOS and Chef are no longer on speaking terms. I traced the problem down to a certain "yum-dump.py" [3] script within Chef, which works with stock Yum, but gets very angry when package "yum-plugin-replace" has been installed [4].
>>>>
>>>> It looks like yum-plugin-replace overrode the "preconf" functions within Python's yum. Can someone confirm that this is the case, and suggest a fix and/or workaround for me? Confirming this problem should be simple:
>>>>
>>>> - Retrieve yum-dump.py (from [3])
>>>> - On a system without yum-plugin-replace, run "sudo python yum-dump.py"
>>>> - Install yum-plugin-replace
>>>> - Run "sudo python yum-dump.py" once more
>>>> - (Optional) Bask in your god-like intelligence for knowing how to fix this problem
>>>>
>>>> Thanks,
>>>>
>>>> -Kurt Yoder
>>>>
>>>> [1]: http://opscode.com/chef
>>>> [2]: current package version is yum-plugin-replace-0.2-1.el5
>>>> [3]: http://github.com/opscode/chef/blob/0.8-stable/chef/lib/chef/provider/package/yum-dump.py
>>>> [4]: yum-dump.py output:
>>>> kurt@darmstadtium:~$ sudo python yum-dump.py
>>>> [sudo] password for kurt:
>>>> Traceback (most recent call last):
>>>> File "yum-dump.py", line 104, in ?
>>>> y.doUnlock(PIDFILE)
>>>> File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1167, in doUnlock
>>>> if hasattr(self, 'preconf') or self.conf.uid != 0:
>>>> 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 194, in _getConfig
>>>> fn = self.preconf.fn
>>>> AttributeError: 'YumBase' object has no attribute 'preconf'
>>>> Exception exceptions.AttributeError: "'YumBase' object has no attribute 'preconf'" in <bound method YumBase.__del__ of <yum.YumBase object at 0x2b3e60f80f90>> ignored
>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~ius-community
>>>> Post to : ius-community@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~ius-community
>>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>> Confidentiality Notice: This e-mail message (including any attached or
>>> embedded documents) is intended for the exclusive and confidential use of the
>>> individual or entity to which this message is addressed, and unless otherwise
>>> expressly indicated, is confidential and privileged information of Rackspace.
>>> Any dissemination, distribution or copying of the enclosed material is prohibited.
>>> If you receive this transmission in error, please notify us immediately by e-mail
>>> at abuse@xxxxxxxxxxxxx, and delete the original message.
>>> Your cooperation is appreciated.
>>>
>>
>
--
Kurt Yoder
Systems Administrator, CTR/CACI
(202) 374-9753
References