calculate and record the size of the log files for tripleo-ci

For good house keeping it will be a good idea
to be able to see the size of the logs we are sending up to openstack
infra

Change-Id: I5c3339cc17b485b8f42735b4eca95a5e02441ea9
This commit is contained in:
Wes Hayutin 2017-07-07 14:39:44 -04:00
parent 85574b5414
commit c1bc124048
2 changed files with 6 additions and 1 deletions

View File

@ -307,6 +307,11 @@ function postci(){
# too much time debugging. It's currently only happening on the mitaka
# branch anyway, so once that branch goes EOL we can probably remove this.
sudo iptables -I INPUT -p tcp -j ACCEPT
# record the size of the logs directory
# -L, --dereference dereference all symbolic links
du -L -ch $WORKSPACE/logs/* | sort -rh | head -n 200 &> $WORKSPACE/logs/log-size.txt || true
return 0
}

View File

@ -96,7 +96,7 @@ popd
# record the size of the logs directory
# -L, --dereference dereference all symbolic links
du -L -sch $LOGS_DIR &> $LOGS_DIR/log-size.txt || true
du -L -ch $LOGS_DIR/* | sort -rh | head -n 200 &> $LOGS_DIR/log-size.txt || true
echo 'Quickstart completed.'
exit $exit_value