Pull minikube log data

This is needed to debug k8s failures.

Change-Id: I3ff21ba4358b7c9d8630295821752f27438a962d
This commit is contained in:
David Shrewsbury 2019-10-15 14:05:32 -04:00
parent 0a010d94a1
commit 9405ea6a8e
1 changed files with 8 additions and 0 deletions

View File

@ -2,14 +2,22 @@
vars:
nodepool_log_dir: '{{ ansible_user_dir }}/work/logs/nodepool'
nodepool_etc_dir: '{{ ansible_user_dir }}/work/etc'
minikube_log: '{{ ansible_user_dir }}/zuul-output/logs/minikube.txt'
tasks:
- name: 'Copy files from {{ nodepool_log_dir }}'
synchronize:
src: '{{ nodepool_log_dir }}'
dest: '{{ zuul.executor.log_root }}/{{ inventory_hostname }}'
mode: pull
- name: 'Copy files from {{ nodepool_etc_dir }}'
synchronize:
src: '{{ nodepool_etc_dir }}'
dest: '{{ zuul.executor.log_root }}/{{ inventory_hostname }}'
mode: pull
- name: Produce minikube log
become: yes
shell: '/tmp/minikube logs > {{ minikube_log }}'
environment:
MINIKUBE_HOME: "{{ ansible_user_dir }}"