From b70d818bf9cf2d511fea91d83b8b39ba6a5e8349 Mon Sep 17 00:00:00 2001 From: Murali Reddy Date: Mon, 14 Nov 2016 16:56:39 +0530 Subject: [PATCH] CLOUDSTACK-9583: VR: In CsDhcp.py preseed both hostaname and localhost to resolve to 127.0.0.1 ensuring for both vpc and non vpc vr, both localhost and hostname is resolved to 127.0.0.1 --- systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py index d97c04be723..42ac880606e 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsDhcp.py @@ -106,12 +106,10 @@ class CsDhcp(CsDataBag): return def preseed(self): - self.add_host("127.0.0.1", "localhost") + self.add_host("127.0.0.1", "localhost %s" % CsHelper.get_hostname()) self.add_host("::1", "localhost ip6-localhost ip6-loopback") self.add_host("ff02::1", "ip6-allnodes") self.add_host("ff02::2", "ip6-allrouters") - if self.config.is_vpc(): - self.add_host("127.0.0.1", CsHelper.get_hostname()) if self.config.is_router(): self.add_host(self.config.address().get_guest_ip(), "%s data-server" % CsHelper.get_hostname())