[Spacewalk-list] yum error

Bushby, Bruce (London)(c) bbushby at maninvestments.com
Fri Jan 22 16:54:18 UTC 2010


I first had spacewalk 0.6 running on centos 5.3 (32bit) and I was unable to register a fedora 12 host (rhnreg_ks)

I then tried to register a rhel 5.3 host to my spacewalk 0.6 on centos 5.3 and I received an error. On the client I was trying to register (rhel 5.3) I installed
Python's hashlib and then it was ok.

I think there are problems with the newer versions of yum and the deprecation of md5 etc.



-----Original Message-----
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Brian Whitehead
Sent: 22 January 2010 16:36
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] yum error

I've seen a lot of python related issues with spacewalk on fedora 12.
They seem to be related to the fact that it comes with python 2.6.  I don't have the same problems on rhel5.4.  I know it doesn't help, but you are not alone.

Brian


On Thu, Jan 21, 2010 at 3:58 AM, ondrej hadamek <ondrej.hadamek at acision.com> wrote:
> Hello I have clean instalation of spacewalk 0.7 (not yet used) I am 
> polishing my kickstarts - It sucessfully register and all the stuff 
> but when iam trying to install new packages from web UI iam getting :        
> Fatal error in Python code occured [[6]] Also when trying to 
> install/search packages from my registered computer iam getting
>
> #yum search aa
> Loaded plugins: refresh-packagekit, rhnplugin 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 315, in user_main
>    errcode = main(args)
>  File "/usr/share/yum-cli/yummain.py", line 180, in main
>    result, resultmsgs = base.doCommands()
>  File "/usr/share/yum-cli/cli.py", line 351, in doCommands
>    return self.yum_cli_commands[self.basecmd].doCommand(self, 
> self.basecmd,
> self.extcmds)
>  File "/usr/share/yum-cli/yumcommands.py", line 631, in doCommand
>    return base.search(extcmds)
>  File "/usr/share/yum-cli/cli.py", line 802, in search
>    for (po, keys, matched_value) in matching:
>  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1970, 
> in searchGenerator
>    for sack in self.pkgSack.sacks.values():
>  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 720, in 
> <lambda>
>    pkgSack = property(fget=lambda self: self._getSacks(),
>  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 549, in 
> _getSacks
>    self.repos.populateSack(which=repos)
>  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 277, in 
> populateSack
>    sack.populate(repo, mdtype, callback, cacheonly)
>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 164, in 
> populate
>    if self._check_db_version(repo, mydbtype):
>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 223, in 
> _check_db_version
>    return repo._check_db_version(mdtype)
>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1245, in 
> _check_db_version
>    repoXML = self.repoXML
>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1408, in 
> <lambda>
>    repoXML = property(fget=lambda self: self._getRepoXML(),
>  File "/usr/share/yum-plugins/rhnplugin.py", line 478, in _getRepoXML
>    return YumRepository._getRepoXML(self)
>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1400, in 
> _getRepoXML
>    self._loadRepoXML(text=self)
>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1390, in 
> _loadRepoXML
>    return self._groupLoadRepoXML(text, mdtypes)
>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1367, in 
> _groupLoadRepoXML
>    if self._commonLoadRepoXML(text):
>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1220, in 
> _commonLoadRepoXML
>    result = self._getFileRepoXML(local, text)
>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 999, in 
> _getFileRepoXML
>    size=102400) # setting max size as 100K
> TypeError: _getFile() got an unexpected keyword argument 'size'
>
>
> Ondrej
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential 
> information and/or be subject to legal privilege. It should not be 
> copied, disclosed to, retained or used by, any other party. If you are 
> not an intended recipient then please promptly delete this e-mail and 
> any attachment and all copies and inform the sender. Thank you.
>
>
> _______________________________________________
> 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

**********************************************************************
 Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addressees only.  It contains information which may be confidential and privileged.  If you are not the intended recipient, please notify the sender immediately, destroy this email and any attachments and do not otherwise disclose or use them. Email transmission is not a secure method of communication and Man Investments cannot accept responsibility for the completeness or accuracy of this email or any attachments. Whilst Man Investments makes every effort to keep its network free from viruses, it does not accept responsibility for any computer virus which might be transferred by way of this email or any attachments. This email does not constitute a request, offer, recommendation or solicitation of any kind to buy, subscribe, sell or redeem any investment instruments or to perform other such transactions of any kind. Man Investments reserves the right to monitor, record and retain all electronic communications through its network to ensure the integrity of its systems, for record keeping and regulatory purposes. 
Visit us at: www.maninvestments.com 
TG0908
**********************************************************************





More information about the Spacewalk-list mailing list