Merge "Enhance log collection zuul jobs"

This commit is contained in:
Zuul 2020-09-11 22:08:01 +00:00 committed by Gerrit Code Review
commit 659d9fff1b
3 changed files with 23 additions and 10 deletions

View File

@ -15,16 +15,22 @@
- hosts: primary
vars:
logs_dir: "/tmp/logs"
roles:
- gather-system-logs
- airship-gather-apache-logs
- airship-gather-libvirt-logs
- airship-gather-runtime-logs
- airship-airshipctl-gather-configs
environment:
LIBVIRT_DEFAULT_URI: qemu:///system
tasks:
- name: save logs for ephemeral cluster
- name: set default roles
set_fact:
default_log_roles:
- gather-system-logs
- airship-gather-apache-logs
- airship-gather-libvirt-logs
- airship-gather-runtime-logs
- airship-airshipctl-gather-configs
- airship-gather-pod-logs
- name: run roles
include_role:
name: airship-gather-pod-logs
name: "{{ role_name }}"
with_items: "{{ log_roles | default(default_log_roles) }}"
loop_control:
loop_var: role_name

View File

@ -75,7 +75,7 @@
pass-to-parent: true
- job:
name: airship-airshipctl-gate-script-runner-test
name: airship-airshipctl-gate-script-runner
attempts: 1
timeout: 5400
pre-run:
@ -101,6 +101,13 @@
- ./tools/deployment/34_deploy_worker_node.sh
serve_dir: /srv/iso
serve_port: 8099
log_roles:
- gather-system-logs
- airship-gather-apache-logs
- airship-gather-libvirt-logs
- airship-gather-runtime-logs
- airship-airshipctl-gather-configs
- airship-gather-pod-logs
voting: false
- job:

View File

@ -24,7 +24,7 @@
- airship-airshipctl-build-image
- airship-airshipctl-validate-site-docs
# - airship-airshipctl-functional-existing-k8s TODO: Enable this when functional tests exist, and a cluster is up
- airship-airshipctl-gate-script-runner-test
- airship-airshipctl-gate-script-runner
gate:
jobs:
- openstack-tox-docs