summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2018-02-09 17:37:33 -0500
committerPaul Belanger <pabelanger@redhat.com>2018-02-11 15:17:30 -0500
commit19929aa259cba8d07f6309eb0fa05b9b1e715e5e (patch)
tree2e46e1f87539de04593c53020d74a2a2628e150b
parentd8faf2ffc3217c177ed89ac24c7441b640f3c924 (diff)
Collect logs from testing
It is helpful to have logs to debug failures. Change-Id: I3d5170713a031dc8ccb4772a7778bec1e63ffa15 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: Mon, 12 Feb 2018 00:03:09 +0000 Reviewed-on: https://review.openstack.org/543043 Project: openstack/ansible-role-nodepool Branch: refs/heads/master
-rw-r--r--.zuul.yaml1
-rw-r--r--tests/collect-logs.yaml10
2 files changed, 11 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index d8f95f7..f626b4c 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -1,6 +1,7 @@
1- job: 1- job:
2 name: ansible-role-nodepool 2 name: ansible-role-nodepool
3 run: tests/test.yaml 3 run: tests/test.yaml
4 post-run: tests/collect-logs.yaml
4 required-projects: 5 required-projects:
5 - name: openstack-infra/nodepool 6 - name: openstack-infra/nodepool
6 override-branch: feature/zuulv3 7 override-branch: feature/zuulv3
diff --git a/tests/collect-logs.yaml b/tests/collect-logs.yaml
new file mode 100644
index 0000000..9014f1d
--- /dev/null
+++ b/tests/collect-logs.yaml
@@ -0,0 +1,10 @@
1- hosts: all
2 tasks:
3 - name: Collect nodepool log files
4 synchronize:
5 dest: "{{ zuul.executor.log_root }}/logs"
6 mode: pull
7 rsync_opts:
8 - "--relative"
9 src: /var/log/nodepool
10 verify_host: true