You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2014/11/06 13:53:47 UTC

git commit: updated refs/heads/4.3 to 9a4e799

Repository: cloudstack
Updated Branches:
  refs/heads/4.3 f7378d8ad -> 9a4e79990


CLOUDSTACK-7855: NIC3 should set MTU and not NIC1 for storage network nic

The fix also persists the configuration in /etc/network/interfaces

Signed-off-by: Rohit Yadav <ro...@shapeblue.com>


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

Branch: refs/heads/4.3
Commit: 9a4e79990a8a4564102f666b3e4f2bcf84799824
Parents: f7378d8
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Thu Nov 6 18:23:17 2014 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Thu Nov 6 18:23:17 2014 +0530

----------------------------------------------------------------------
 systemvm/patches/debian/config/etc/init.d/cloud-early-config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9a4e7999/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 92290c4..77cb05a 100755
--- a/systemvm/patches/debian/config/etc/init.d/cloud-early-config
+++ b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
@@ -1104,6 +1104,7 @@ setup_storage_network() {
 	echo "auto eth3" >> /etc/network/interfaces
 	
 	setup_interface "3" "$STORAGE_IP" "$STORAGE_NETMASK"
+    [ -n "$MTU" ] && ifconfig eth3 mtu $MTU && echo "  mtu $MTU" >> /etc/network/interfaces
 	#ip route add "$STORAGE_CIDR" via "$STORAGE_IP"
 	log_it "Successfully setup storage network with STORAGE_IP:$STORAGE_IP, STORAGE_NETMASK:$STORAGE_NETMASK, STORAGE_CIDR:$STORAGE_CIDR"
 }
@@ -1113,7 +1114,6 @@ setup_secstorage() {
   local hyp=$1
   setup_common eth0 eth1 eth2
   setup_storage_network
-  [ -n "$MTU" ] && ifconfig eth1 mtu $MTU
   sed -i  /gateway/d /etc/hosts
   public_ip=$ETH2_IP
   [ "$ETH2_IP" == "0.0.0.0" ] && public_ip=$ETH1_IP