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 1616043

Summary: tuned: use enable-netsocket-tstamp-static-key.c on realtime-virtual-host/realtime-virtual-guest profiles
Product: Red Hat Enterprise Linux 7 Reporter: Marcelo Tosatti <mtosatti>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Tereza Cerna <tcerna>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: bhu, jeder, jskarvad, olysonek, tcerna, williams
Target Milestone: rcKeywords: Patch, Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tuned-2.10.0-6.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1619822 (view as bug list) Environment:
Last Closed: 2018-10-30 10:50:19 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:
Bug Depends On: 1616038    
Bug Blocks:    
Attachments:
Description Flags
Fixed patch none

Description Marcelo Tosatti 2018-08-14 19:22:13 UTC
Once https://bugzilla.redhat.com/show_bug.cgi?id=1616038 
is in, should patch realtime-virtual-host / realtime-virtual-guest
profiles to start / stop enable-netsocket-tstamp-static-key "daemon".

Comment 5 Tereza Cerna 2018-09-06 11:23:18 UTC
Hi, bug found. There is missing section [script] in tuned/realtime-virtual-guest/tuned.conf file.

# cd /usr/lib/tuned/realtime-virtual-guest/tuned.conf
# diff tuned.conf.old tuned.conf.new
8a9,12
> [script]
> script=${i:PROFILE_DIR}/script.sh
>

Comment 6 Tereza Cerna 2018-09-06 11:24:01 UTC
Also there are missing executable rights to script.sh

so, it need:
# chmod +x /usr/lib/tuned/realtime-virtual-guest/script.sh

Comment 7 Jaroslav Škarvada 2018-09-06 11:25:57 UTC
Created attachment 1481262 [details]
Fixed patch

Fixed patch which calls the script.sh from realtime-virtual-guest profile.

