copy_puppet_logs: copy dstat logs if exist

In Puppet OpenStack Integration CI jobs, we are using dstat
(like devstack does) to monitor the system and help us to debug
Puppet & Tempest runs in case of failures.

This patch aims to copy the log file only if it exists.

Change-Id: I79c5b9521265e97595d3323149ba6e7d1e8e972b
This commit is contained in:
Emilien Macchi 2015-08-29 12:26:34 -04:00
parent 671806483a
commit edc1903e65

@ -91,6 +91,11 @@ if [ -f /var/log/mysql.log ] ; then
sudo cp /var/log/mysql.log $LOG_DIR/
fi
# dstat logs
if [ -f /var/log/dstat.log ] ; then
sudo cp /var/log/dstat.log $LOG_DIR/
fi
# libvirt
if [ -d /var/log/libvirt ] ; then
sudo cp -r /var/log/libvirt $LOG_DIR/