From 0b31e8678e5817950a0aba37d5930601cb4a1d24 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 7 Mar 2012 16:47:56 -0600 Subject: [PATCH] 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 --- stack.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stack.sh b/stack.sh index eead8a199f..b67bf16ecf 100755 --- a/stack.sh +++ b/stack.sh @@ -886,6 +886,9 @@ if is_service_enabled n-cpu; then # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apt_get install libvirt-bin + # Force IP forwarding on, just on case + sudo sysctl -w net.ipv4.ip_forward=1 + # attempt to load modules: network block device - used to manage qcow images sudo modprobe nbd || true @@ -967,6 +970,9 @@ if is_service_enabled n-net; then clean_iptables rm -rf $NOVA_DIR/networks mkdir -p $NOVA_DIR/networks + + # Force IP forwarding on, just on case + sudo sysctl -w net.ipv4.ip_forward=1 fi # Storage Service