From 6c19689c9f6c62271732746415dc437104e7af99 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/ovirt-collect-logs/tasks/hypervisor.yml b/roles/ovirt-collect-logs/tasks/hypervisor.yml index 529c0ca..751915a 100644 --- a/roles/ovirt-collect-logs/tasks/hypervisor.yml +++ b/roles/ovirt-collect-logs/tasks/hypervisor.yml @@ -8,7 +8,7 @@ with_items: - "etc" -- name: Link vdsm and libfirt logs +- name: Link vdsm and libvirt logs file: src: "{{ item.src }}" dest: "{{ ovirt_collect_logs_tmp_dir }}/{{ item.dest }}" @@ -48,3 +48,9 @@ - name: Dump lvm shell: "(vgs; pvs; lvs) &> {{ ovirt_collect_logs_tmp_dir }}/lvm.txt" ignore_errors: true + +- name: Save coredumps + copy: + src: "/var/log/core" + dest: "{{ ovirt_collect_logs_tmp_dir }}/coredump.txt" + ignore_errors: true