summaryrefslogtreecommitdiffstats
path: root/extras/volgen
diff options
context:
space:
mode:
authorHarshavardhana Ranganath <harsha@gluster.com>2010-02-17 06:36:28 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-02-18 08:40:03 -0800
commit961cb224ddc86b5e35fe84c0f59d93720b7f86c7 (patch)
tree4f52ed2ecade9405e1cc7fc4c86ff999fcd6ca95 /extras/volgen
parent23fe45312765c1af8788aa103c51703a2fc28220 (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
Diffstat (limited to 'extras/volgen')
-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)