From: Andrew Schoen Date: Fri, 9 Mar 2018 13:00:31 +0000 (-0600) Subject: ceph-ansible-scenario: archive ceph logs on failure X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=199187ff373a6f9be7d135723f8b205625f47ff6;p=ceph-build.git ceph-ansible-scenario: archive ceph logs on failure Signed-off-by: Andrew Schoen --- diff --git a/ceph-ansible-scenario/build/teardown b/ceph-ansible-scenario/build/teardown index 27b9bfa6..7f2137f4 100644 --- a/ceph-ansible-scenario/build/teardown +++ b/ceph-ansible-scenario/build/teardown @@ -8,6 +8,8 @@ scenarios=$(find . | grep Vagrantfile | xargs dirname) for scenario in $scenarios; do cd $scenario + # collect all ceph logs from all test nodes + collect_ceph_logs all vagrant destroy -f cd - done diff --git a/ceph-ansible-scenario/config/definitions/ceph-ansible-scenario.yml b/ceph-ansible-scenario/config/definitions/ceph-ansible-scenario.yml index 8b120d96..639d7d8e 100644 --- a/ceph-ansible-scenario/config/definitions/ceph-ansible-scenario.yml +++ b/ceph-ansible-scenario/config/definitions/ceph-ansible-scenario.yml @@ -57,4 +57,12 @@ script-only-if-succeeded: False script-only-if-failed: True builders: - - shell: !include-raw ../../build/teardown + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/teardown + + - archive: + artifacts: 'logs/**' + allow-empty: true + latest-only: false