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 1240771

Summary: Installing a new kernel causes garbage to be added to grub.cfg
Product: Red Hat Enterprise Linux 7 Reporter: Luiz Capitulino <lcapitulino>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: jeder, jskarvad
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-16 11:51:54 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:    
Bug Blocks: 1240765    
Attachments:
Description Flags
grub.cfg with garbage none

Description Luiz Capitulino 2015-07-07 17:26:26 UTC
Created attachment 1049504 [details]
grub.cfg with garbage

Description of problem:

Installing a new kernel on a system using the realtime-virtual-host profile causes tuned to add garbage to the grub.cfg file. The garbage is added to the "set tuned_param" line, like:

### BEGIN /etc/grub.d/00_tuned ###
set tuned_params="isolcpus=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,12,13,14,15,8,10,12,14=1,3,5,7,9,11,1
[...]

This goes on and on for several lines. I'll attach the full grub.cfg for inspection.

A system with this grub.cfg won't boot. GRUB will print an error message before printing its prompt. The only way around this I could find was to boot with a rescue DVD and re-generate the grub.cfg file by hand.

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


How reproducible:


Steps to Reproduce:
1. Install the realtime-virtual-host profile from (https://github.com/jeremyeder/tuned-profiles-realtime)
2. Install a new kernel

Comment 1 Jeremy Eder 2015-07-13 20:20:53 UTC
I have seen something very similar....never figured out how to reproduce it.

https://bugzilla.redhat.com/show_bug.cgi?id=1152550

Comment 2 Jaroslav Škarvada 2015-07-16 11:42:48 UTC
I think it is a race somewhere, e.g. the grub.cfg is probably simultaneously modified by two different processes. The source of this problem is currently unknown to me and I wasn't able to reproduce it, but I am still trying.

Comment 3 Jeremy Eder 2015-07-16 11:51:54 UTC
Let's move to the original BZ 1152550.  I just put a new comment there.

*** This bug has been marked as a duplicate of bug 1152550 ***