You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2014/11/19 23:50:15 UTC

git commit: updated refs/heads/4.5 to 50b262e

Repository: cloudstack
Updated Branches:
  refs/heads/4.5 2c9310e62 -> 50b262e02


CLOUDSTACK-7944: Ensure ipv6 is enabled in sysctl.conf

The booting sequence result in change of IPv6 related sysctl options was
overrided by sysctl.conf which is loaded later.

So this patch would patch sysctl.conf in VR as well, ensure IPv6 would be
enabled during booting period otherwise the network setup may not work, result
in IPv6 VM deployment failure.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/50b262e0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/50b262e0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/50b262e0

Branch: refs/heads/4.5
Commit: 50b262e02a898a1aafc592d9f72cd8a3b6b272ff
Parents: 2c9310e
Author: Sheng Yang <sh...@citrix.com>
Authored: Wed Nov 19 14:25:57 2014 -0800
Committer: Sheng Yang <sh...@citrix.com>
Committed: Wed Nov 19 14:50:03 2014 -0800

----------------------------------------------------------------------
 systemvm/patches/debian/config/etc/init.d/cloud-early-config | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/50b262e0/systemvm/patches/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/init.d/cloud-early-config b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
index 9942f2d..11d0612 100755
--- a/systemvm/patches/debian/config/etc/init.d/cloud-early-config
+++ b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
@@ -398,12 +398,16 @@ setup_interface_ipv6() {
   sysctl net.ipv6.conf.all.disable_ipv6=0
   sysctl net.ipv6.conf.all.forwarding=1
   sysctl net.ipv6.conf.all.accept_ra=1
-  
+
+  sed  -i "s/net.ipv6.conf.all.disable_ipv6 =.*$/net.ipv6.conf.all.disable_ipv6 = 0/" /etc/sysctl.conf
+  sed  -i "s/net.ipv6.conf.all.forwarding =.*$/net.ipv6.conf.all.forwarding = 1/" /etc/sysctl.conf
+  sed  -i "s/net.ipv6.conf.all.accept_ra =.*$/net.ipv6.conf.all.accept_ra = 1/" /etc/sysctl.conf
+
   local intfnum=$1
   local ipv6="$2"
   local prelen="$3"
   local intf=eth${intfnum}
-  
+
   echo "iface $intf inet6 static" >> /etc/network/interfaces
   echo "  address $ipv6 " >> /etc/network/interfaces
   echo "  netmask $prelen" >> /etc/network/interfaces