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
This commit is contained in:
Dean Troyer 2012-03-07 16:47:56 -06:00
parent 165121f7b6
commit 0b31e8678e

View File

@ -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