Skip to content

Commit 09cafcb

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Ensure that ip_forwarding is always enabled for compute and network"
2 parents cd6a530 + 0b31e86 commit 09cafcb

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
@@ -912,6 +912,9 @@ if is_service_enabled n-cpu; then
912912
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
913913
apt_get install libvirt-bin
914914

915+
# Force IP forwarding on, just on case
916+
sudo sysctl -w net.ipv4.ip_forward=1
917+
915918
# attempt to load modules: network block device - used to manage qcow images
916919
sudo modprobe nbd || true
917920

@@ -993,6 +996,9 @@ if is_service_enabled n-net; then
993996
clean_iptables
994997
rm -rf $NOVA_DIR/networks
995998
mkdir -p $NOVA_DIR/networks
999+
1000+
# Force IP forwarding on, just on case
1001+
sudo sysctl -w net.ipv4.ip_forward=1
9961002
fi
9971003

9981004
# Storage Service

0 commit comments

Comments
 (0)