From 82a03894386000d89e431e95d67d43ced4a5dc50 Mon Sep 17 00:00:00 2001 From: Harshavardhana Ranganath Date: Wed, 17 Feb 2010 06:38:38 +0000 Subject: Remove dns lookup issued for each hostnames. Signed-off-by: Harshavardhana Signed-off-by: Anand V. Avati BUG: 563 (glusterfs-volgen: can't handle multiple network interfaces) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=563 --- extras/volgen/CreateVolfile.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/extras/volgen/CreateVolfile.py b/extras/volgen/CreateVolfile.py index 1517e5920..87ed74659 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) -- cgit