Skip to content
Snippets Groups Projects
Unverified Commit cae4d364 authored by Jeffrey Zhang's avatar Jeffrey Zhang
Browse files

Add ara to collect ansible playbook running statics


TrivialFix

Change-Id: Id2a13be9c04920b5326534005750286f842aa731
Signed-off-by: default avatarJeffrey Zhang <zhang.lei.fly@gmail.com>
parent ec5a90da
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ function copy_logs { ...@@ -23,6 +23,7 @@ function copy_logs {
# NOTE(SamYaple): Fix permissions for log extraction in gate # NOTE(SamYaple): Fix permissions for log extraction in gate
chmod -R 777 /tmp/logs/kolla /tmp/logs/kolla_configs /tmp/logs/system_logs chmod -R 777 /tmp/logs/kolla /tmp/logs/kolla_configs /tmp/logs/system_logs
ara generate /tmp/logs/playbook_reports/
} }
function sanity_check { function sanity_check {
......
...@@ -122,6 +122,13 @@ function setup_ansible { ...@@ -122,6 +122,13 @@ function setup_ansible {
# Record the running state of the environment as seen by the setup module # 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 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<<EOF
[defaults]
callback_plugins = /usr/lib/python2.7/site-packages/ara/callback:\$VIRTUAL_ENV/lib/python2.7/site-packages/ara/callback:/usr/local/lib/python2.7/dist-packages/ara/callback
EOF
} }
function setup_node { function setup_node {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment