Hello,
Thanks for reporting this, especially with a solution.
We'll work on getting this fixed.
Thanks
Troy

Yannick Perret wrote:
Hello,

I got some troubles with 'yum' on SL5x 64bit. In some cases (seems to depend of the order of packages) yum fail to install kernel with a crash message:
# yum install kernel
Loaded plugins: downloadonly, kernel-module
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:2.6.18-164.el5 set to be updated
--> Finished Dependency Resolution
Beginning Kernel Module Plugin
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 229, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 145, in main
    (result, resultmsgs) = base.buildTransaction()
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 649, in buildTransaction
    self.plugins.run('postresolve', rescode=rescode, restring=restring)
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 176, in run
    func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/kernel-module.py", line 253, in postresolve_hook
    removekernels = remove_kernels(conduit)
  File "/usr/lib/yum-plugins/kernel-module.py", line 115, in remove_kernels
    if txmbr.name in KERNELS and txmbr.ts_state in ('e'):
TypeError: 'in <string>' requires string as left operand

The problem seems to come from /usr/lib/yum-plugins/kernel-module.py. Just changing the ('e') for ('e',) at line 115 solved the problem. Of course we do activate that plugin in our configuration, but the problem seems to occur or not depending of when the kernel package is installed (upgraded).

Here is the exact package/version:
# rpm -qf /usr/lib/yum-plugins/kernel-module.py
yum-3.2.19-25.sl.noarch


Best regards,
--
Yannick Perret
CC-IN2P3



--
__________________________________________________
Troy Dawson  daw...@fnal.gov  (630)840-6468
Fermilab  ComputingDivision/LSCS/CSI/USS Group
__________________________________________________

Reply via email to