Improve logging in tempest cleanup
* add additional handler so that INFO messages are printed to stdout
besided tempest.log
* replace print commands by LOG.info calls
* when --debug argument used print DEBUG messages to stdout
* add additional debug messages to improve transparency of the cleanup
execution
* use --debug argument within tempest-cleanup ansible role to see more
details directly in the output
Change-Id: Iee72dc411fdf5cda8a8eed8dd7f349e0866648ab
diff --git a/roles/tempest-cleanup/tasks/main.yaml b/roles/tempest-cleanup/tasks/main.yaml
index 5494fff..5444afc 100644
--- a/roles/tempest-cleanup/tasks/main.yaml
+++ b/roles/tempest-cleanup/tasks/main.yaml
@@ -3,7 +3,7 @@
- name: Run tempest cleanup init-saved-state
become: yes
become_user: tempest
- command: tox -evenv-tempest -- tempest cleanup --init-saved-state
+ command: tox -evenv-tempest -- tempest cleanup --init-saved-state --debug
args:
chdir: "{{ devstack_base_dir }}/tempest"
@@ -15,7 +15,7 @@
- name: Run tempest cleanup dry-run
become: yes
become_user: tempest
- command: tox -evenv-tempest -- tempest cleanup --dry-run
+ command: tox -evenv-tempest -- tempest cleanup --dry-run --debug
args:
chdir: "{{ devstack_base_dir }}/tempest"
@@ -25,7 +25,7 @@
- name: Run tempest cleanup
become: yes
become_user: tempest
- command: tox -evenv-tempest -- tempest cleanup
+ command: tox -evenv-tempest -- tempest cleanup --debug
args:
chdir: "{{ devstack_base_dir }}/tempest"
when: not dry_run and not init_saved_state