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.4 to 5bc2d06
Date Wed, 10 Dec 2014 12:52:34 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.4 47754a68a -> 5bc2d06c4


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/5bc2d06c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5bc2d06c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5bc2d06c

Branch: refs/heads/4.4
Commit: 5bc2d06c400331c828edcc4de2ba4a773ad42cb5
Parents: 47754a6
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:22:27 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/5bc2d06c/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