From cae4d364ad8808b8e650135638f3d443e8c35761 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Sun, 11 Sep 2016 02:41:30 +0800 Subject: [PATCH] Add ara to collect ansible playbook running statics TrivialFix Change-Id: Id2a13be9c04920b5326534005750286f842aa731 Signed-off-by: Jeffrey Zhang --- tools/deploy_aio.sh | 1 + tools/setup_gate.sh | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/tools/deploy_aio.sh b/tools/deploy_aio.sh index 60052e37f3..7b617e2c0e 100755 --- a/tools/deploy_aio.sh +++ b/tools/deploy_aio.sh @@ -23,6 +23,7 @@ function copy_logs { # NOTE(SamYaple): Fix permissions for log extraction in gate chmod -R 777 /tmp/logs/kolla /tmp/logs/kolla_configs /tmp/logs/system_logs + ara generate /tmp/logs/playbook_reports/ } function sanity_check { diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index 8afda31111..47fcadce25 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -122,6 +122,13 @@ function setup_ansible { # Record the running state of the environment as seen by the setup module ansible all -i ${RAW_INVENTORY} -m setup > /tmp/logs/ansible/initial-setup + + sudo pip install ara + sudo mkdir /etc/ansible + sudo tee /etc/ansible/ansible.cfg<