From: Andrew Schoen Date: Mon, 2 Jul 2018 21:48:00 +0000 (-0500) Subject: scripts: collect all logs in /var/log/ceph on ansible failures X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1065%2Fhead;p=ceph-build.git 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 --- 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