From 1b546f6b7750fe9fd91f840f86a9fe5e370266ad Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 6 Mar 2018 23:42:24 +0000 Subject: [PATCH] Capture probe test logs Change-Id: Ib2f3aa1d70e6d28e00570fe21352031dc41325d0 --- .zuul.yaml | 1 + playbooks/probetests/post.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 playbooks/probetests/post.yaml diff --git a/.zuul.yaml b/.zuul.yaml index eacc728d58..121e2b5f37 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -117,6 +117,7 @@ - playbooks/saio_single_node_setup/setup_saio.yaml - playbooks/saio_single_node_setup/make_rings.yaml run: playbooks/probetests/run.yaml + post-run: playbooks/probetests/post.yaml - project: check: diff --git a/playbooks/probetests/post.yaml b/playbooks/probetests/post.yaml new file mode 100644 index 0000000000..e95a59ead7 --- /dev/null +++ b/playbooks/probetests/post.yaml @@ -0,0 +1,16 @@ +- hosts: all + become: true + tasks: + - name: Ensure swift logs are readable before syncing + file: + path: '/var/log/swift' + mode: u=rwX,g=rX,o=rX + state: directory + recurse: yes + - name: Copy swift logs from worker nodes to executor node + synchronize: + src: '/var/log/swift' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true