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 1737452 - Inconsistency between bridge-nf-call-iptables value at boot and at network restart | sysctl --system
Summary: Inconsistency between bridge-nf-call-iptables value at boot and at network re...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: initscripts
Version: 7.6
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Macku
QA Contact: Daniel Rusek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-05 12:00 UTC by Antoine TRAN
Modified: 2021-03-15 07:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-15 07:38:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Antoine TRAN 2019-08-05 12:00:05 UTC
Description of problem:
At start, I have:
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 1
At systemctl restart network, I have
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
Same with sysctl --system

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


How reproducible:
Systematic

Steps to Reproduce:
1. see beyond

Actual results:
The value is reset to 0, and we have to reboot to reproduce.

Expected results:
The same value. Either 1 or 0, but this should be consistent.

Additional info:

Comment 1 Antoine TRAN 2019-08-05 16:25:14 UTC
Linked to https://bugzilla.redhat.com/show_bug.cgi?id=634736 and https://bugzilla.redhat.com/show_bug.cgi?id=512206 , that are closed today.

Comment 2 Ben Cotton 2019-08-13 17:08:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 3 Ben Cotton 2019-08-13 18:32:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 4 Antoine TRAN 2019-08-19 16:51:22 UTC
Hi, I am sorry, I updated to the correct OS where this really happened: Red Hat 7.6 (3.10.0-957.5.1.el7.x86_64).
Originally, this happened on a CentOs 7.4, but I reproduced in Red Hat.
Steps to reproduce:
1/ Create a clean VM Red Hat 7.3
2/ Update Red Hat to latest 7.7 with yum
3/ sudo modprobe br_netfilter
# to make appear the sysctl. Source: https://github.com/saltstack/salt/issues/20570
4/ sudo sysctl -a|grep table
=> will show value set to 1
5/ sudo systemctl restart network
6/ sudo sysctl -a|grep table
=> will show value set to 0

Comment 6 Antoine TRAN 2019-08-19 16:52:54 UTC
(*typo: I said 7.7, I meant 7.6)

Comment 7 Antoine TRAN 2019-08-19 16:54:47 UTC
I can't edit, here is the corrected steps to reproduce:

Steps to reproduce:
1/ Create a clean VM Red Hat 7.3
2/ Update Red Hat to latest 7.6 with yum
2.1/ sudo yum install bridge-utils
# Updates to latest 1.5-9.el7
3/ sudo modprobe br_netfilter
# to make appear the sysctl. Source: https://github.com/saltstack/salt/issues/20570
4/ sudo sysctl -a|grep table
=> will show value set to 1
5/ sudo systemctl restart network
6/ sudo sysctl -a|grep table
=> will show value set to 0

Comment 9 Eric Garver 2020-10-09 16:52:28 UTC
This is not a bridge-utils bug. It's cause by the systemd service "systemd-sysctl" which gets restarted when the "network" service is restarted. The file is provided by the `initscripts` package.

# cat /usr/lib/sysctl.d/00-system.conf 
# Kernel sysctl configuration file
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

You can address this by setting your own values for these in `/etc/sysctl.d/`. Create a file and set them to 1.

The values are initially 1 when br_netfilter is loaded because that's what the kernel defaults to. I don't know why initscripts is changing the defaults.

Reassigning to initscripts. But at the same time closing because this has a simple workaround and changing the defaults provided by initscripts is not an option.

Comment 10 Antoine TRAN 2020-10-16 08:08:11 UTC
Hi,
I understand the answer but I differ on the conclusion.
If initscripts is responsible for overriding sysctl default value for whatever reason, then it should force the same value at a systemctl restart network. Or initscript rpm should override the default sysctl value by adding a /etc/sysctl.d/initscript.conf override, to avoid the confusion. I am not asking for iniscript to remove the value of 1, obviously that would break a lot of system. And now that I know bridgeutil did not set the value to 1, I am not asking them to put 1 as default. But I am asking if initscript dev can be consistent and put 1 as value both in startup (done) and in sysctl (not done).

Reopening, hoping this would be understood.

Comment 11 Antoine TRAN 2020-10-16 08:11:14 UTC
I can add that in our project we did systemctl restart network and that break some network feature, unless we add sysctl override. One would not expect a systemctl restart network would change lowlevel kernel option. But we spent time we shouldn't have and other projects might encounter the same issue.

Comment 14 RHEL Program Management 2021-03-15 07:38:12 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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