]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts: collect all logs in /var/log/ceph on ansible failures 1065/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 2 Jul 2018 21:48:00 +0000 (16:48 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 2 Jul 2018 21:48:00 +0000 (16:48 -0500)
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 <aschoen@redhat.com>
scripts/build_utils.sh

index e7f9617ed8cb6a008468a9d905371653ac82e5a0..d069e986abc8a9608faf6c58f8f6d5afd9b1c63c 100644 (file)
@@ -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