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 1778271

Summary: Grub parameters got partially cut off when used with tuned NFV profiles
Product: Red Hat Enterprise Linux 8 Reporter: Peter Xu <peterx>
Component: grub2Assignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: jeder, jskarvad, lcapitulino, olysonek, peterx, pezhang
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-29 17:52:43 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 Peter Xu 2019-11-29 17:23:43 UTC
When using realtime-virtual-[host|guest] tuned profile, the grub parameter is not applied correct.  

It should be:

BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-151.rt13.8.el8.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap mitigations=off console=ttyS0 skew_tick=1 isolcpus=2,3 intel_pstate=disable nosoftlockup nohz=on nohz_full=2,3 rcu_nocbs=2,3

While it is actually:

BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-151.rt13.8.el8.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap mitigations=off console=ttyS0 =1 isolcpus=2,3 intel_pstate=disable nosoftlockup nohz=on nohz_full=2,3 rcu_nocbs=2,3

(NOTE: "skew_tick=1" is cut into "=1")

I feel like it's a grub thing because if we check /etc/grub2/grub.cfg we've got the tuned parameters set correct:

set tuned_params="skew_tick=1 isolcpus=2,3 intel_pstate=disable nosoftlockup nohz=on nohz_full=2,3 rcu_nocbs=2,3"

(please see below for more information)

However I'm still opening this against tuned to verify my understanding is correct.

==============================

Versions:

[root@rt-vm ~]# rpm -qa | grep -E "tuned|kernel|grub"
kernel-4.18.0-154.el8.x86_64
kernel-rt-4.18.0-151.rt13.8.el8.x86_64
tuned-profiles-nfv-host-bin-0-0.1.20180302git1edfa966.el8.x86_64                                                                                  
kernel-modules-4.18.0-154.el8.x86_64 
grub2-common-2.02-79.el8.noarch
kernel-tools-4.18.0-154.el8.x86_64                                                                                                                
grub2-pc-2.02-79.el8.x86_64                                                                                                                       
kernel-tools-libs-4.18.0-154.el8.x86_64
grub2-tools-minimal-2.02-79.el8.x86_64
grub2-tools-2.02-79.el8.x86_64
kernel-core-4.18.0-154.el8.x86_64
kernel-rt-modules-4.18.0-151.rt13.8.el8.x86_64
tuned-profiles-nfv-guest-2.12.0-3.el8.noarch
tuned-profiles-nfv-host-2.12.0-3.el8.noarch
grub2-tools-extra-2.02-79.el8.x86_64 
grub2-pc-modules-2.02-79.el8.noarch
tuned-2.12.0-3.el8.noarch
kernel-rt-core-4.18.0-151.rt13.8.el8.x86_64
tuned-profiles-realtime-2.12.0-3.el8.noarch
tuned-profiles-nfv-2.12.0-3.el8.noarch
grubby-8.40-37.el8.x86_64

More contexts (a guest with 4 vcpus, isolating 2,3):

[root@rt-vm ~]# cat /etc/tuned/realtime-virtual-guest-variables.conf 
isolated_cores=2,3

[root@rt-vm ~]# tuned-adm active
Current active profile: realtime-virtual-guest

[root@rt-vm ~]# cat /etc/default/grub 
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap mitigations=off console=ttyS0"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT:+$GRUB_CMDLINE_LINUX_DEFAULT }\$tuned_params"
GRUB_INITRD_OVERLAY="${GRUB_INITRD_OVERLAY:+$GRUB_INITRD_OVERLAY }\$tuned_initrd"

[root@rt-vm ~]# grep tuned /boot/grub2/grub.cfg 
### BEGIN /etc/grub.d/00_tuned ###
set tuned_params="skew_tick=1 isolcpus=2,3 intel_pstate=disable nosoftlockup nohz=on nohz_full=2,3 rcu_nocbs=2,3"
set tuned_initrd=""

Comment 1 Jaroslav Škarvada 2019-11-29 17:30:08 UTC
I think this is dupe of bug 1669252.

Comment 2 Peter Xu 2019-11-29 17:52:43 UTC
(In reply to Jaroslav Škarvada from comment #1)
> I think this is dupe of bug 1669252.

I agree.  Thanks.

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