Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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