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 2026709 - Install TuneD by default on all RHEL (virtual/cloud) images which use @core package group
Summary: Install TuneD by default on all RHEL (virtual/cloud) images which use @core p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: osbuild-composer
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Tomáš Hozza
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-25 14:40 UTC by Tomáš Hozza
Modified: 2022-06-23 14:22 UTC (History)
8 users (show)

Fixed In Version: osbuild-composer-40-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 13:30:01 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github osbuild osbuild-composer pull 2084 0 None open RHEL-9.0: Install TuneD by default and stop using `@core` package group 2021-12-01 12:50:51 UTC
Red Hat Issue Tracker RHELPLAN-103961 0 None None None 2021-11-25 14:41:33 UTC
Red Hat Product Errata RHBA-2022:2522 0 None None None 2022-05-17 13:30:28 UTC

Description Tomáš Hozza 2021-11-25 14:40:02 UTC
Description of problem:
The @core package group used to include TuneD package by default on RHEL-8. It has been removed from the group in Fedora as part of [1] and inherited into RHEL-9. As a result, TuneD is no longer installed by default on RHEL images.

After a discussion on rhel-devel there seems to be an agreement, that TuneD should be installed by default on all RHEL virtual images. At least we should keep the consistency in this regard with RHEL-8.

From what I checked, all non-EDGE images use the @core group, therefore they should also have "tuned" installed by default.

Version-Release number of selected component (if applicable):
latest RHEL-9 and upstream `main`

How reproducible:
always

Steps to Reproduce:
1. rpm -q tuned
2.
3.

Actual results:
tuned not installed

Expected results:
NVR of installed tuned package

Additional info:
[1] https://pagure.io/fork/adelton/fedora-comps/c/a5d4f1b6c9fcbe20cb0c38eac5048d7d45d1dd17

Comment 1 Jiri Hladky 2021-12-02 15:34:16 UTC
Update from Kernel Performance QE group:

tuned is important for the system performance and it should be installed by default.

Comment 2 Jaroslav Škarvada 2021-12-03 18:40:28 UTC
I received information from jhladky that polkit libraries which are pulled-in as a TuneD dependency uses cca. 8.2 MB which is not negligible for the image.

TuneD uses polkit for D-Bus authorization, this feature is there since RHEL-7. It should work even without the polkit (currently untested, but it was designed this way). Without polkit only root can access the D-Bus TuneD interface on the system bus and on each access it will log error that polkit is not available (this could be patched out in TuneD to log the error only once per session). Removing the polkit may introduce some inconvenience to e.g. the workstation users and third party apps used to control the TuneD - all will have to run with the root privileges, which is not good from the security perspective. Or we will have to add explicit list of allowed users to the TuneD, but it is reinvention of the wheel.

We could also make the polkit soft dependency in the spec, but I don't know whether it will help you with the creation of the image. In such case if it is installed without the polkit only root will be allowed to control the TuneD. If installed with the polkit it will work as expected using the system wide policy.

Comment 3 Tomáš Hozza 2021-12-06 11:26:23 UTC
Hi Jaroslav.

