summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarshavardhana Ranganath <harsha@gluster.com>2010-02-17 06:37:00 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-02-18 08:40:23 -0800
commit868a8c4417920d0e59683577f63edc1d0f8cbe1b (patch)
tree0d3c2100b8cf044d3992f377c03d2dc79315eef9
parentc55134fc0c5ebe952de12757d5c53d463a9c21b5 (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 1517e5920dc..87ed7465952 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)