Bug 1620817 - [3.7] tuned profile does not take effect in RHEL7.5
Summary: [3.7] tuned profile does not take effect in RHEL7.5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.7.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.7.z
Assignee: Jiří Mencák
QA Contact: Weihua Meng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-23 11:29 UTC by Weihua Meng
Modified: 2018-11-21 11:56 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-11-21 11:56:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2906 0 None None None 2018-11-21 11:56:49 UTC

Description Weihua Meng 2018-08-23 11:29:55 UTC
Description of problem:
tuned profile does not take effect in RHEL-7.5
it is working as expected in RHEL-7.4

Version-Release number of the following components:
openshift-ansible-3.7.62-1.git.0.48dbebc.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. install OCP 3.7 on RHEL-7.5
2. check tuned active profile on node

Actual results:
# tuned-adm active 
No current active profile.

Expected results:
# tuned-adm active 
Current active profile: openshift-node

Additional info:
this is caused by default tuned package I think.

in RHEL-7.4
Kernel Version: 3.10.0-693.21.1.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.4 (Maipo)

# tuned-adm active 
Current active profile: openshift-node

# rpm -q tuned
tuned-2.8.0-5.el7_4.2.noarch
[root@qe-wmeng6r745-o37-nrr-1 ~]# yum info tuned
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Installed Packages
Name        : tuned
Arch        : noarch
Version     : 2.8.0
Release     : 5.el7_4.2
Size        : 690 k
Repo        : installed
From repo   : anaconda
Summary     : A dynamic adaptive system tuning daemon
URL         : http://www.tuned-project.org/
License     : GPLv2+
Description : The tuned package contains a daemon that tunes system settings dynamically.
            : It does so by monitoring the usage of several system components periodically.
            : Based on that information components will then be put into lower or higher
            : power saving modes to adapt to the current usage. Currently only ethernet
            : network and ATA harddisk devices are implemented.

[root@qe-wmeng6r745-o37-nrr-1 ~]# ll /etc/tuned/
total 16
-rw-r--r--. 1 root root   15 8月  23 03:40 active_profile
-rw-r--r--. 1 root root 1111 4月  11 2017 bootcmdline
drwxr-xr-x. 2 root root   24 8月  23 03:40 openshift
drwxr-xr-x. 2 root root   24 8月  23 03:40 openshift-control-plane
drwxr-xr-x. 2 root root   24 8月  23 03:40 openshift-node
-rw-r--r--. 1 root root  268 8月  23 03:40 recommend.conf
-rw-r--r--. 1 root root 1154 10月 30 2017 tuned-main.conf
[root@qe-wmeng6r745-o37-nrr-1 ~]# cat /etc/tuned/active_profile 
openshift-node


in RHEL-7.5
Kernel Version: 3.10.0-862.9.1.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.5 (Maipo)

[root@host-172-16-120-5 ~]# tuned-adm active 
No current active profile.
[root@host-172-16-120-5 ~]# rpm -q tuned
tuned-2.9.0-1.el7.noarch
[root@host-172-16-120-5 ~]# yum info tuned
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Installed Packages
Name        : tuned
Arch        : noarch
Version     : 2.9.0
Release     : 1.el7
Size        : 722 k
Repo        : installed
From repo   : anaconda
Summary     : A dynamic adaptive system tuning daemon
URL         : http://www.tuned-project.org/
License     : GPLv2+
Description : The tuned package contains a daemon that tunes system settings dynamically.
            : It does so by monitoring the usage of several system components periodically.
            : Based on that information components will then be put into lower or higher
            : power saving modes to adapt to the current usage. Currently only ethernet
            : network and ATA harddisk devices are implemented.

[root@host-172-16-120-5 ~]# ll /etc/tuned/
total 16
-rw-r--r--. 1 root root 1111 10月 29 2017 bootcmdline
drwxr-xr-x. 2 root root   24 8月  23 03:08 openshift
drwxr-xr-x. 2 root root   24 8月  23 03:08 openshift-control-plane
drwxr-xr-x. 2 root root   24 8月  23 03:08 openshift-node
-rw-r--r--. 1 root root    7 8月  23 03:07 profile_mode
-rw-r--r--. 1 root root  268 8月  23 03:08 recommend.conf
drwxr-xr-x. 2 root root    6 10月 29 2017 recommend.d
-rw-r--r--. 1 root root 1197 10月 29 2017 tuned-main.conf

Comment 1 Jiří Mencák 2018-09-11 11:39:19 UTC
This very likely due to the changes in tuned 2.8 -> tuned 2.9.  This has been fixed in the installer upstream by https://github.com/openshift/openshift-ansible/pull/6709

@sdodson, can this be cherry picked into 3.7?

Comment 2 Jiří Mencák 2018-09-12 12:41:04 UTC
Upstream fix: https://github.com/openshift/openshift-ansible/pull/9995 merged.

Comment 4 Weihua Meng 2018-10-04 02:16:34 UTC
Waiting for build attach to advisory.

Fixed.
openshift-ansible-3.7.65-1.git.0.de90d64.el7.noarch

Kernel Version: 3.10.0-862.14.4.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.5 (Maipo)

tuned-2.9.0-1.el7_5.2.noarch

# tuned-adm active 
Current active profile: openshift-node

Comment 6 errata-xmlrpc 2018-11-21 11:56:23 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/RHSA-2018:2906


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