Bug 1182105
Summary: | sysctl.conf / sysctl.conf.d settings should be applied after bridge is added | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Michal Sekletar <msekleta> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED ERRATA | QA Contact: | Vaclav Danek <vdanek> |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | 7.0 | CC: | awilliam, dtardon, harald, ilmostro7, jscotka, laine, lnykryn, milos, qe-baseos-daemons, rhack, systemd-maint-list, systemd-maint, vdanek |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | systemd-219-2.el7 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
Settings from sysctl.conf for bridges were applied only during boot. Problem is that the kernel bridge module could be loaded later, so such settings is not applied.
Consequence:
Fix:
We have added a udev rule which applies those setting when bridge module is loaded.
Result:
|
Story Points: | --- |
Clone Of: | 1122700 | Environment: | |
Last Closed: | 2015-11-19 15:04:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 919472, 1205796 |
Comment 2
Laine Stump
2015-02-23 19:52:14 UTC
*** Bug 1122700 has been marked as a duplicate of this bug. *** *** Bug 1213313 has been marked as a duplicate of this bug. *** lets go for the short-time solution in rhel https://github.com/lnykryn/systemd-rhel/commit/05f3e4b89d6503a4a327be9bee9802097bc8c860 ->post 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, 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://rhn.redhat.com/errata/RHBA-2015-2092.html I'm sorry to revive this old BZ but the fixed pulled in does not really work. there is a quite large window between raising the udev event in kernel and actually creating the sysctls. looking at 7.2 kernel source we do init_module() syscall load_module() mod_sysfs_setup() kobject_uevent(&mod->mkobj.kobj, KOBJ_ADD); ... do_init_module() br_init() br_netfilter_init() register_net_sysctl() if the udev event is processed anywhere between the mod_sysfs_setup() and br_netfilter_init() the setting do not get set. one customer noticed this and as a test created simple udev rule that triggers at this time and runs [root@compute-1 ~]# cat /lib/udev/rules.d/41-kha.rules # do not edit this file, it will be overwritten on update # reload sysctl.conf / sysctl.conf.d settings when the bridge module is loaded ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/root/bridgetest.sh" [root@compute-1 ~]# cat bridgetest.sh #!/bin/bash exec >> /tmp/bridgetest.log echo triggered.. date ls -l /proc/sys/net/bridge echo sleeping... sleep 1 date ls -l /proc/sys/net/bridge [root@compute-1 ~]# which gives following output triggered.. Wed Aug 3 14:39:45 EEST 2016 sleeping... Wed Aug 3 14:39:46 EEST 2016 total 0 -rw-r--r--. 1 root root 0 Aug 3 14:39 bridge-nf-call-arptables -rw-r--r--. 1 root root 0 Aug 3 14:39 bridge-nf-call-ip6tables -rw-r--r--. 1 root root 0 Aug 3 14:39 bridge-nf-call-iptables -rw-r--r--. 1 root root 0 Aug 3 14:39 bridge-nf-filter-pppoe-tagged -rw-r--r--. 1 root root 0 Aug 3 14:39 bridge-nf-filter-vlan-tagged -rw-r--r--. 1 root root 0 Aug 3 14:39 bridge-nf-pass-vlan-input-de note that the first ls does not show anything... question really is how to fix this. kernel can be quite easily modified to trigger the event after do_init_module() finishes but this is not in upstream so there may be some pushback or we can pull in the split to br_netfilter and reduce the number of use cases where this happens. in any case what we have now does not seem to be sufficient The status of this Bug is "CLOSED". Does the last response not warrant it to be re-opened? (In reply to ilmostro7 from comment #10) > The status of this Bug is "CLOSED". Does the last response not warrant it > to be re-opened? We need to file a new bug against kernel. |