From 344ed415fa29abaf5e859b7ce59ec37b80c65096 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Mon, 6 Mar 2017 12:11:31 +0100 Subject: [PATCH] ovirt-collect-logs: Collect core dumps from hypervisors --- roles/ovirt-collect-logs/tasks/hypervisor.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/ovirt-collect-logs/tasks/hypervisor.yml b/roles/ovirt-collect-logs/tasks/hypervisor.yml index 529c0ca..8a47c46 100644 --- a/roles/ovirt-collect-logs/tasks/hypervisor.yml +++ b/roles/ovirt-collect-logs/tasks/hypervisor.yml @@ -8,7 +8,11 @@ with_items: - "etc" -- name: Link vdsm and libfirt logs +- name: Register coredump path + shell: "cat /proc/sys/kernel/core_pattern | xargs dirname | head -n 1" + register: coredumpdir + +- name: Link vdsm and libvirt logs file: src: "{{ item.src }}" dest: "{{ ovirt_collect_logs_tmp_dir }}/{{ item.dest }}" @@ -35,6 +39,9 @@ - src: "/var/log/ovirt-hosted-engine-ha" dest: "hosted-engine-logs" + - + src: "{{ coredumpdir }}" + dest: "coredumps" ignore_errors: true - name: Dump mount