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 1819666 - Tuned seems to leave over old kernel cmdline conditionally
Summary: Tuned seems to leave over old kernel cmdline conditionally
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: grubby
Version: 8.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.5
Assignee: Bootloader engineering team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 1932086 1972908 1972909 2236821
TreeView+ depends on / blocked
 
Reported: 2020-04-01 09:37 UTC by Pei Zhang
Modified: 2023-09-01 15:51 UTC (History)
19 users (show)

Fixed In Version: grubby-8.40-42.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1921577 1972908 1972909 2236821 (view as bug list)
Environment:
Last Closed: 2021-11-09 20:05:06 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4509 0 None None None 2021-11-09 20:05:14 UTC

Description Pei Zhang 2020-04-01 09:37:45 UTC
Description of problem:

Under some circumstances, tuned_params will duplicated show in kernel line. This may confuse people.


Version-Release number of selected component (if applicable):
4.18.0-193.rt13.51.el8.x86_64
tuned-2.13.0-6.el8.noarch


How reproducible:
100%


Steps to Reproduce:
1. Apply profile realtime-virtual-guest in guest

# cat /etc/tuned/realtime-virtual-guest-variables.conf 
isolated_cores=1,2,3,4
isolate_managed_irq=Y

# tuned-adm profile realtime-virtual-guest

2. Reboot guest, the isolation info shows expected in kernel line.

# cat /proc/cmdline 
BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-193.rt13.51.el8.x86_64 root=/dev/mapper/rhel_vm--73--196-root ro console=tty0 console=ttyS0,115200n8 biosdevname=0 crashkernel=auto resume=/dev/mapper/rhel_vm--73--196-swap rd.lvm.lv=rhel_vm-73-196/root rd.lvm.lv=rhel_vm-73-196/swap skew_tick=1 isolcpus=managed_irq,domain,1,2,3,4 intel_pstate=disable nosoftlockup tsc=nowatchdog nohz=on nohz_full=1,2,3,4 rcu_nocbs=1,2,3,4

3. Manually change kernel line. Append "default_hugepagesz=1G" to kernel line.

# grubby --args="default_hugepagesz=1G" --update-kernel=`grubby --default-kernel`

4. Switch to another profile 

# tuned-adm profile desktop

5. Go back to profile realtime-virtual-guest again.

# tuned-adm profile realtime-virtual-guest

6. Reboot RT guest

7. Check kernel line, the isolated info is duplicated show.

# cat /proc/cmdline 
BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-193.rt13.51.el8.x86_64 root=/dev/mapper/rhel_vm--73--196-root ro console=tty0 console=ttyS0,115200n8 biosdevname=0 crashkernel=auto resume=/dev/mapper/rhel_vm--73--196-swap rd.lvm.lv=rhel_vm-73-196/root rd.lvm.lv=rhel_vm-73-196/swap skew_tick=1 isolcpus=managed_irq,domain,1,2,3,4 intel_pstate=disable nosoftlockup tsc=nowatchdog nohz=on nohz_full=1,2,3,4 rcu_nocbs=1,2,3,4 default_hugepagesz=1G skew_tick=1 isolcpus=managed_irq,domain,1,2,3,4 intel_pstate=disable nosoftlockup tsc=nowatchdog nohz=on nohz_full=1,2,3,4 rcu_nocbs=1,2,3,4


Actual results:
Tuned_params is duplicated show in kernel line. 

Expected results:
Tuned_params should only show one info of current profile.

Additional info:

Comment 1 Jaroslav Škarvada 2020-04-01 17:55:20 UTC
Please try with
grubby-8.40-38.el8

and report results.

