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.
Cause: grubby was incorrectly treating some grub2 configuration commands with the quoting rules of another command, and then re-assembling the result with a different procedure. This also happened in reverse.
Consequence: Quotes got messed up and some lines that are assignments got duplicated parts.
Fix: grubby's parser was modified to handle these items separately.
Result: Duplicated sections of assignment lines should no longer be generated.
*** Bug 1240771 has been marked as a duplicate of this bug. ***
Comment 9Jaroslav Škarvada
2015-07-20 14:51:25 UTC
I tried running stress test on several machines, but it didn't reproduce the problem.
Next time you encounter it, please provide content of grub.cfg, content of tuned.conf (or the profile name you used if it wasn't customized), content of the *variables.conf (if utilized) and content of /etc/tuned/bootcmdline.
What's the stress test you ran?
For me to reproduce this problem is just a matter of installing a new kernel. I've provided full grub.cfg in bug 1152550. I can provide the other files and debug this more later today.
Comment 11Jaroslav Škarvada
2015-07-20 16:36:29 UTC
(In reply to Luiz Capitulino from comment #10)
> What's the stress test you ran?
>
It was switching profiles and changing the bootcmdline in a loop for couple of minutes.
> For me to reproduce this problem is just a matter of installing a new
> kernel.
>
It didn't trigger it for me. I will retry.
> I've provided full grub.cfg in bug 1152550. I can provide the other
> files and debug this more later today.
>
Ok, thanks.
Comment 12Jaroslav Škarvada
2015-07-20 17:05:42 UTC
(In reply to Jaroslav Škarvada from comment #11)
> > For me to reproduce this problem is just a matter of installing a new
> > kernel.
> >
> It didn't trigger it for me. I will retry.
>
I finally reproduced it.
That's excellent. I can test a fixed tuned version as soon as you have patches.
Comment 15Jaroslav Škarvada
2015-07-22 18:58:33 UTC
Created attachment 1054983[details]
grub.cfg
This is not tuned bug, but bug in grubby - it is crippling the grub.cfg. It may cause other problems, thus it needs to be fixed in grubby.
Version:
grubby-8.28-12.el7.x86_64
Reproducer:
Run the following command on the grub.cfg from the attachment:
# /sbin/grubby --grub2 -c /boot/grub2/grub.cfg --add-kernel=/boot/vmlinuz-3.10.0-297.el7.x86_64 --copy-default --title 'Red Hat Enterprise Linux Server (3.10.0-297.el7.x86_64) 7.2 (Maipo)' '--args=root=/dev/mapper/rhel_hp--dl380pgen8--02--vm--10-root ' '--remove-kernel=TITLE=Red Hat Enterprise Linux Server (3.10.0-297.el7.x86_64) 7.2 (Maipo)' --make-default
Result:
The following from grub.cfg:
set tuned_params="isolcpus=1,3"
is changed by grubby to:
set tuned_params="isolcpus=1,3"=1,3"
Notice the suffix '=1,3"' which shouldn't be added by grubby.
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-2110.html