Bug 1170369

Summary: kpatch: "kpatch install" is broken due to missing dracut dependencies
Product: Red Hat Enterprise Linux 7 Reporter: Josh Poimboeuf <jpoimboe>
Component: kpatchAssignee: Josh Poimboeuf <jpoimboe>
Status: CLOSED ERRATA QA Contact: Linqing Lu <lilu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jstancek, sjenning
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kpatch-0.1.10-4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 13:40:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Josh Poimboeuf 2014-12-03 22:20:20 UTC
Description of problem:

Running "kpatch install" fails to load the patch module after a reboot.  The syslog shows the following errors:

Dec 03 16:47:49 hp-dl160gen8-02.khw.lab.eng.bos.redhat.com dracut-pre-udev[404]: /usr/sbin/kpatch: line 125: readelf: command not found
Dec 03 16:47:49 hp-dl160gen8-02.khw.lab.eng.bos.redhat.com dracut-pre-udev[404]: /usr/sbin/kpatch: line 125: awk: command not found
Dec 03 16:47:49 hp-dl160gen8-02.khw.lab.eng.bos.redhat.com dracut-pre-udev[404]: cat: /sys/kernel/kpatch/patches//enabled: No such file or directory
Dec 03 16:47:49 hp-dl160gen8-02.khw.lab.eng.bos.redhat.com dracut-pre-udev[404]: /usr/sbin/kpatch: line 125: readelf: command not found
Dec 03 16:47:49 hp-dl160gen8-02.khw.lab.eng.bos.redhat.com dracut-pre-udev[404]: /usr/sbin/kpatch: line 125: awk: command not found
Dec 03 16:47:49 hp-dl160gen8-02.khw.lab.eng.bos.redhat.com dracut-pre-udev[404]: kpatch: error: cannot re-enable patch module , cannot verify checksum match

This is a regression caused by bug 1148852.  Some new dependencies (readelf and awk) were added to the kpatch script, but the kpatch dracut module code wasn't updated to specify them.

Version-Release number of selected component (if applicable):
kpatch-0.1.10-3.el7.noarch

How reproducible:
kpatch install and reboot

Steps to Reproduce:
1. yum install http://download.devel.redhat.com/brewroot/work/tasks/8247/8328247/kpatch-patch-7.1-0.210.el7.x86_64.rpm
2. yum install http://download.eng.bos.redhat.com/redhat/brewroot/packages/kernel/3.10.0/210.el7/x86_64/kernel-3.10.0-210.el7.x86_64.rpm
3. reboot
4. kpatch list

Actual results:
The installed patch module is not loaded after a reboot.

Expected results:
The installed patch module is loaded after a reboot.

Additional info:
Fixed upstream with https://github.com/dynup/kpatch/pull/473

Comment 4 errata-xmlrpc 2015-03-05 13:40:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0296.html