Bug 2215298 - SIGHUP of tuned.service may lead to random corruption of /etc/tuned/bootcmdline file
Summary: SIGHUP of tuned.service may lead to random corruption of /etc/tuned/bootcmdli...
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: tuned
Version: 8.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: Robin Hack
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-15 12:51 UTC by Kevin Myers
Modified: 2023-08-17 21:53 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-159983 0 None None None 2023-06-15 12:52:53 UTC

Description Kevin Myers 2023-06-15 12:51:31 UTC
Description of problem:

When the tuned service applies profiles following a sighup it randomly duplicated lines in /etc/tuned/bootcmdline file.   

Version-Release number of selected component (if applicable):

- tuned-2.18.0-2.el8_6.1.noarch
- tuned-2.20.0-1.el8.noarch

(Customer did not experience with tuned 2.15.0-2.el8_4.1)


How reproducible:

random


Steps to Reproduce:
1. systemctl kill -s HUP tuned.service 
2. 
3.

Actual results:

/etc/tuned/bootcmdline contains extra lines at beginning of file such as:

   TUNED_BOOT_CMDLINE=""
   TUNED_BOOT_INITRD_ADD=""
   kernel boot command line and


Expected results:
/etc/tuned/bootcmdline is unchanged except for necessary profile adjustments

Additional info:

Comment 9 Jaroslav Škarvada 2023-08-17 12:59:12 UTC
Upstream PR:
https://github.com/redhat-performance/tuned/pull/547


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