summaryrefslogtreecommitdiffstats
path: root/deployment
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-05-24 10:51:23 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-05-24 17:53:35 +0000
commit7dc3575034bb3a23853bb5be727034dd5a7e8c49 (patch)
tree0dd762894392becb8ad3ec03d78a46ce38edc7a5 /deployment
parentb50bf43f01ca3fcc185c1b14378b2f2aac737fb3 (diff)
Bug fix on OOM deploy script
Change-Id: I522ef73697f67e78be31d7b971853025e8028f97 Issue-ID: INT-381 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment')
-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=$?