Fixed functional iptables firewall tests for newer kernels
Iptables functional tests fail on Xenial and other newer kernels if
br_netfilter kernel module is not loaded, in which case sysctl knobs to
enable bridge firewalling are not available, and attempt to set them
with _enable_netfilter_for_bridges fails.
We should load the kernel module before running those tests. Luckily,
devstack has a function for just that (plus more).
Reviewed: https:/ /review. openstack. org/399661 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=69f94f45dc5 df1095bf94a1944 e565a7a792a6a1
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 69f94f45dc5df10 95bf94a1944e565 a7a792a6a1
Author: Ihar Hrachyshka <email address hidden>
Date: Thu Sep 29 13:36:07 2016 +0000
Fixed functional iptables firewall tests for newer kernels
Iptables functional tests fail on Xenial and other newer kernels if netfilter_ for_bridges fails.
br_netfilter kernel module is not loaded, in which case sysctl knobs to
enable bridge firewalling are not available, and attempt to set them
with _enable_
We should load the kernel module before running those tests. Luckily,
devstack has a function for just that (plus more).
Change-Id: I602d8cd02c73b1 8e9d719b19998e3 6059ae28cd8 a63d1096ef83ebb b6cd630fafd 1be1fcb6e11163f 78cce8b65d)
Depends-On: Id6bfd9595f0772
Related-Bug: #1622914
(cherry picked from commit 80eb375ba1d58a4