Bug 1451764

Summary: Add support for negation in the CPU List for tuned profile cpu-partitioning
Product: Red Hat Enterprise Linux 7 Reporter: Saravanan KR <skramaja>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Tereza Cerna <tcerna>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: achernet, atragler, fbaudin, jeder, jskarvad, lpol, olysonek, psklenar, skramaja, tcerna, thozza
Target Milestone: rcKeywords: Patch, Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tuned-2.9.0-0.1.rc1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 16:01:26 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: 1454340    
Bug Blocks: 1465887, 1467576, 1485946    

Description Saravanan KR 2017-05-17 13:13:29 UTC
Description of problem:
Need to bring the support for negation which has been merged upstream.
https://github.com/redhat-performance/tuned/issues/49

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 15 Tereza Cerna 2018-01-12 12:36:57 UTC
=====================================================
Verified in:
   tuned-2.9.0-1.el7.noarch
   tuned-profiles-cpu-partitioning-2.9.0-1.el7.noarch
PASS
=====================================================

# cat /etc/tuned/cpu-partitioning-variables.conf
isolated_cores=2-9,!5,11
# tuned-adm profile cpu-partitioning
# cat /var/log/tuned/tuned.log
...
2018-01-12 07:31:09,917 INFO     tuned.plugins.plugin_systemd: setting 'CPUAffinity' to '0 1 5 10 12 13 14 15' in the '/etc/systemd/system.conf'
...

You can see that negation of 5 was applied and only others specified cpus was excluded.

This is new feature and it works well.

Comment 18 Tereza Cerna 2018-01-12 13:50:21 UTC
New test case was implemented:
/CoreOS/tuned/Regression/add-support-for-negation-in-cpu-list-for-profile-cpu-partitioning

Feature from #16 is included in this test case.

Comment 21 errata-xmlrpc 2018-04-10 16:01:26 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:0879