45b2ec99cd
When Kuryr is run in pods, logs of its services are not available in the gate. This commit adds a post-run playbook that will copy information about Kubernetes resources and logs of all pods into the results. Change-Id: Idac654854f0b968fe0c3024fd4f0436279a945a5 Partial-Implements: enhance-upstream-gates
15 lines
436 B
YAML
15 lines
436 B
YAML
- hosts: all
|
|
tasks:
|
|
- set_fact:
|
|
devstack_base_dir: /opt/stack
|
|
when: devstack_base_dir is not defined
|
|
|
|
- name: Copy Kubernetes resources and pods logs
|
|
shell:
|
|
cmd: "{{ devstack_base_dir }}/kuryr-kubernetes/tools/gate/copy_k8s_logs.sh"
|
|
executable: /bin/bash
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
environment:
|
|
DEVSTACK_BASE_DIR: "{{ devstack_base_dir }}"
|
|
become: true
|