]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: fetch ceph config file on failure 1147/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 9 Oct 2018 20:17:37 +0000 (16:17 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 9 Oct 2018 20:52:09 +0000 (16:52 -0400)
Let's try to get ceph configuration file on failure, it can be useful at
some point.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
scripts/build_utils.sh

index b0bef7f26fb4b458039e897f3f614dce332eb450..508ff146bbe52d7c66b90da500bf7eec1d09fad9 100644 (file)
@@ -783,6 +783,13 @@ write_collect_logs_playbook() {
         flat: yes
       failed_when: false
       with_items: "{{ ceph_logs.stdout_lines }}"
+
+    - name: collect ceph configuration file
+      fetch:
+        src: "{{ ceph_conf_key_directory }}/{{ cluster }}.conf"
+        dest: "{{ archive_path }}/{{ inventory_hostname }}/"
+        fail_on_missing: no
+        flat: yes
 EOF
 }