Limit runtime of logs collection

When logs collection runs in post playbook we need to limit it in
time to prevent it being stuck and prolong job for hours.

Change-Id: I6b9418a2020df74b07fbb6c6b00ada0ce1706878
This commit is contained in:
Sagi Shnaidman 2018-01-09 07:24:55 +02:00
parent ef0dd1b1b1
commit 726c2ecbfe
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ source $LOCAL_WORKING_DIR/bin/activate
set -u
source $OOOQ_DIR/ansible_ssh_env.sh
$QUICKSTART_COLLECTLOGS_CMD > $LOGS_DIR/quickstart_collect_logs.log || \
/usr/bin/timeout --preserve-status 40m $QUICKSTART_COLLECTLOGS_CMD > $LOGS_DIR/quickstart_collect_logs.log || \
echo "WARNING: quickstart collect-logs failed, check quickstart_collectlogs.log for details"
cp $LOGS_DIR/undercloud/var/log/postci.txt.gz $LOGS_DIR/ || true