From: yuyang Date: Wed, 2 Nov 2016 18:17:19 +0000 (+0800) Subject: Bugfix for random key generation X-Git-Tag: danube.1.RC1~57 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=cefb61eb31acce1c04cf31c42a7b17fd9d00a5b5;hp=a51397eb59fd8159806375e78a2aa65f9edfa16d;p=bottlenecks.git Bugfix for random key generation JIRA: BOTTLENECK-103 Fixing the bug when key generation within rubbos controller Change-Id: Ib444b3a8fab14217bda75bee307ea18652e8b4e4 Signed-off-by: yuyang --- diff --git a/testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh b/testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh index 884315be..b08d2fb7 100755 --- a/testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh +++ b/testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh @@ -191,7 +191,7 @@ fetch_remote_resources() { direct_ssh() { echo "127.0.0.1 $(hostname)" >> /etc/hosts echo "write hosts file: 127.0.0.1 $(hostname)" - cp ${LOCAL_GIT_REPO}/bottlenecks/utils/infra_setup/bottlenecks_key/bottlenecks_key /home/ubuntu/.ssh/id_rsa + cp /home/ubuntu/bottlenecks_key /home/ubuntu/.ssh/id_rsa sudo chmod 0600 /home/ubuntu/.ssh/id_rsa echo 'StrictHostKeyChecking no' > /home/ubuntu/.ssh/config sudo chown -R ubuntu:ubuntu /home/ubuntu/.ssh diff --git a/testsuites/rubbos/run_rubbos.py b/testsuites/rubbos/run_rubbos.py index 63b9ae07..18103f7a 100755 --- a/testsuites/rubbos/run_rubbos.py +++ b/testsuites/rubbos/run_rubbos.py @@ -369,6 +369,11 @@ def rubbos_run(): print "Exec shell: " + cmd subprocess.call(cmd, shell=True) + cmd = "scp " + ssh_args + Bottlenecks_repo_dir + \ + "/utils/infra_setup/bottlenecks_key/bottlenecks_key ubuntu@" + control_public_ip + ":/home/ubuntu/" + print "Exec shell: " + cmd + subprocess.call(cmd, shell=True) + # call remote run_rubbos_internal.sh cmd = "ssh " + ssh_args + " ubuntu@" + control_public_ip + \ ' "sudo /home/ubuntu/run_rubbos_internal.sh /home/ubuntu/rubbos.conf /home/ubuntu/btnks-results" '