Always collect microk8s logs
Collect logs from microk8s daemons to help investigate on failure. Change-Id: I68b62a6f07fd8761ebe980799f7a00180961fb2f
This commit is contained in:
parent
bea5825861
commit
b26f974583
@ -4,6 +4,13 @@
|
||||
shell: |
|
||||
cp /var/snap/microk8s/current/inspection-report-*.tar.gz "{{ zuul.project.src_dir }}/log/"
|
||||
failed_when: false
|
||||
- name: collect microk8s logs
|
||||
args:
|
||||
executable: /bin/bash
|
||||
shell: |
|
||||
snap logs -n all microk8s > "{{ zuul.project.src_dir }}/log/microk8s-logs.txt"
|
||||
become: true
|
||||
failed_when: false
|
||||
- name: debug describe pods
|
||||
args:
|
||||
executable: /bin/bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user