From d47323d0e6f543a8ece04c32b8d77d2785390c3c Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Mon, 7 Sep 2015 14:18:45 +0530 Subject: 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 BUG: 1260918 Reviewed-on: http://review.gluster.org/12124 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- tools/glusterfind/src/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/glusterfind') 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"))] -- cgit