Merge "Collect mailman logs in deployment testing"

This commit is contained in:
Zuul 2021-12-15 17:46:38 +00:00 committed by Gerrit Code Review
commit d328a7dd8b
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