summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelen Chen <helen.chen@huawei.com>2018-05-24 18:35:31 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-24 18:35:31 +0000
commit5929ca1b5fe0f5ece03c36f793f483db1a6aa90b (patch)
treee1e4b3e4a3f557faee0a3389ee2296c301cac36f
parent708a2f7ad7ee5732b85cf966df338b64cae85d10 (diff)
parentd3337f0bbd8394e2a28f812060549c2645e42825 (diff)
Merge "Bug fix on OOM deploy script"
-rwxr-xr-xdeployment/heat/onap-oom/scripts/deploy.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/deployment/heat/onap-oom/scripts/deploy.sh b/deployment/heat/onap-oom/scripts/deploy.sh
index 134ba6bdc..3dbc0894d 100755
--- a/deployment/heat/onap-oom/scripts/deploy.sh
+++ b/deployment/heat/onap-oom/scripts/deploy.sh
@@ -52,9 +52,10 @@ if ! timeout 1 ping -c 1 "$RANCHER_IP"; then
exit 2
fi
+ssh-keygen -R $RANCHER_IP
+
ssh -o StrictHostKeychecking=no -i ~/.ssh/onap_key ubuntu@$RANCHER_IP "sed -u '/Cloud-init.*finished/q' <(tail -n+0 -f /var/log/cloud-init-output.log)"
-ssh-keygen -R $RANCHER_IP
for n in $(seq 1 6); do
timeout 15m ssh -i ~/.ssh/onap_key ubuntu@$RANCHER_IP 'sudo su -l root -c "/root/oom/kubernetes/robot/ete-k8s.sh onap health"'
RESULT=$?