integration: Add color + readable logging

When run by hand, it's much easier to spot things going wrong when
they're colored in red.  Add an ansible.cfg to make that happen.  This
also sets a default output log file (``$ARTIFACTS/main.log``) - that
doesn't contain color-codes.

When executing against multple hosts, the output can sometimes become
difficult to read, esp. with lots of async. tasks.  The callback_plugin
script reorganizes how the console and log is organized, making it
clearer which host did what and when.

Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
Chris Evich 2017-09-20 17:52:27 -04:00
parent 7e3d0c652d
commit 0e55fb2ea3
3 changed files with 518 additions and 1 deletions

View file

@ -53,6 +53,8 @@ echo "Bootstrapping trusted virtual environment, this may take a few minutes, de
echo "(logs: \"$WORKSPACE/crio_venv_setup_log.txt\")"
echo
mkdir -p "$WORKSPACE/artifacts"
(
set -x
cd "$WORKSPACE"
@ -89,7 +91,7 @@ echo
rm -rf ./.venvbootstrap
# Exit trusted virtualenv
) &> $WORKSPACE/crio_venv_setup_log.txt;
) &> $WORKSPACE/artifacts/crio_venv_setup_log.txt;
echo
echo "Executing \"$WORKSPACE/.cri-o_venv/bin/ansible-playbook $@\""