From 0cf03375c6e01e89bbd61f0d15eb7db999cee948 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 5 Jul 2016 17:54:20 -0400 Subject: [PATCH] copy_logs: add Stackviz data Stackviz will be useful to monitor performance and debug our Tempest jobs. See https://github.com/openstack/stackviz Change-Id: Ia909a8da9975b465f3d94de0cdaea56529bb325e --- copy_logs.sh | 7 +++++++ run_tests.sh | 3 +++ 2 files changed, 10 insertions(+) diff --git a/copy_logs.sh b/copy_logs.sh index 14eda429b..6ccb5e3ed 100755 --- a/copy_logs.sh +++ b/copy_logs.sh @@ -206,6 +206,13 @@ if [ -f $LOG_DIR/rabbitmq ]; then done fi +# stackviz +if [ -d /opt/stackviz ]; then + cp -r /opt/stackviz/build /tmp/stackviz + sudo pip install -U /opt/stackviz + stackviz-export --env -f /tmp/openstack/tempest/testrepository.subunit /tmp/stackviz/data + mv /tmp/stackviz $LOG_DIR +fi # Compress all text logs sudo find $LOG_DIR -iname '*.txt' -type f -execdir gzip -9 {} \+ diff --git a/run_tests.sh b/run_tests.sh index 2e487c51f..d8962ba24 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -135,6 +135,9 @@ fi # Tempest plugin tests require tempest-lib to be installed $SUDO pip install tempest-lib +# We need latest testrepository to run stackviz correctly +$SUDO pip install -U testrepository + set +e # Select what to test: # Smoke suite