summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2015-09-07 14:18:45 +0530
committerVijay Bellur <vbellur@redhat.com>2015-11-23 09:29:18 -0800
commitd47323d0e6f543a8ece04c32b8d77d2785390c3c (patch)
tree5c7899b30fcabe415593a7f13a109c653697adda
parent3b52c71b0ab57a9daaf31bf3dc8563da37927a66 (diff)
tools/glusterfind: StrictHostKeyChecking=no for ssh/scp verification
Also do not use scp command in case copy file from local node. Change-Id: Ie78c77eb0252945867173937391b82001f29c3b0 Signed-off-by: Aravinda VK <avishwan@redhat.com> BUG: 1260918 Reviewed-on: http://review.gluster.org/12124 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--tools/glusterfind/src/main.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/glusterfind/src/main.py b/tools/glusterfind/src/main.py
index 504733a6808..9bc4872ad9b 100644
--- a/tools/glusterfind/src/main.py
+++ b/tools/glusterfind/src/main.py
@@ -67,13 +67,17 @@ def node_cmd(host, host_uuid, task, cmd, args, opts):
if not localdir:
# prefix with ssh command if not local node
cmd = ["ssh",
+ "-oNumberOfPasswordPrompts=0",
+ "-oStrictHostKeyChecking=no",
"-i", pem_key_path,
"root@%s" % host] + cmd
execute(cmd, exit_msg="%s - %s failed" % (host, task), logger=logger)
- if opts.get("copy_outfile", False):
+ if opts.get("copy_outfile", False) and not localdir:
cmd_copy = ["scp",
+ "-oNumberOfPasswordPrompts=0",
+ "-oStrictHostKeyChecking=no",
"-i", pem_key_path,
"root@%s:/%s" % (host, opts.get("node_outfile")),
os.path.dirname(opts.get("node_outfile"))]