summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-08-15 02:43:24 +0000
committerGerrit Code Review <review@openstack.org>2018-08-15 02:43:24 +0000
commitb5fd6f6672cb402bd237e9d95302e966bd341d06 (patch)
tree0455dd7cb2e0168f2c80e343650ac2a22ff6fc5e
parent88c57bff4cd9be18a8e1e98b568c411b8ffcab24 (diff)
parent2d9363cba7731327399e53bad4d8fbed934d4ab8 (diff)
Merge "Also collect journald logs"
-rw-r--r--tests/collect-logs.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/collect-logs.yaml b/tests/collect-logs.yaml
index 3df2f31..263a6c3 100644
--- a/tests/collect-logs.yaml
+++ b/tests/collect-logs.yaml
@@ -1,5 +1,18 @@
1- hosts: all 1- hosts: all
2 tasks: 2 tasks:
3 - name: Ensure journald logs directory exists
4 file:
5 path: "{{ zuul_output_dir }}/logs/logs/var/log/journal"
6 state: directory
7
8 - name: Collect journald logs
9 shell: "sudo journalctl -u {{ item }}.service | tee {{ zuul_output_dir }}/logs/logs/var/log/journal/{{ item }}.service.log"
10 args:
11 creates: "{{ zuul_output_dir }}/logs/logs/var/log/journal/{{ item }}.service.log"
12 with_items:
13 - nodepool-builder
14 - nodepool-launcher
15
3 - name: Prepare nodepool log files 16 - name: Prepare nodepool log files
4 become: yes 17 become: yes
5 synchronize: 18 synchronize: