summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarshavardhana Ranganath <harsha@gluster.com>2010-02-17 06:38:38 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-02-18 08:40:12 -0800
commit82a03894386000d89e431e95d67d43ced4a5dc50 (patch)
treea686acd5d0e5130da98ee2b2794f3c328b00ebe8
parent289cf378909279c0e523b25754420bd2c2c31323 (diff)
Remove dns lookup issued for each hostnames.
Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 563 (glusterfs-volgen: can't handle multiple network interfaces) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=563
-rw-r--r--extras/volgen/CreateVolfile.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/extras/volgen/CreateVolfile.py b/extras/volgen/CreateVolfile.py
index 1517e59..87ed746 100644
--- a/extras/volgen/CreateVolfile.py
+++ b/extras/volgen/CreateVolfile.py
@@ -62,19 +62,8 @@ class CreateVolfile:
mount_fd.write (" type protocol/client\n")
mount_fd.write (" option transport-type %s\n" %
self.transport)
- command = "dig %s | grep '^%s'" % (host, host)
- ps = subprocess.Popen(command,
- shell=True,
- stdout=subprocess.PIPE,
- stdin=subprocess.PIPE,
- stderr=subprocess.PIPE,
- close_fds=True)
- ipaddress = host
- if ps.wait() == 0:
- output = ps.communicate()
- ipaddress = output[0].split()[-1]
-
- mount_fd.write (" option remote-host %s\n" % ipaddress)
+
+ mount_fd.write (" option remote-host %s\n" % host)
if self.transport == 'ib-verbs':
mount_fd.write (" option transport.ib-verbs.port %d\n" %
self.ib_devport)