This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 2120328 - RFE: User-disabled error reporting
Summary: RFE: User-disabled error reporting
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: tuned
Version: 9.1
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: Robin Hack
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-22 15:02 UTC by Jiří Mencák
Modified: 2023-09-21 21:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-21 21:07:17 UTC
Type: Story
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-6817 0 None Migrated None 2023-09-21 21:07:11 UTC
Red Hat Issue Tracker RHELPLAN-131856 0 None None None 2022-08-22 15:11:20 UTC

Internal Links: 2025570

Description Jiří Mencák 2022-08-22 15:02:30 UTC
Description of problem:
Please allow optionally for no ERRORs to be showed (perhaps lower to INFO) when actions such as writing kernel parameters at runtime files.

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

How reproducible:
Always


Example:
[sysctl]
key=value

will produce an ERROR message in the logs, if/when for some reason kernel parameter "key" cannot be set value "value".  Disable error reporting based on this syntax:

[sysctl]
key=?value

Additional info:
https://github.com/redhat-performance/tuned/issues/192
https://github.com/redhat-performance/tuned/issues/412#issuecomment-1030874933
https://coreos.slack.com/archives/CQNBUEVM2/p1661171263592439

Comment 5 Jiří Mencák 2023-05-15 14:20:54 UTC
[sysctl]
key=?value

Is probably not a great idea.  We already have

[sysctl]
key=>value
key=<value

Let's do a per-instance warking/error disablement, something along the lines of
[sysctl_no_errors]
errors=off # or 0 or [Ff]alse, ...
key1=value1
key2=value2

Open to discussion on the exact syntax.

Comment 6 Jiří Mencák 2023-05-17 17:08:13 UTC
After spending some time to write a PoC of this, I believe I have come up with a more flexible syntax.

TuneD uses the following log levels:

Level                   Numeric value
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOG_LEVEL_CONSOLE       60      # defined by TuneD
CRITICAL                50      # unused
ERROR                   40
WARNING                 30
INFO                    20
DEBUG                   10
NOTSET                  0

Also see:

CAPTURE_LOG_LEVELS = {
                "debug": logging.DEBUG,
                "info": logging.INFO,
                "warn": logging.WARN,
                "error": logging.ERROR,
                "console": LOG_LEVEL_CONSOLE,
                "none": None,
                }

I believe that better than using "errors=on/off" would actually be to set the logging level for a plug-in instance.

For example:

[sysctl_show_no_errors]
type=sysctl
log_level=console    # show only messages with CONSOLE (and higher) priority
sysctl_does_not_exist=1
kernel.pty.max=8192

[sysctl_show_no_warnings]
type=sysctl
log_level=error      # show only messages with ERROR (and higher) priority
sysctl_does_not_exist=1
kernel.nmi_watchdog=0

At the moment, setting a log level for a plug-in sets a logging level for all instances of the same type and we do not want that.
Changes to logs.py will likely be necessary.

Comment 7 RHEL Program Management 2023-09-21 20:56:36 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 8 RHEL Program Management 2023-09-21 21:07:17 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


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