Permalink
Browse files

Fixed the bug, vm instances cannot connect to internet.

  • Loading branch information...
1 parent 505e99b commit ee620a0f8237775cfb787c39fb3b030290e6b71f @wangyjsh wangyjsh committed Mar 21, 2012
View
2 softwares/nova/puppet/manifests/nova_network/install.pp
@@ -12,7 +12,7 @@
include nova::bridge
exec {
- "stop nova-network; start nova-network":
+ "sysctl -w net.ipv4.ip_forward=1; stop nova-network; start nova-network":
require => [Package[nova-network, iptables, radvd, bridge-utils], Service[dnsmasq], File["/etc/nova/nova.conf"]]
}
}
View
2 softwares/nova/puppet/manifests/nova_network/uninstall.pp
@@ -7,7 +7,7 @@
}
exec {
- "killall dnsmasq; exit 0":
+ "sysctl -w net.ipv4.ip_forward=0; killall dnsmasq; exit 0":
require => Package[dnsmasq]
}
}

0 comments on commit ee620a0

Please sign in to comment.