Ondřej Lysoněk
86abd82ced
Add contribution guidelines
...
This is an attempt to formalize the process of contributing to Tuned
and formulate what is expected from contributors. From now on, all
contributors are expected to follow the guidelines.
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-31 11:19:16 +01:00
Ondřej Lysoněk
2cc3d74798
plugin_disk: Fix checking the 'removable' attribute on python3
...
The 'removable' attribute is a bytestring, so it will never be equal to
"0" in python3. Check equality with b"0" instead.
The patch was originally written by Tomáš Korbař.
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-24 16:33:02 +01:00
Jaroslav Škarvada
668bf7448d
Minor readme update
...
Mentioned web page.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-01-19 18:54:27 +01:00
Jaroslav Škarvada
98c3707851
log: initialize maxBytes, backupCount in RotatingFileHandler explicitly with int
...
Fixes : #148
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-01-12 10:07:07 +01:00
Jaroslav Škarvada
26db89de18
mssql: updated tuning
...
Added vm plugin option 'transparent_hugepage.defrag'.
Resolves: rhbz#1660178
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-01-08 15:07:03 +01:00
Jaroslav Škarvada
9d8234d559
Merge pull request #144 from olysonek/master
...
scheduler: Keep polling file objects alive long enough
2018-12-14 17:47:25 +01:00
Ondřej Lysoněk
a54b35c3b0
scheduler: Keep polling file objects alive long enough
...
Make sure the file objects returned by evlist.get_pollfd()
don't go out of scope and get destroyed too soon. This is
a workaround for python3-perf rhbz#1659445.
Resolves: rhbz#1659140
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-12-14 13:16:02 +01:00
Jaroslav Škarvada
ead1890889
Merge pull request #139 from mgerstner/log_random_source
...
logs: actually use SystemRandom source for generating a random string
2018-12-11 21:16:18 +01:00
Matthias Gerstner
444aceefa5
logs: actually use SystemRandom source for generating a random string
...
The returned string was only pseudo random. It is only used for the
log_capture_start() mechanism at the moment. Therefore an attacker might
be able to guess the tokens of other users. Since this data it publicly
available anyways it should not be a big issue, however.
2018-12-11 11:06:01 +01:00
Jaroslav Škarvada
41b38ab6e7
Added workaround for zipl (s390x) not supporting multiple initrds
...
This workaround can be removed once implemented upstream, ticket:
https://github.com/ibm-s390-tools/s390-tools/issues/49
RHEL bugzilla:
rhbz#1576435
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-12-10 17:49:54 +01:00
Jaroslav Škarvada
8aa9fcfc5f
Added support for Boot loader specification (BLS)
...
Resolves: rhbz#1576435
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-12-09 20:16:50 +01:00
Jaroslav Škarvada
c4a0aef63d
functions: reworked setup_kvm_mod_low_latency to count with kernel changes
...
It updates the KVM modprobe file if its content differs from what's
supported on the current system. It may look a bit over-engineered, but
it's done this way to lower the possibility of race condition.
Resolves: rhbz#1649408
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-11-22 17:38:12 +01:00
Jaroslav Škarvada
bc9a2da3e8
Merge pull request #137 from TomasKorbar/rhbz1533908
...
Add range feature for cpu exclusion
2018-11-21 21:05:19 +01:00
Tomas Korbar
3722b15192
Add range feature for cpu exclusion
...
- It is now possible to exclude cpu range by !1-3
- Also edited test for cpulist_unpack method to test this new
feature
- Resolves rhbz#1533908
2018-11-21 15:23:11 +01:00
Jaroslav Škarvada
560f5e7e56
Merge pull request #136 from olysonek/bz1622239
...
Disable KSM only once, re-enable it only on full rollback
2018-11-21 12:01:47 +01:00
Ondřej Lysoněk
1b80d4eac2
Disable KSM only once, re-enable it only on full rollback
...
Disabling the ksm and ksmtuned services during boot seems to cause
problems, so do it only once when the profile is first applied and
reenable the services only when full rollback is required.
Resolves: rhbz#1622239
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-21 11:27:44 +01:00
Jaroslav Škarvada
30531bed7e
Merge pull request #135 from TomasKorbar/rhbz1533852
...
Fix Rhbz1533852
2018-11-21 11:25:11 +01:00
Jaroslav Škarvada
8910d0daba
Merge pull request #116 from TomasKorbar/changes
...
Add tests and fix some errors
2018-11-21 11:12:47 +01:00
Tomas Korbar
0d28f9e63e
Add log message for unsupported parameters in plugin_net
...
- Resolves: rhbz#1533852
2018-11-20 17:02:44 +01:00
Tomas Korbar
f918d97cda
Add missing feature parameters aliases to plugin_net
2018-11-20 17:02:44 +01:00
Jaroslav Škarvada
b9e1316999
Merge pull request #132 from oliel/BZ1588932_Tuned_Default_Profile
...
Make virtual-host identical to latency-performance
2018-11-15 14:57:45 +01:00
oliel
355a9d0dc2
Update tuned.conf
2018-11-15 14:18:20 +02:00
oliel
b2762e50cf
Update tuned.conf
2018-11-15 07:49:00 +02:00
Ori_Liel
8622925c5c
Make virtual-host identical to latency-performance
...
The default tuned profile for an oVirt cluster is "virtual-host".
Recently, testing at customer sites and performance labs has shown
that "latency-performance" yields better results. This patch makes
virtual-host profile identical to latency-performance. This seems
better than uniting them since this way we maintain the possibility
to tweak them in different ways in the future according to further
findings.
Change-Id: I1a64fac22364b17de1279a3e1f37a6b7eb0fe61b
Bug-Url: https://bugzilla.redhat.com/1588932
Signed-off-by: Ori_Liel <oliel@redhat.com>
2018-10-15 15:58:42 +03:00
Tomas Korbar
38ebdbeda2
Fix deprecation warnings when python 3 is used
...
- we should use pyudev.Device class property 'properties'
for accesing device properties
- but we still need to keep try catch workaround
because of old pyudev package which is present in centos
2018-10-15 13:20:14 +02:00
Tomas Korbar
82efc4e090
Add config_file parameter to GlobalConfig class constructor
...
- this will allow us to use tempfile in tests
2018-10-15 13:20:14 +02:00
Tomas Korbar
2fad9568f6
Fix test_pickle_provider
...
- change of default storage file in CommandsTestCase affects this test
- file has been changed also in this test to ensure stable behaviour
2018-10-15 13:20:14 +02:00
Tomas Korbar
c4f83e2956
Fix pickle provider
...
- pickle.load and pickle.dump methods take as a argument
a bytes-like object not a str, python 2.7 is overlooking this but
python 3 is not
2018-10-15 13:20:14 +02:00
Tomas Korbar
d8e319caef
Edit InventoryTestCase
2018-10-15 13:20:14 +02:00
Tomas Korbar
db3647ef65
Edit tests for DeviceMatcherUdev class
2018-10-15 13:20:14 +02:00
Tomas Korbar
2b990ac8ac
Add Travis and Docker file
...
- Dockerfile supports builds for both fedora and centos
- This commit will allow us to run tests after each new commit
2018-10-15 13:20:14 +02:00
Tomas Korbar
3319d53a87
Add tests for GlobalConfig class
2018-10-15 13:20:14 +02:00
Tomas Korbar
b4f4e41adc
Fix unit tests for Merger class
2018-10-15 13:20:14 +02:00
Tomas Korbar
ca040870b3
Use unittest2 module for unittesting
2018-10-15 13:20:14 +02:00
Tomas Korbar
a2ed07c1af
Fix profiles.Loader class tests
2018-10-15 13:20:14 +02:00
Tomas Korbar
2a22bf03e1
Add Plugin class tests
2018-10-15 13:20:14 +02:00
Tomas Korbar
3049600c35
Add Commands class tests
2018-10-15 13:20:14 +02:00
Tomas Korbar
213eca72d8
Add exports Controller class tests
2018-10-15 13:20:14 +02:00
Tomas Korbar
5c61305860
Fix TypeError
2018-10-15 13:20:14 +02:00
Tomas Korbar
d1051a7e3e
Add device matcher udev tests
2018-10-15 13:20:14 +02:00
Tomas Korbar
0245c53ee1
Add Inventory class tests
2018-10-15 13:20:14 +02:00
Tomas Korbar
97cba43900
Add argument to class Inventory constructor
...
Argument will stop setting udev monitor receive buffer size
during initalization of class. That allows to run tests without
root permissions.
2018-10-15 13:20:14 +02:00
Tomas Korbar
b09c8d0d37
Start using unittest2 in test_device_matcher
2018-10-15 13:20:14 +02:00
Luiz Capitulino
461061eafb
cpu-partitioning.7: add note about ksm and ksmtuned
...
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2018-10-10 23:20:03 +02:00
Jaroslav Škarvada
384ffe9466
Merge pull request #130 from olysonek/master
...
Make python-dmidecode a weak dependency
2018-10-10 14:45:11 +02:00
Ondřej Lysoněk
f39b6b3016
Make python-dmidecode a weak dependency
...
It's only available on x86_64.
Resolves: rhbz#1565598
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-10-10 14:34:50 +02:00
Jaroslav Škarvada
51fb61faf2
Merge pull request #128 from lovengulu/issue127
...
solves issue #127 - install instructions
2018-10-09 22:55:46 +02:00
Jaroslav Škarvada
bd3344a19e
Merge pull request #122 from ldzhong/rotate-feature
...
log: add two options(log_file_count and log_file_maxbytes) in the main cfg
2018-10-09 22:53:13 +02:00
Jaroslav Škarvada
796e329e2b
Merge pull request #129 from olysonek/master
...
commands: Fix chassis type matching
2018-10-09 18:08:07 +02:00
Ondřej Lysoněk
0fe5bc76d0
commands: Fix chassis type matching
...
Resolves: rhbz#1565598
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-10-09 18:00:19 +02:00