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:
Jeremy Stanley 2021-12-08 17:43:58 +00:00
parent ce18a45a16
commit ca2455c57b
2 changed files with 20 additions and 0 deletions

View 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

View File

@ -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