Bug 2215298

Summary: SIGHUP of tuned.service may lead to random corruption of /etc/tuned/bootcmdline file
Product: Red Hat Enterprise Linux 8 Reporter: Kevin Myers <kemyers>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: ASSIGNED --- QA Contact: Robin Hack <rhack>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.8CC: jeder, jorton, jskarvad, nhenders, qguo, rmetrich
Target Milestone: rcKeywords: Patch, Regression, TestCaseNotNeeded, Triaged, Upstream
Target Release: ---   
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: 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 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