Browse Source

Collect zookeeper logs

Change-Id: I3d8805a5ae6ef19fb3e56fe33a42e3ca8006086c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/09/795909/1
Paul Belanger 1 year ago
parent
commit
f3e4ecf406
  1. 23
      tests/collect-logs.yaml

23
tests/collect-logs.yaml

@ -253,3 +253,26 @@
- /var/log/nginx/error.log
- /var/log/zuul/web-debug.log
- /var/log/zuul/web.log
- hosts: zk01
tasks:
- name: Collect journald logs
shell: "sudo journalctl -u {{ item }}.service | tee {{ zuul_output_dir }}/logs/logs/{{ inventory_hostname }}/var/log/journal/{{ item }}.service.log"
args:
creates: "{{ zuul_output_dir }}/logs/logs/{{ inventory_hostname }}/var/log/journal/{{ item }}.service.log"
with_items:
- zookeeper
- name: Collect zookeeper log files
become: true
synchronize:
dest: "{{ zuul_output_dir }}/logs/logs/{{ inventory_hostname }}"
rsync_opts:
- "--relative"
- "--chown={{ ansible_user_id }}:{{ ansible_user_id }}"
src: "{{ item }}"
verify_host: true
delegate_to: "{{ inventory_hostname }}"
with_items:
- /etc/zookeeper
- /var/log/zookeeper

Loading…
Cancel
Save