Centos: Kernel update failed

Published by

Posted on April 27, 2016

We encountered a error during a yum update. Something told me not to reboot but I did anyway and the system failed to come back online.

 

error:

Installing : kernel-2.6.32-673.8.1.lve1.4.3.el6.x86_64 13/82Traceback (most recent call last):
File “/usr/lib/python2.6/site-packages/yum/rpmtrans.py”, line 470, in callback
self._scriptStop(bytes, total, h);
File “/usr/lib/python2.6/site-packages/yum/rpmtrans.py”, line 636, in _scriptStop
name, txmbr = self._getTxmbr(h)
File “/usr/lib/python2.6/site-packages/yum/rpmtrans.py”, line 331, in _getTxmbr
assert len(txmbrs) == 1
AssertionError
error: python callback <bound method RPMTransaction.callback of <yum.rpmtrans.RPMTransaction instance at 0x1061b90>> failed, aborting!

 

Resolution

To get the server back up , I had to enable rescue mode remotely. ( Yep I updated a kernel remotely.) After which i commented out the kernel version that failed the update in Grub,conf . Rebooted the server and force a reinstall of the kernel, kernel-headers and kernel-debug

yum reinstall kernel or in this case rum reinstall kernel-2.6.32-673.8.1.lve1.4.3.el6

yum will reinstall the kernel , update grub.conf and generated the kernel images. It will also generate the ram disk image initramfs

The last thing i need to do was change the default kernel setting in grub.conf. I need to ensure the default was set to my new kernel.

example default=x

Additional info

CreateNewInitrd