1
0
Fork 0
Commit graph

174 commits

Author SHA1 Message Date
Jaroslav Škarvada
bc3f737a00
new release (2.16.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-07-07 23:46:06 +02:00
Jan Zerdik
28a4149685 Removing depedency on python-decorator package.
Resolves: rhbz#1936421

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2021-07-07 10:40:41 +02:00
Jaroslav Škarvada
8782533b17
syspurpose is provides by subscription-manager on RHEL-9
Resolves: rhbz#1948764

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2021-04-12 23:07:48 +02:00
Jaroslav Škarvada
16f50af056
Merge pull request #323 from CZerta/scheduler_os_interface
Changes to scheduler plugin to support os interface instead of schedutils in newer python versions.
2021-03-01 13:00:40 +01:00
Jan Zerdik
a9b1d66dc8 Changes to scheduler plugin to support os interface instead
of schedutils in newer python versions.

Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2021-03-01 11:09:50 +01:00
Jan Zerdik
8d45b78832 Add make as BuildRequires for new fedora and rhel (bz#1900006)
Signed-off-by: Jan Zerdik <jzerdik@redhat.com>
2021-02-22 10:21:37 +01:00
Jaroslav Škarvada
5397166de5
new release (2.15.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-12-17 18:27:53 +01:00
Jaroslav Škarvada
28afbb28f8
new release (2.15.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-12-01 19:59:42 +01:00
Bryn M. Reeves
84b125a6b8 Don't modify boom managed BLS snippets
Currently the 92-tuned.install kernel-install plugin modifies all
BLS snippets that match the KERNEL_INSTALL_MACHINE_ID passed to
the script.

This makes sense for the system managed entries but it conflicts
with entries that are managed by the boom boot manager: boom will
propagate these options if they are present when the entry is set
up, but the files should not be modified outside boom's control
since this will cause the boom boot identifier to change.

Boom boot entries include the boot_id in the file name pattern:

  %{machine_id}-%{boot_id}-%{version}.conf

Compared to the system managed entries which use:

  %{machine_id}-%{version}.conf

Modify 92-tuned.install to skip this change for files that match
the boom naming convention.

Rather than rely on the presence of '-' (which may appear in some
kernel builds, especially custom or debug kernels), use a regular
expression to match the 7-character or greater SHA1 hash that
appears in boom BLS snippet file names and the remaining structure
of the file name.

A paired change is made to the tuned.spec %postun script to apply
the same scope to the logic that reverts these changes on removal.

This gives the correct behaviour for me of continuing to add the
$tuned_... references to the system managed entries where needed,
but without causing unexpected changes to the boom boot entries.
The spec file also correctly reverts the change for the same set
of entries when %postun is executed.

Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
2020-11-19 15:15:07 +00:00
Jaroslav Škarvada
6c448fcda1
spec: added weak dependency on kmod for modprobe
Fixes: #304

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-11-09 20:12:57 +01:00
Tigran Mkrtchyan
f7ecad0ae0 added postgresql server profile
A new tuned profile for PostgreSQL database server.

This profile is based of information collected from various
presentations about Linux tuning at PGConf.

See: https://www.socallinuxexpo.org/sites/default/files/presentations/scale_kosmodemiansky_linux_internals.pdf

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
2020-07-31 20:49:11 +02:00
Jaroslav Škarvada
6e6f324885
spec: drop qemu-kvm-tools-rhev, tuned-profiles-nfv-host-bin requirements
Without LAPIC tuning we do not need qemu-kvm-tools-rhev and
tuned-profiles-nfv-host-bin requirements.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-07-22 15:23:44 +02:00
Jaroslav Škarvada
6dd13f7753
spec: make hdparm dependency weak, because it's not available on s390x
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-07-22 10:43:18 +02:00
Jaroslav Škarvada
b16493a5c5
Merge pull request #281 from yarda/rhel-7-build-fix
Fixed building on RHEL-7/CentOS 7
2020-07-22 10:09:29 +02:00
Jaroslav Škarvada
89e670c80a
Fixed building on RHEL-7/CentOS 7
Also fixed building with python-2.7.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-19 11:15:12 +02:00
Michal Bajer
d5825a51f4 Replaced python-dmidecode with reading sysfs dmi and dmidecode tool.
Fixes #232
sysfs exports virtual dmi device structs which provides chassis type in numeric form, it should be available in all RHEL6+, so I used it as primary source (not much overhead).
If for some reasons it couldn't be read, dmidecode output will be parsed instead. Removed any references to python-dmidecode module.
chassis type is gathered only once, and only one intance of ProfileRecommender will be created (in daemon).

Signed-off-by: Michal Bajer <outSH@users.noreply.github.com>

Fix whitespace and other minor issues in solution for #232

Signed-off-by: Michal Bajer <outSH@users.noreply.github.com>
2020-06-15 18:30:03 +02:00
Jaroslav Škarvada
1d0dd6e5ae
new release (2.14.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-15 11:26:48 +02:00
Jaroslav Škarvada
ccc4161f23
new release (2.14.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-06-08 23:05:49 +02:00
Ondřej Lysoněk
4f5f35830a Add support for a post-loaded profile
This is a minimal viable implementation of a post-loaded profile
feature. It was implemented to satisfy the needs of the
kernel_settings Ansible role.
https://github.com/linux-system-roles/kernel_settings

This feature allows us to apply a profile in a way that is
somewhat separate from the way profiles from the active_profile file
are applied. Namely, the post-loaded profile is always applied after
all the profiles from the active_profile (or more precisely, the
post-loaded profile is always put to the tail of the profile chain
when merging). Also, the post-loaded profile setting is not affected
by running 'tuned-adm profile <some profile>' - the post-loaded
profile remains applied.

The name of the post-loaded profile is stored in
/etc/tuned/post_loaded_profile.

The lack of support for multiple post-loaded profiles was more or less
an arbitrary decision. There are no problems with it, as far as I can
see. However, there is currently no use case for multiple post-loaded
profiles, so I decided to make things easier for our future selves -
it's one less thing to worry about if we need to make changes to the
profile loading logic. We can add support for multiple post-loaded
profiles anytime.

A number of other design decisions went into the
implementation. They are listed here:
https://github.com/redhat-performance/tuned/pull/272

Resolves: rhbz#1798183

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2020-06-01 19:11:29 +02:00
Jaroslav Škarvada
e33d9363d9
spectrumcale-ece: package the profile to own subpackage
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-05-19 17:09:19 +02:00
Miro Hrončok
2399aa3b2d Remove usage of unittest2, use unittest from the standard library
Fixes https://github.com/redhat-performance/tuned/issues/241

Fedora is removing the unittest2 package: https://bugzilla.redhat.com/show_bug.cgi?id=1794222

tuned is not targeting Python 2.6: https://github.com/redhat-performance/tuned/issues/241#issuecomment-588320175

One thing not present in Python 2.7 is assertItemsEqual() -- renamed to assertCountEqual().

Related, mock was also listed as a requirement in the spec file,
but all the imports are from unittest.mock, hence removed.
2020-02-25 20:04:51 +01:00
Jaroslav Škarvada
cc11660689
realtime-virtual-host: added ncat requirement
resolves: rhbz#1779117

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2020-01-13 21:29:00 +01:00
Jaroslav Škarvada
193b9fa641
new release (2.13.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-12-11 18:13:16 +01:00
Jaroslav Škarvada
d11c907be0
new release (2.13.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-12-01 16:49:38 +01:00
Tomas Korbar
140d982354 Replace python flexmock module with builtin mock
Also replace dependency in specfile and alter dockerfile

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
2019-11-28 07:54:15 +01:00
Jaroslav Škarvada
4c3d45c259 docs: disabled docs generation on RHEL, there is no asciidoctor
And asciidoc doesn't seem to be compatible, so disable the docs
generation for now on RHEL.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-11-20 13:36:44 +01:00
Jaroslav Škarvada
94a80127e4 unittests: disabled on RHEL due to missing dependency
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-11-20 13:36:44 +01:00
Jaroslav Škarvada
dba0ec0c65
spec: added %check to run unit tests
Also shipped 'tests' in sources.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-11-17 23:37:17 +01:00
Jaroslav Škarvada
b514cda168
new release (2.12.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-06-27 17:08:55 +02:00
Jaroslav Škarvada
fd0ed00757
new release (2.12.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-06-12 15:00:23 +02:00
Ondřej Lysoněk
800945d091 Drop profile sap-hana-vmware
As discussed in rhbz#1672213, the sap-hana-vmware profile is not needed
anymore and it only confuses users. Let's drop it.

Resolves: rhbz#1715541

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-06-06 10:52:15 +02:00
Jaroslav Škarvada
e8393c5c0a
spec: improved python macros handling
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-21 23:40:03 +01:00
Jaroslav Škarvada
7a28246835
new release (2.11.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-21 23:10:46 +01:00
Jaroslav Škarvada
033e35b4c4 doc: renamed doc/guide to doc/manual
After team discussion we decided to rename it to manual.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-13 14:39:55 +01:00
Jaroslav Škarvada
94d70899c9
doc: installed html instead of the adoc
Also added support to the Makefile and spec.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-12 19:57:15 +01:00
Jaroslav Škarvada
f521439b5c
new release (2.11.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-10 21:00:05 +01:00
Jaroslav Škarvada
f3228390f9
spec: do not require python/python3 dmidecode
If "recommends" is not supported do not use "requires" for
python/python3 dmidecode, because dmidecode is not available on
all architectures.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-10 20:54:46 +01:00
Jaroslav Škarvada
6e6c7e3e6b
spec: dropped com.redhat.tuned.gui.policy
It's leftover. The policy was dropped because the GUI no longer requires
root.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-10 11:28:18 +01:00
Jaroslav Škarvada
5da98a7598
spec: added conditionals for RHEL-7
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2019-03-10 11:26:55 +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
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
Ondřej Lysoněk
9efd6d7728 Support syspurpose role matching in recommend.conf
Resolves: rhbz#1565598

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-24 10:58:25 +02:00
Ondřej Lysoněk
469a862501 Support chassis type matching in recommend.conf
Resolves: rhbz#1565598

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-24 10:58:25 +02:00
Ondřej Lysoněk
2039d7cb0d spec: Simplify the Source0 tag
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-07-10 16:48:54 +02:00
Jaroslav Škarvada
d9fc98357c
Makefile: added support for python interpreter with arbitrary path
Also used python macros in the spec file.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-09 14:48:56 +02:00
Jaroslav Škarvada
38700a9523
spec: fixed URL for pre-releases
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-05 00:16:21 +02:00
Jaroslav Škarvada
443fd85cba
spec: dropped obsoleted scriptlets
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-04 23:12:33 +02:00
Jaroslav Škarvada
323acf2c43
new release (2.10.0)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-07-04 21:23:21 +02:00
Jaroslav Škarvada
91c89db361
new release (2.10.0-rc.1)
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2018-06-11 20:42:24 +02:00