[
https://issues.apache.org/jira/browse/CLOUDSTACK-10138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266467#comment-16266467
]
ASF GitHub Bot commented on CLOUDSTACK-10138:
---------------------------------------------
rhtyd closed pull request #2321: CLOUDSTACK-10138: Load br_netfilter in
security_group management script
URL: https://github.com/apache/cloudstack/pull/2321
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/debian/cloudstack-agent.postinst b/debian/cloudstack-agent.postinst
index 9cb178d4f12..a9b8b687fab 100755
--- a/debian/cloudstack-agent.postinst
+++ b/debian/cloudstack-agent.postinst
@@ -35,6 +35,15 @@ case "$1" in
done
fi
+ BR_NETFILTER_MODULE=br_netfilter
+ MODULES_FILE=/etc/modules
+ if /sbin/modinfo $BR_NETFILTER_MODULE >/dev/null 2>&1; then
+ /sbin/modprobe $BR_NETFILTER_MODULE
+ if ! grep $BR_NETFILTER_MODULE $MODULES_FILE >/dev/null 2>&1; then
+ echo "$BR_NETFILTER_MODULE" >> $MODULES_FILE
+ fi
+ fi
+
# Running cloudstack-agent-upgrade to update bridge name for upgrade
from CloudStack 4.0.x (and before) to CloudStack 4.1 (and later)
/usr/bin/cloudstack-agent-upgrade
if [ ! -d "/etc/libvirt/hooks" ] ; then
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Load br_netfilter in security_group management script
> -----------------------------------------------------
>
> Key: CLOUDSTACK-10138
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10138
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: cloudstack-agent
> Affects Versions: 4.10.0.0
> Environment: Ubuntu 14.04
> Reporter: Ivan Kudryavtsev
>
> When setting
> sysctl -w net.bridge.bridge-nf-call-arptables=1
> sysctl -w net.bridge.bridge-nf-call-iptables=1
> sysctl -w net.bridge.bridge-nf-call-ip6tables=1
> /usr/share/cloudstack-common/scripts/vm/network/security_group.py
> doesn't check that br_netfilter is load.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)