Collect mailman logs in deployment testing
Get the logs from the test mailman deployments for inspection in build results. Change-Id: I68ea634d6048691bf14a573e66983038bc485f3c
This commit is contained in:
parent
ce18a45a16
commit
ca2455c57b
11
playbooks/zuul/run-lists-post.yaml
Normal file
11
playbooks/zuul/run-lists-post.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
- hosts: lists.openstack.org
|
||||
tasks:
|
||||
- name: Collect per-site mailman log directories
|
||||
shell:
|
||||
cmd: |
|
||||
mkdir -p /var/log/mailman
|
||||
for logs in /srv/mailman/*/logs ; do
|
||||
cp -a $logs /var/log/mailman/$(basename $(dirname $logs))
|
||||
done
|
||||
become: yes
|
||||
ignore_errors: true
|
@ -233,6 +233,7 @@
|
||||
parent: system-config-run
|
||||
description: |
|
||||
Run the playbook for a list server.
|
||||
post-run: playbooks/zuul/run-lists-post.yaml
|
||||
nodeset:
|
||||
nodes:
|
||||
- name: bridge.openstack.org
|
||||
@ -255,11 +256,19 @@
|
||||
- playbooks/zuul/templates/host_vars/lists.katacontainers.io.yaml.j2
|
||||
- testinfra/test_lists_k_i.py
|
||||
- testinfra/test_lists_o_o.py
|
||||
- playbooks/zuul/run-lists-post.yaml
|
||||
vars:
|
||||
run_playbooks:
|
||||
- playbooks/service-lists.yaml
|
||||
# Run this twice to check idempotency
|
||||
- playbooks/service-lists.yaml
|
||||
host-vars:
|
||||
lists.katacontainers.io:
|
||||
host_copy_output:
|
||||
'/var/log/mailman': logs
|
||||
lists.openstack.org:
|
||||
host_copy_output:
|
||||
'/var/log/mailman': logs
|
||||
|
||||
- job:
|
||||
name: system-config-run-nodepool
|
||||
|
Loading…
Reference in New Issue
Block a user