Comment 2 Pei Zhang 2020-04-02 07:06:31 UTC
(In reply to Jaroslav Škarvada from comment #1)
> Please try with
> grubby-8.40-38.el8
> 
> and report results.

Hi Jaroslav,

We were testing with grubby-8.40-38.el8.x86_64 in above testing. So with grubby-8.40-38.el8, we can hit this duplicate issue. 

Best regards,

Pei

Comment 4 Pei Zhang 2020-10-12 12:17:41 UTC
This issue still exists with 8.3 testing. After appending or modifying kernel options (like default_hugepagesz=1G or default_hugepagesz=2M), then rebooting os will cause isolated info repeatedly show. Just like below.

# cat /proc/cmdline 
BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-240.el8.x86_64 root=/dev/mapper/rhel_dell--per740--02-root ro crashkernel=auto resume=/dev/mapper/rhel_dell--per740--02-swap rd.lvm.lv=rhel_dell-per740-02/root rd.lvm.lv=rhel_dell-per740-02/swap console=ttyS0,115200n81 skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup iommu=pt intel_iommu=on pci=realloc skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup default_hugepagesz=1G skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup


Versions:
4.18.0-240.el8.x86_64
tuned-2.14.0-3.el8.noarch
grubby-8.40-41.el8.x86_64

Comment 5 Luiz Capitulino 2020-10-15 03:44:07 UTC
Pei,

Can we assume this issue exists on 8.2.z and 8.4 as well?

Comment 6 Pei Zhang 2020-10-15 04:07:11 UTC
(In reply to Luiz Capitulino from comment #5)
> Pei,
> 
> Can we assume this issue exists on 8.2.z and 8.4 as well?

Luiz,

This issue exists on 8.2.z.

I don't start 8.4 testing yet, but I think it should exist on 8.4 as well.

Besides, rhel7.9 doesn't hit this issue.

Best regards,

Pei

Comment 17 Pei Zhang 2021-03-12 02:12:46 UTC
Testing update:

This issue still exists with latest rhel8.4.

Versions:
grubby-8.40-41.el8.x86_64
4.18.0-296.el8.x86_64
tuned-2.15.0-2.el8.noarch


# cat /proc/cmdline 
BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-296.el8.x86_64 root=/dev/mapper/rhel_dell--per740--02-root ro crashkernel=auto resume=/dev/mapper/rhel_dell--per740--02-swap rd.lvm.lv=rhel_dell-per740-02/root rd.lvm.lv=rhel_dell-per740-02/swap console=ttyS0,115200n81 skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=ffffffff,000002ab intel_pstate=disable nosoftlockup iommu=pt intel_iommu=on pci=realloc skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=ffffffff,000002ab intel_pstate=disable nosoftlockup skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=ffffffff,000002ab intel_pstate=disable nosoftlockup skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=ffffffff,000002ab intel_pstate=disable nosoftlockup skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=ffffffff,000002ab intel_pstate=disable nosoftlockup default_hugepagesz=1G skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=ffffffff,000002ab intel_pstate=disable nosoftlockup

Comment 19 Pei Zhang 2021-06-03 04:06:35 UTC
Testing update:
This issue still exists in rhel8.5.

Version:
grubby-8.40-41.el8.x86_64

BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-310.rt7.91.el8.x86_64 root=/dev/mapper/rhel_dell--per430--10-root ro crashkernel=auto resume=/dev/mapper/rhel_dell--per430--10-swap rd.lvm.lv=rhel_dell-per430-10/root rd.lvm.lv=rhel_dell-per430-10/swap console=ttyS0,115200n81 skew_tick=1 isolcpus=managed_irq,domain,1,3,5,7,9,11,13,15,17,19,12,14,16,18 intel_pstate=disable nosoftlockup tsc=nowatchdog nohz=on nohz_full=1,3,5,7,9,11,13,15,17,19,12,14,16,18 rcu_nocbs=1,3,5,7,9,11,13,15,17,19,12,14,16,18 iommu=pt intel_iommu=on default_hugepagesz=1G skew_tick=1 isolcpus=managed_irq,domain,1,3,5,7,9,11,13,15,17,19,12,14,16,18 intel_pstate=disable nosoftlockup tsc=nowatchdog nohz=on nohz_full=1,3,5,7,9,11,13,15,17,19,12,14,16,18 rcu_nocbs=1,3,5,7,9,11,13,15,17,19,12,14,16,18


BOOT_IMAGE=(hd0,msdos2)/vmlinuz-4.18.0-309.el8.x86_64 root=/dev/mapper/rhel_dell--per740--02-root ro crashkernel=auto resume=/dev/mapper/rhel_dell--per740--02-swap rd.lvm.lv=rhel_dell-per740-02/root rd.lvm.lv=rhel_dell-per740-02/swap console=ttyS0,115200n81 skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup iommu=pt intel_iommu=on pci=realloc skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup skew_tick=1 nohz=on nohz_full=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 rcu_nocbs=2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,31,29,27,25,23,21,19,17,15,13,11 tuned.non_isolcpus=000002ab intel_pstate=disable nosoftlockup default_hugepagesz=1G

Comment 23 Pei Zhang 2021-06-15 14:00:04 UTC
Thank you Javier, Petr, Jared for the efforts to fix this issue. 


Testing update:

This issue has gone with grubby-8.40-42.el8.x86_64. No duplication tuned info any more.

# cat /proc/cmdline 
BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-312.el8.x86_64 root=/dev/mapper/rhel_vm--73--150-root ro console=tty0 console=ttyS0,115200n8 biosdevname=0 crashkernel=auto resume=/dev/mapper/rhel_vm--73--150-swap rd.lvm.lv=rhel_vm-73-150/root rd.lvm.lv=rhel_vm-73-150/swap skew_tick=1 nohz=on nohz_full=1 rcu_nocbs=1 tuned.non_isolcpus=0000003d intel_pstate=disable nosoftlockup iommu=pt intel_iommu=on default_hugepagesz=2M

# cat /proc/cmdline 
BOOT_IMAGE=(hd0,gpt2)/vmlinuz-4.18.0-311.rt7.92.el8.x86_64 root=/dev/mapper/rhel_dell--per430--11-root ro crashkernel=auto resume=/dev/mapper/rhel_dell--per430--11-swap rd.lvm.lv=rhel_dell-per430-11/root rd.lvm.lv=rhel_dell-per430-11/swap console=ttyS0,115200n81 skew_tick=1 isolcpus=managed_irq,domain,1,3,5,7,9,11,13,15,17,19,12,14,16,18 intel_pstate=disable nosoftlockup tsc=nowatchdog nohz=on nohz_full=1,3,5,7,9,11,13,15,17,19,12,14,16,18 rcu_nocbs=1,3,5,7,9,11,13,15,17,19,12,14,16,18 iommu=pt intel_iommu=on default_hugepagesz=2M

Comment 24 Luiz Capitulino 2021-06-16 20:16:23 UTC
Pei,

Does this affect 8.4.z and maybe 8.2.z?

If yes, Javier, should we consider the backport? Those z-streams are EUS, they have a long lifecycle support for Telco companies (who could be affected by this issue).

Comment 25 Javier Martinez Canillas 2021-06-16 20:23:32 UTC
(In reply to Luiz Capitulino from comment #24)
> Pei,
> 
> Does this affect 8.4.z and maybe 8.2.z?
> 
> If yes, Javier, should we consider the backport? Those z-streams are EUS,
> they have a long lifecycle support for Telco companies (who could be
> affected by this issue).

Yes, let's create z-stream clones for this.

Comment 28 Pei Zhang 2021-06-17 01:14:45 UTC
(In reply to Luiz Capitulino from comment #24)
> Pei,
> 
> Does this affect 8.4.z and maybe 8.2.z?

Luiz, 

Yes, this affect both 8.4.z and 8.2.z. Thanks.

Comment 39 errata-xmlrpc 2021-11-09 20:05:06 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 (grubby bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2021:4509


Note You need to log in before you can comment on or make changes to this bug.