aboutsummaryrefslogtreecommitdiff
path: root/tests/pre.yml
diff options
context:
space:
mode:
authorRadosław Piliszek <radoslaw.piliszek@gmail.com>2021-09-25 20:10:15 +0000
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2021-09-25 20:10:15 +0000
commite6edec78e58afe89150adef8decd587db1b7e18e (patch)
tree6d4abd4560faea2417cff7396362f3f9f63459f3 /tests/pre.yml
parentd85af34ccdad7ba572356dc2e6dfc90cc3ce75c0 (diff)
downloadkolla-ansible-e6edec78e58afe89150adef8decd587db1b7e18e.tar.gz
kolla-ansible-e6edec78e58afe89150adef8decd587db1b7e18e.zip
[CI] Collect info about environment before deploy
And also collect lsmod listing. These both are useful to have a clearer picture of the original environment and the effect kolla ansible had on it. Change-Id: I5d87cfd45e4369df40b8195124535e59d24700c3
Diffstat (limited to 'tests/pre.yml')
-rw-r--r--tests/pre.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/pre.yml b/tests/pre.yml
index c2f1d2e1a..e2529faa2 100644
--- a/tests/pre.yml
+++ b/tests/pre.yml
@@ -56,6 +56,24 @@
path: "{{ logs_dir }}"
state: "directory"
+ - name: Ensure /tmp/logs/pre dir
+ file:
+ path: "{{ logs_dir }}/pre"
+ state: "directory"
+
+ - name: Run diagnostics script
+ environment:
+ LOG_DIR: "{{ logs_dir }}/pre"
+ KOLLA_INTERNAL_VIP_ADDRESS: "{{ kolla_internal_vip_address }}"
+ script: get_logs.sh
+ register: get_logs_result
+ become: true
+ failed_when: false
+
+ - name: Print get_logs output
+ debug:
+ msg: "{{ get_logs_result.stdout }}"
+
- name: Ensure node directories
file:
path: "{{ logs_dir }}/{{ item }}"