Skip to content

Commit 7f14cb2

Browse files
evallespdanpawlik
authored andcommitted
Add for each worker journalctl kubelet logs
This going to help to identify reason of some errors related to unstable cluster.
1 parent c4d37b0 commit 7f14cb2

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

ci/playbooks/collect-logs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,16 @@
157157
url: "report.html"
158158
metadata:
159159
type: html_report
160+
161+
- name: "Run ci/playbooks/collect-logs.yml on CRC host"
162+
hosts: crc
163+
gather_facts: false
164+
tasks:
165+
- name: Get kubelet journalctl logs
166+
ignore_errors: true # noqa: ignore-errors
167+
become: true
168+
ansible.builtin.shell: |
169+
journalctl -u kubelet > kubelet.log
170+
no_log: true
171+
args:
172+
chdir: "{{ ansible_user_dir }}/zuul-output/logs/"

ci/playbooks/e2e-collect-logs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,16 @@
2626
cmd: >-
2727
ansible-playbook playbooks/99-logs.yml
2828
-e @scenarios/centos-9/base.yml
29+
30+
- name: "Run ci/playbooks/collect-logs.yml on CRC host"
31+
hosts: crc
32+
gather_facts: false
33+
tasks:
34+
- name: Get kubelet journalctl logs
35+
ignore_errors: true # noqa: ignore-errors
36+
become: true
37+
ansible.builtin.shell: |
38+
journalctl -u kubelet > kubelet.log
39+
no_log: true
40+
args:
41+
chdir: "{{ ansible_user_dir }}/zuul-output/logs/"

0 commit comments

Comments
 (0)