Skip to content

flow_caches_stress_test: fix nf_conntrack_max prep on RHEL 10.3+ - #4491

Open
hholoubk wants to merge 1 commit into
autotest:masterfrom
hholoubk:fix/flow-caches-nf-conntrack-max
Open

flow_caches_stress_test: fix nf_conntrack_max prep on RHEL 10.3+#4491
hholoubk wants to merge 1 commit into
autotest:masterfrom
hholoubk:fix/flow-caches-nf-conntrack-max

Conversation

@hholoubk

Copy link
Copy Markdown

Kernels after the netfilter rebase reject nf_conntrack_max=0 (EINVAL). Use INT_MAX on RHEL 10.3+ host/guest, keep 0 elsewhere, and restore the host sysctl after the test.

Even it looks like full rewrite .. it is not.
The significant changes are:
functionality:

  • configuration change to set correct value to the system
  • split of versions where the change is relevant.
    test quality:
  • added host recovery that was missing

Changes for better maintainability/readability:

  • moving the host & guest preparation into inner methods (no need for specific provider as for now it looks not reusable)
  • changing the %s formating into f"" (except the few logging parts, where is lazy formating should be better.

The netperf part UNTOUCHED as the netperf approach will be replaced.

@hholoubk
hholoubk force-pushed the fix/flow-caches-nf-conntrack-max branch from d0c8e19 to 3bd0f0b Compare August 17, 2026 07:14
Kernels after the netfilter rebase reject nf_conntrack_max=0 (EINVAL).
Use INT_MAX on RHEL 10.3+ host/guest, keep 0 elsewhere, and restore the
host sysctl after the test.

Assisted-by: Cursor Grok ~70%
Reference: LIBVIRTARM-835
Signed-off-by: hholoubk <hholoubk@redhat.com>
@hholoubk
hholoubk force-pushed the fix/flow-caches-nf-conntrack-max branch from 3bd0f0b to 4dbec68 Compare August 17, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant