kuryr-kubernetes/playbooks/copy-k8s-logs.yaml
Michał Dulko 45b2ec99cd Add Kuryr pods logs to gate results
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
2018-04-05 14:14:58 +02:00

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