This is an automated email from the ASF dual-hosted git repository.
bhaisaab pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push:
new d65f044 CLOUDSTACK-10138: Load br_netfilter in security_group
management script (#2321)
d65f044 is described below
commit d65f0447aefb69aaf849bb53cd3de289e2f1efed
Author: Bitworks Software, Ltd <[email protected]>
AuthorDate: Mon Nov 27 14:42:37 2017 +0700
CLOUDSTACK-10138: Load br_netfilter in security_group management script
(#2321)
Improved debian installation script to find either rb_netfilter module
exists in the system and should be loaded. The implementation does check and
fix during installation process (Ubuntu 14.04/16.04)
---
debian/cloudstack-agent.postinst | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/debian/cloudstack-agent.postinst b/debian/cloudstack-agent.postinst
index 9cb178d..a9b8b68 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
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].