Bug 1233004

Summary: apply $tuned_params to existing kernels
Product: Red Hat Enterprise Linux 7 Reporter: Luiz Capitulino <lcapitulino>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Tereza Cerna <tcerna>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: jeder, jscotka, jskarvad, tcerna
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tuned-2.5.1-1.el7 Doc Type: Bug Fix
Doc Text:
Cause: Previously there was a bug in the Tuned bootloader plugin regarding initial patching of the grub.cfg. Consequence: Tuned bootloader plugin could ignore existing kernels and didn't add Tuned parameters to them. User was still able to fix it by regeneration of the grub.cfg by running "grub2-mkconfig" command. Fix: The bootloader code was fixed and the initial patching of grub.cfg was improved. Result: The initial patching of grub.cfg now works correctly and user don't need to run "grub2-mkconfig".
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 12:21:56 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:
Bug Depends On: 1246094    
Bug Blocks: 1240765    

Description Luiz Capitulino 2015-06-18 03:12:31 UTC
Description of problem:

tuned doesn't seem to apply $tuned_params to any kernel that was installed before a tuned profile that uses the bootloader plugin is activated. This requires the system administrator to re-generate grub.cfg by hand if s/he wants $tuned_params applied to existing kernels.


Version-Release number of selected component (if applicable): tuned-2.4.1-1.20150616git446596eb.el7.noarch


How reproducible:


Steps to Reproduce:
1. Get a system or a VM with a fresh RHEL installation or an existing installation which doesn't have tuned installed
2. Install tuned
3. Activate any profile that uses kernel parameters
4. Check /boot/grub2/grub.cfg

Actual results:

A line setting $tuned_params will exist, but it won't be applied to any existing kernels.

Expected results:

Existing kernels get $tuned_params applied.

Additional info:

Comment 3 Jaroslav Škarvada 2015-06-29 12:27:14 UTC
Fixed in upstream tuned commit:
https://git.fedorahosted.org/cgit/tuned.git/commit/?id=50dab75105f396f1773893e66566c65e333f4b4c

Also fixed:
- tuned_params aren't added to rescue kernels
- spurious whitespaces aren't added to grub.cfg

Comment 6 errata-xmlrpc 2015-11-19 12:21:56 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-2375.html