You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by jz...@apache.org on 2012/11/29 00:05:39 UTC

[1/3] git commit: Summary: VPC router needs /etc/hosts entry

Updated Branches:
  refs/heads/4.0 032ac73e1 -> cf8bc4ba8


Summary: VPC router needs /etc/hosts entry

Detail: This adjusts cloud-early-config to properly set the host entry for a
   vpc router. We were previously using the hostname command prior to the actual
   hostname being set, now we use the NAME variable passed to us.

BUG-ID: CLOUDSTACK-502
Bugfix-for: 4.0.1
Signed-off-by: Marcus Sorensen <ma...@betterservers.com> 1353083661 -0700

Conflicts:
	patches/systemvm/debian/config/etc/init.d/cloud-early-config


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

Branch: refs/heads/4.0
Commit: cf8bc4ba82b46febeb274334a0233fc0e1c6edab
Parents: c8bea00
Author: Marcus Sorensen <ma...@betterservers.com>
Authored: Fri Nov 16 09:34:21 2012 -0700
Committer: Joe Brockmeier <jz...@zonker.net>
Committed: Wed Nov 28 15:36:38 2012 -0600

----------------------------------------------------------------------
 .../debian/config/etc/init.d/cloud-early-config    |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/cf8bc4ba/patches/systemvm/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
index bfcc6ed..11380b4 100755
--- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config
+++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
@@ -597,6 +597,10 @@ setup_vpcrouter() {
     setup_vmware_extra_nics
   fi
 
+  if [ -f /etc/hosts ]; then
+    grep -q $NAME /etc/hosts || echo "127.0.0.1 $NAME" >> /etc/hosts;
+  fi
+
     cat > /etc/network/interfaces << EOF
 auto lo $1
 iface lo inet loopback