From 488b8a2f4f559fd2d7f4f5365e02ee3020ef4e37 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Mon, 2 Jul 2018 16:48:00 -0500 Subject: [PATCH] scripts: collect all logs in /var/log/ceph on ansible failures On the jobs that use ceph-ansible to test ceph logs are collected from the vms on failure. However, if the cluster name was not ceph the find command would fail to collect any ceph-volume logs. Signed-off-by: Andrew Schoen --- scripts/build_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index e7f9617e..d069e986 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -751,7 +751,7 @@ write_collect_logs_playbook() { when: ansible_distribution == 'CentOS' - name: find ceph logs - command: find /var/log/ceph -name "{{ cluster|default('ceph') }}*.log" + command: find /var/log/ceph -name "*.log" register: ceph_logs failed_when: false -- 2.47.3