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

This commit is contained in:
Jenkins 2012-03-10 03:37:36 +00:00 committed by Gerrit Code Review
commit 09cafcbaf3

View File

@ -912,6 +912,9 @@ if is_service_enabled n-cpu; then
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
apt_get install libvirt-bin 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 # attempt to load modules: network block device - used to manage qcow images
sudo modprobe nbd || true sudo modprobe nbd || true
@ -993,6 +996,9 @@ if is_service_enabled n-net; then
clean_iptables clean_iptables
rm -rf $NOVA_DIR/networks rm -rf $NOVA_DIR/networks
mkdir -p $NOVA_DIR/networks mkdir -p $NOVA_DIR/networks
# Force IP forwarding on, just on case
sudo sysctl -w net.ipv4.ip_forward=1
fi fi
# Storage Service # Storage Service