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 1869991 - [RFE] Provide a plugin that allows a profile to request starting a service in a declarative fashion
Summary: [RFE] Provide a plugin that allows a profile to request starting a service in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: tuned
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: 8.0
Assignee: Jaroslav Škarvada
QA Contact: Robin Hack
URL:
Whiteboard:
Depends On:
Blocks: 1855447
TreeView+ depends on / blocked
 
Reported: 2020-08-19 08:01 UTC by Martin Sivák
Modified: 2021-05-18 15:06 UTC (History)
6 users (show)

Fixed In Version: tuned-2.15.0-0.1.rc1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:05:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github redhat-performance tuned pull 293 0 None closed Added plugin 'service' 2021-01-28 00:38:06 UTC
Red Hat Bugzilla 1855447 0 urgent CLOSED FIFO priority causes hung tasks 2022-12-22 21:59:14 UTC

Internal Links: 1878602

Description Martin Sivák 2020-08-19 08:01:29 UTC
Description of problem:

There is a new helper service (starvation_monitor [1]) introduced in bug 1855447 that is needed to get very low latency for applications that require SCHED_FIFO on a dedicated core.

We need to start that service together with the realtime / low latency plugins.

So far so good and nothing new, but there are couple of things that complicate matter:

- Starvation monitor cannot be converted into Python plugin like rt-entsk was as it needs to use the bare minimum of carefully selected syscalls only or we risk it will get stuck itself.

- We need to deploy and start the starvation_monitor on an OpenShift node. This itself is a tricky and so we need to be able to parse the profile in NTO (the OpenShift containerization of tuned) and see if the service needs to be installed or not. This we cannot do with an arbitrary scripts.

For those reasons we would like to request a declarative way for starting a service we could use for algorithmic detection of whether any dependencies are needed or not.


Alternative:

A profile based RPM installation that would work in combination with script plugin.


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

ASAP (sorry, this just blocks a huge and very rapidly evolving project right now)


[1] https://bugzilla.redhat.com/show_bug.cgi?id=1855447#c46 and https://github.com/bristot/starvation_monitor

Comment 2 Martin Sivák 2020-08-19 09:14:12 UTC
We found our about one additional requirement after further discussion with jmencak. If service plugin ends up being the proper solution, then we need to be able to pass arguments into the service. 

As an idea it could be a list of environment variables, compiled into a systemd EnvironmentFile that is in turn consumed by the unit. Or it could be an additional config file stored in a place like /etc/systemd/system/<service>.service.d/tuned.conf for example.

Comment 5 Jaroslav Škarvada 2020-08-21 11:15:33 UTC
Upstream PR:
https://github.com/redhat-performance/tuned/pull/293

Comment 13 errata-xmlrpc 2021-05-18 15:05:25 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 (tuned bug fix and enhancement update), 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-2021:1671


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