From: Anton Chevychalov Date: Thu, 29 Sep 2016 14:42:02 +0000 (+0300) Subject: [Jenkins] Fix error in do_update function X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=87266691d1ba06532ae3d9690495ead8614cb0f9;p=tools%2Fsustaining.git [Jenkins] Fix error in do_update function Fix error with sshpass wich block starting of update process on production environment. Change-Id: I7b383d55de344f4c2507994c77ee284514bbcb6d --- diff --git a/jenkins/build_cluster/build_cluster.py b/jenkins/build_cluster/build_cluster.py index 089e651..3a3ba39 100755 --- a/jenkins/build_cluster/build_cluster.py +++ b/jenkins/build_cluster/build_cluster.py @@ -482,7 +482,13 @@ def do_update(conn_line,psw): if copy_update_helper(conn_line,psw): return sshpass_admin_node( psw=psw, - ssh_cmd=["ssh",conn_line,"/tmp/"+UPDATE_HELPER,],) + ssh_cmd=["ssh", + "-o", + "UserKnownHostsFile=/dev/null", + "-o", + "StrictHostKeyChecking=no", + conn_line, + "/tmp/"+UPDATE_HELPER,],) else: print ("ERROR: Unable to copy update script to admin node") return False