]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-volume-scenario: use the collect_ceph_logs util function
authorAndrew Schoen <aschoen@redhat.com>
Thu, 8 Mar 2018 20:38:05 +0000 (14:38 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 8 Mar 2018 21:35:01 +0000 (15:35 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-volume-scenario/build/teardown

index 2adebdea581b65d4b105c37e3485adaf8928e59d..1e9180a6256d29dbdc259b65d02ee63e32aba8d5 100644 (file)
@@ -7,23 +7,10 @@ cd $WORKSPACE/src/ceph-volume/ceph_volume/tests/functional
 
 scenarios=$(find . | grep Vagrantfile | xargs dirname)
 
-mkdir -p $WORKSPACE/logs
-
-pkgs=( "ansible" )
-install_python_packages "pkgs[@]"
-
-# in scripts/build_utils.yml
-# writes out the playbook that is used to
-# collect logs from testing vms
-write_collect_logs_playbook
-
 for scenario in $scenarios; do
     cd $scenario
-    if [ -f "./vagrant_ssh_config" ]; then
-        export ANSIBLE_SSH_ARGS='-F ./vagrant_ssh_config'
-        export ANSIBLE_STDOUT_CALLBACK='debug'
-        $VENV/ansible-playbook -vv -i hosts --limit osds --extra-vars "archive_path=$WORKSPACE/logs" $WORKSPACE/collect-logs.yml
-    fi
+    # collect all ceph logs from all test nodes
+    collect_ceph_logs all
     vagrant destroy -f
     cd -
 done