cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: updated refs/heads/4.5 to f38c2f8
Date Wed, 10 Dec 2014 12:53:23 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.5 8278d88f7 -> f38c2f87b


CLOUDSTACK-7974: remove old hostname entry for a VM when adding a VM

When adding a VM, it adds an entry to /etc/hosts file on the VR but does not
clear up any older entries for the VM with a same name. The fix uncomments the
command that removes any old entries in the VM.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 63298d9b742811919717ffd6303c8a2e9d37a3dd)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


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

Branch: refs/heads/4.5
Commit: f38c2f87b11f5a00730e386759c2d46c2eef93c1
Parents: 8278d88
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Wed Dec 10 18:04:25 2014 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Wed Dec 10 18:23:16 2014 +0530

----------------------------------------------------------------------
 systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f38c2f87/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh b/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
index 4912bce..f0d9c00 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
+++ b/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
@@ -121,8 +121,7 @@ then
   sed -i  /$ipv6],/d $DHCP_HOSTS
 fi
 # don't want to do this in the future, we can have same VM with multiple nics/entries
-#sed -i  /$host,/d $DHCP_HOSTS
-
+sed -i  /$host,/d $DHCP_HOSTS
 
 #put in the new entry
 if [ $ipv4 ]


Mime
View raw message