summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2018-08-14 21:53:16 -0400
committerPaul Belanger <pabelanger@redhat.com>2018-08-14 21:58:34 -0400
commit2d9363cba7731327399e53bad4d8fbed934d4ab8 (patch)
tree12d26b4fb3f5932c1ad6cc7c26b717c4c7c73de3
parent81b000901c1aad89c73d5e7b33193c9f33fc0bff (diff)
Also collect journald logs
Change-Id: I7a952f835d7f43e1e96e8024d17fa6756fe0cc48 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Notes
Notes (review): Code-Review+2: Paul Belanger <pabelanger@redhat.com> Workflow+1: Paul Belanger <pabelanger@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 15 Aug 2018 02:43:24 +0000 Reviewed-on: https://review.openstack.org/591884 Project: openstack/ansible-role-nodepool Branch: refs/heads/master
-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: