Bug fix on OOM deploy script 45/49145/1
authorGary Wu <gary.i.wu@huawei.com>
Fri, 25 May 2018 15:08:36 +0000 (08:08 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Fri, 25 May 2018 15:09:21 +0000 (15:09 +0000)
Change-Id: I2ddaa3cbfdebdc5c007ed077f92dfca51c904eb5
Issue-ID: INT-381
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
deployment/heat/onap-oom/scripts/deploy.sh

index 98ba2bd..aaf5924 100755 (executable)
@@ -71,7 +71,7 @@ if [ "$ROBOT_POD" == "" ]; then
     exit 1
 fi
 
-LOG_DIR=$(echo "kubectl exec -n onap $ROBOT_POD -- ls -1t /share/logs | grep {robot-tag} | head -1" | ssh -i $SSH_KEY ubuntu@$RANCHER_IP sudo su)
+LOG_DIR=$(echo "kubectl exec -n onap $ROBOT_POD -- ls -1t /share/logs | grep health | head -1" | ssh -i $SSH_KEY ubuntu@$RANCHER_IP sudo su)
 if [ "$LOG_DIR" == "" ]; then
     exit 1
 fi