Bug 2064755 - nf_conntrack_hashsize in [net] doesn't work when kernel module nf_conntrack isn't loaded
Summary: nf_conntrack_hashsize in [net] doesn't work when kernel module nf_conntrack i...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: tuned
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: Robin Hack
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-16 13:49 UTC by Robin Hack
Modified: 2023-08-17 07:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-115742 0 None None None 2022-03-16 13:53:05 UTC

Description Robin Hack 2022-03-16 13:49:05 UTC
Description of problem:
Create profile with:
[net]
nf_conntrack_hashsize=131072

enable profile

Take a look at logs:
2022-03-16 09:41:56,931 ERROR    tuned.utils.commands: Error when reading file '/sys/module/nf_conntra
ck/parameters/hashsize': '[Errno 2] No such file or directory: '/sys/module/nf_conntrack/parameters/hashsize''
2022-03-16 09:41:56,931 ERROR    tuned.utils.commands: Writing to file '/sys/module/nf_conntrack/parameters/hashsize' error: '[Errno 2] No such file or directory: '/sys/module/nf_conntrack/parameters/hashsize''


After: 
# modprobe nf_conntrack
there is no issue in logs

Version-Release number of selected component (if applicable):
tuned-2.18.0-1.el9.noarch

How reproducible:
always


Actual results:
Kabooom

Expected results:
No kabooom

Comment 1 Jaroslav Škarvada 2022-05-23 13:24:32 UTC
We have currently +r flag to force reload:
[modules]
MODULE=+r OPTION=VALUE

We could add e.g. the 'f' or 'c' flag to handle this situation, e.g.:
[modules]
MODULE1=+rf OPTION=VALUE
MODULE2=+fr OPTION=VALUE
MODULE3=+f OPTION=VALUE


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