Comment 8 Jaroslav Škarvada 2018-09-06 11:27:48 UTC
(In reply to Tereza Cerna from comment #5)
> Hi, bug found. There is missing section [script] in
> tuned/realtime-virtual-guest/tuned.conf file.
> 
> # cd /usr/lib/tuned/realtime-virtual-guest/tuned.conf
> # diff tuned.conf.old tuned.conf.new
> 8a9,12
> > [script]
> > script=${i:PROFILE_DIR}/script.sh
> >

Thanks, fixed in the attached patch.

Comment 9 Jaroslav Škarvada 2018-09-06 11:28:32 UTC
(In reply to Tereza Cerna from comment #6)
> Also there are missing executable rights to script.sh
> 
> so, it need:
> # chmod +x /usr/lib/tuned/realtime-virtual-guest/script.sh

IMHO it shouldn't block the script execution, but also fixed.

Comment 10 Jaroslav Škarvada 2018-09-07 12:36:42 UTC
(In reply to Jaroslav Škarvada from comment #9)
> (In reply to Tereza Cerna from comment #6)
> > Also there are missing executable rights to script.sh
> > 
> > so, it need:
> > # chmod +x /usr/lib/tuned/realtime-virtual-guest/script.sh
> 
> IMHO it shouldn't block the script execution, but also fixed.

Well, it seems it does :) The patch is OK but due to rpmbuild bug 1626473 we need to add workaround into the spec.

Comment 11 Jaroslav Škarvada 2018-09-07 13:09:22 UTC
(In reply to Jaroslav Škarvada from comment #10)
> (In reply to Jaroslav Škarvada from comment #9)
> > (In reply to Tereza Cerna from comment #6)
> > > Also there are missing executable rights to script.sh
> > > 
> > > so, it need:
> > > # chmod +x /usr/lib/tuned/realtime-virtual-guest/script.sh
> > 
> > IMHO it shouldn't block the script execution, but also fixed.
> 
> Well, it seems it does :) The patch is OK but due to rpmbuild bug 1626473 we
> need to add workaround into the spec.

Addressed in tuned-2.10.0-6.el7.

Comment 12 Tereza Cerna 2018-09-10 14:07:13 UTC
Tested in:
    tuned-profiles-nfv-host-2.10.0-6.el7.noarch
    tuned-profiles-nfv-guest-2.10.0-6.el7.noarch
    rt-setup-2.0-6.el7.x86_64
PASS


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test profile realtime-virtual-host
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[ LOG  ] :: Output of 'systemctl status rt-entsk | grep 'Active: inactive (dead)'':
[ LOG  ] :: --------------- OUTPUT START ---------------
[ LOG  ] :: Active: inactive (dead)
[ LOG  ] :: ---------------  OUTPUT END  ---------------
[ PASS ] :: Command 'systemctl status rt-entsk | grep 'Active: inactive (dead)'' (Expected 0, got 0)
[ PASS ] :: Command 'tuned-adm profile realtime-virtual-host' (Expected 0, got 0)
[ PASS ] :: Command 'tuned-adm active | grep realtime-virtual-host' (Expected 0, got 0)
[ LOG  ] :: Output of 'systemctl status rt-entsk | grep 'Active: active (running)'':
[ LOG  ] :: --------------- OUTPUT START ---------------
[ LOG  ] :: Active: active (running) since Mon 2018-09-10 16:04:11 CEST; 2s ago
[ LOG  ] :: ---------------  OUTPUT END  ---------------
[ PASS ] :: Command 'systemctl status rt-entsk | grep 'Active: active (running)'' (Expected 0, got 0)
[ PASS ] :: Command 'tuned-adm profile balanced' (Expected 0, got 0)
[ PASS ] :: Command 'tuned-adm active | grep balanced' (Expected 0, got 0)
[ LOG  ] :: Output of 'systemctl status rt-entsk | grep 'Active: inactive (dead)'':
[ LOG  ] :: --------------- OUTPUT START ---------------
[ LOG  ] :: Active: inactive (dead)
[ LOG  ] :: ---------------  OUTPUT END  ---------------
[ PASS ] :: Command 'systemctl status rt-entsk | grep 'Active: inactive (dead)'' (Expected 0, got 0)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 10s
::   Assertions: 7 good, 0 bad
::   RESULT: PASS


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test profile realtime-virtual-guest
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[ LOG  ] :: Output of 'systemctl status rt-entsk | grep 'Active: inactive (dead)'':
[ LOG  ] :: --------------- OUTPUT START ---------------
[ LOG  ] :: Active: inactive (dead)
[ LOG  ] :: ---------------  OUTPUT END  ---------------
[ PASS ] :: Command 'systemctl status rt-entsk | grep 'Active: inactive (dead)'' (Expected 0, got 0)
[ PASS ] :: Command 'tuned-adm profile realtime-virtual-guest' (Expected 0, got 0)
[ PASS ] :: Command 'tuned-adm active | grep realtime-virtual-guest' (Expected 0, got 0)
[ LOG  ] :: Output of 'systemctl status rt-entsk | grep 'Active: active (running)'':
[ LOG  ] :: --------------- OUTPUT START ---------------
[ LOG  ] :: Active: active (running) since Mon 2018-09-10 16:04:21 CEST; 2s ago
[ LOG  ] :: ---------------  OUTPUT END  ---------------
[ PASS ] :: Command 'systemctl status rt-entsk | grep 'Active: active (running)'' (Expected 0, got 0)
[ PASS ] :: Command 'tuned-adm profile balanced' (Expected 0, got 0)
[ PASS ] :: Command 'tuned-adm active | grep balanced' (Expected 0, got 0)
[ LOG  ] :: Output of 'systemctl status rt-entsk | grep 'Active: inactive (dead)'':
[ LOG  ] :: --------------- OUTPUT START ---------------
[ LOG  ] :: Active: inactive (dead)
[ LOG  ] :: ---------------  OUTPUT END  ---------------
[ PASS ] :: Command 'systemctl status rt-entsk | grep 'Active: inactive (dead)'' (Expected 0, got 0)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 10s
::   Assertions: 7 good, 0 bad
::   RESULT: PASS

Comment 14 errata-xmlrpc 2018-10-30 10:50:19 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, 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-2018:3172