(In reply to Jaroslav Škarvada from comment #2)
> I received information from jhladky that polkit libraries which are
> pulled-in as a TuneD dependency uses cca. 8.2 MB which is not negligible for
> the image.

The change is meant to be for virtual and cloud images. The RHEL guest image is 4GB in size and the EC2 images are all 10GB in size. I think that 8.2MB is not really an issue. Also TuneD used to be installed on all of this images in the past and it is missing on their RHEL-9 version only because of a change in the @core package group which was not meant to modify the content of RHEL images.
 
> TuneD uses polkit for D-Bus authorization, this feature is there since
> RHEL-7. It should work even without the polkit (currently untested, but it
> was designed this way). Without polkit only root can access the D-Bus TuneD
> interface on the system bus and on each access it will log error that polkit
> is not available (this could be patched out in TuneD to log the error only
> once per session). Removing the polkit may introduce some inconvenience to
> e.g. the workstation users and third party apps used to control the TuneD -
> all will have to run with the root privileges, which is not good from the
> security perspective. Or we will have to add explicit list of allowed users
> to the TuneD, but it is reinvention of the wheel.
> 
> We could also make the polkit soft dependency in the spec, but I don't know
> whether it will help you with the creation of the image. In such case if it
> is installed without the polkit only root will be allowed to control the
> TuneD. If installed with the polkit it will work as expected using the
> system wide policy.

IMO you can keep things the way they are right now as the dependency is IMO not an issue for RHEL virtual/cloud images.

Comment 4 Jiri Hladky 2021-12-06 11:46:58 UTC
> IMO you can keep things the way they are right now as the dependency is IMO
> not an issue for RHEL virtual/cloud images.

Hi Tomas,

I agree with you!

We have discussed the issue at the kscale meeting, and we concluded that the tuned was removed to make the RHEL image as small as possible. This is why I have asked Jaroslav for analysis if we can reduce the number of dependencies. 

Tuned is very important for the system performance, and the Red Hat Performance team strongly advocates for including the tuned in RHEL images by default.

Thanks
Jirka

Comment 5 Tomáš Hozza 2022-01-12 14:11:41 UTC
Note for QE:

This change affected the following image types:
- qcow2
- vhd
- vmdk
- openstack
- image-installer

Comment 10 Jaroslav Škarvada 2022-01-26 09:37:03 UTC
FYI, it seems with the Gnome desktop the power-profiles-daemon is now installed and enabled by default. It's stopping TuneD upon start. Workaround is to disable or uninstall power-profiles-daemon.

Comment 12 errata-xmlrpc 2022-05-17 13:30:01 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 (new packages: osbuild-composer), 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-2022:2522

Comment 13 Jiri Hladky 2022-06-21 18:03:04 UTC
Hi Tomas,

does it work for you - is tuned installed by default in RHEL-9.0.0 for your environment? 

I have done some trials with Beaker and tuned IS NOT installed by default:

* With RHEL-9.0.0 GA, tuned is NOT installed by default (tested on bare metal and with multi-user.target in Beaker)
* I have tested RHEL-9.0.0-updates-20220621.1 and tuned is still not installed
* Same results with RHEL-9.1.0-20220621.1 - tuned is still not installed by default

Thanks a lot!
Jirka

Comment 14 Tomáš Hozza 2022-06-23 14:04:09 UTC
This bug is related to RHEL images produced by Image Builder, not installations done using Anaconda.

Comment 15 Jiri Hladky 2022-06-23 14:22:57 UTC
For tracking purposes, I will post here results of various discussions:

--------------------Tomas Hozza-----------------------------------
So the reason is that the summary states "Install TuneD by default on all RHEL (virtual/cloud) images ...".

This means that Tuned is installed by default on all RHEL images that are produced by Image Builder (osbuild-composer), but the change has no effect on default installation that is done via Anaconda.

---------------------Josh Boyer-----------------------------------
Jan removed tuned from the @core group in Fedora ELN Jan 18, 2021.

commit a5d4f1b6c9fcbe20cb0c38eac5048d7d45d1dd17
Author: Jan Pazdziora <jpazdziora>
Date:   Mon Jan 18 12:21:03 2021 +0100

    The tuned daemon should not be mandatory in minimal host installations.

If I remember correctly, this was to minimize the footprint and reduce
the number of packages that are required for Common Criteria
certification.  We can add tuned to the @base/@standard groups, but it
should probably not go back into @core at this point.

=======================================================================
Resolution:

We have agreed to add tuned to @base/@standard groups. Here are the tickets:

https://bugzilla.redhat.com/show_bug.cgi?id=2100491
https://issues.redhat.com/browse/ENGCMP-2413


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