[Spacewalk-list] rhn-plugin error
Crook, Parker
Parker_Crook at reyrey.com
Thu Jan 7 15:39:55 UTC 2010
Justin,
I switched my spacewalk-client-tools child channel to sync from
http://stahnma.fedorapeople.org/spacewalk-tools/5/i386
to:
http://spacewalk.redhat.com/yum/0.7-client/RHEL/5/i386
However, now when I try to register a system to spacewalk using rhnreg_ks, I
get the following error:
Traceback (most recent call last):
File "/usr/sbin/rhnreg_ks", line 31, in ?
from up2date_client import rhnreg
File "/usr/share/rhn/up2date_client/rhnreg.py", line 21, in ?
import hardware
File "/usr/share/rhn/up2date_client/hardware.py", line 21, in ?
import ethtool
ImportError: No module named ethtool
The kickstarted system is CentOS 5.4, 32 bit. Any ideas?
Thanks,
PC
-----Original Message-----
From: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Justin Sherrill
Sent: Wednesday, January 06, 2010 5:21 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] rhn-plugin error
Crook, Parker wrote:
> Justin,
>
> I have yum-rhn-plugin-0.5.3-6.el5.6 installed
I'd try using the most recent official build located in spacewalk's
client repo:
http://spacewalk.redhat.com/yum/0.7-client/RHEL/5/i386/yum-rhn-plugin-0.7.8-
1.el5.noarch.rpm
-Justin
>
> -PC
>
> -----Original Message-----
> From: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Justin Sherrill
> Sent: Wednesday, January 06, 2010 2:54 PM
> To: spacewalk-list at redhat.com
> Subject: Re: [Spacewalk-list] rhn-plugin error
>
> Crook, Parker wrote:
>> After getting all of the spacewalk client tools packages added to the
>> package list for kickstarting CentOS 5.4 clients, I noticed that yum was
>> broken on my kickstarted machines:
>>
>>
>>
>> [root at localhost ~]# yum update
>>
>> Loaded plugins: changelog, fastestmirror, protect-packages, rhnplugin
>>
>> Traceback (most recent call last):
>>
>> File "/usr/bin/yum", line 29, in ?
>>
>> 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 187, in getOptionsConfig
>>
>> self.conf
>>
>> 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 253, in
>> _getConfig
>>
>> self.plugins.run('init')
>>
>> File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in
run
>>
>> func(conduitcls(self, self.base, conf, **kwargs))
>>
>> File "/usr/lib/yum-plugins/rhnplugin.py", line 145, in init_hook
>>
>> repo = RhnRepo(channel)
>>
>> File "/usr/lib/yum-plugins/rhnplugin.py", line 243, in __init__
>>
>> self.metadata_cookie = 'cookie'
>>
>> AttributeError: can't set attribute
>>
>>
>>
>> So I looked around and found out that if you comment out the lines below
>> (in /usr/lib/yum-plugins/rhnplugin.py), all is well:
>>
>> self.metadata_cookie = 'cookie'
>>
>> self.metadata_expire = 0
>>
>>
>>
>> So I went ahead and added the following sed script to my kickstart file
>> in order to take care of this during provisioning:
>>
>>
>>
>> sed -i -e
>> 's/.*self\.metadata_cookie.*/#&/;s/.*self\.metadata_expire.*/#&/;'
>> /usr/lib/yum-plugins/rhnplugin.py
>>
>>
>>
>> Anybody else out there that has run across this? Is this a viable
>> solution to the problem? if so I hope this helps someone else.
>>
>>
>>
>> -PC
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
> What version of yum-rhn-plugin do you have installed?
>
> -Justin
>
> --
> Justin Sherrill, RHCA 1801 Varsity Drive.
> Software Engineer Raleigh, NC 27603
> Red Hat, Inc.
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
--
Justin Sherrill, RHCA 1801 Varsity Drive.
Software Engineer Raleigh, NC 27603
Red Hat, Inc.
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5129 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20100107/183d5992/attachment.bin>
More information about the Spacewalk-list
mailing list