Always collect microk8s logs

Collect logs from microk8s daemons to help investigate on failure.

Change-Id: I68b62a6f07fd8761ebe980799f7a00180961fb2f
This commit is contained in:
Guillaume Boutry 2024-04-16 14:45:38 +02:00
parent bea5825861
commit b26f974583
No known key found for this signature in database
GPG Key ID: E95E3326872E55DE

View File

@ -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