Signed-off-by: Andrew Schoen <aschoen@redhat.com>
scenarios=$(find . | grep Vagrantfile | xargs dirname)
+mkdir -p $WORKSPACE/logs
+
+pkgs=( "ansible" )
+install_python_packages "pkgs[@]"
+
for scenario in $scenarios; do
cd $scenario
+ if [ -f "./vagrant_ssh_config" ]; then
+ export ANSIBLE_SSH_ARGS='-F ./vagrant_ssh_config'
+ $VENV/ansible -i hosts -b -m fetch -a "src=/var/log/ceph/ceph-volume.log dest=$WORKSPACE/logs/ceph-volume.log flat=yes fail_on_missing=no" osds
+ $VENV/ansible -i hosts -b -m fetch -a "src=/var/log/ceph/ceph-volume-systemd.log dest=$WORKSPACE/logs/ceph-volume-systemd.log flat=yes fail_on_missing=no" osds
+ fi
vagrant destroy -f
cd -
done
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: false
+ latest-only: false