Skip to content

Commit 0b31e86

Browse files
author
Dean Troyer
committed
Ensure that ip_forwarding is always enabled for compute and network
Libvirt gets this in most cases, but it can be disabled. This is belts + suspenders + super glue... Fixes bug 885274 Change-Id: Ifb8d627689800b23cce02a623caa525cd17e507d
1 parent 165121f commit 0b31e86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stack.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,9 @@ if is_service_enabled n-cpu; then
886886
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
887887
apt_get install libvirt-bin
888888

889+
# Force IP forwarding on, just on case
890+
sudo sysctl -w net.ipv4.ip_forward=1
891+
889892
# attempt to load modules: network block device - used to manage qcow images
890893
sudo modprobe nbd || true
891894

@@ -967,6 +970,9 @@ if is_service_enabled n-net; then
967970
clean_iptables
968971
rm -rf $NOVA_DIR/networks
969972
mkdir -p $NOVA_DIR/networks
973+
974+
# Force IP forwarding on, just on case
975+
sudo sysctl -w net.ipv4.ip_forward=1
970976
fi
971977

972978
# Storage Service

0 commit comments

Comments
 (0)