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>
This commit is contained in:
parent
3b52c71b0a
commit
d47323d0e6
@ -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"))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user