Browse code

Merge "Ensure that ip_forwarding is always enabled for compute and network"

Jenkins authored on 2012/03/10 12:37:36
Showing 1 changed files
... ...
@@ -912,6 +912,9 @@ if is_service_enabled n-cpu; then
912 912
     # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
913 913
     apt_get install libvirt-bin
914 914
 
915
+    # Force IP forwarding on, just on case
916
+    sudo sysctl -w net.ipv4.ip_forward=1
917
+
915 918
     # attempt to load modules: network block device - used to manage qcow images
916 919
     sudo modprobe nbd || true
917 920
 
... ...
@@ -993,6 +996,9 @@ if is_service_enabled n-net; then
993 993
     clean_iptables
994 994
     rm -rf $NOVA_DIR/networks
995 995
     mkdir -p $NOVA_DIR/networks
996
+
997
+    # Force IP forwarding on, just on case
998
+    sudo sysctl -w net.ipv4.ip_forward=1
996 999
 fi
997 1000
 
998 1001
 # Storage Service