Archive ceph logs and config

We should archive the ceph logs and config file when we run the
check-tempest-dsvm-full-ceph job to help in debugging failures.

Related-Bug: #1439371

Change-Id: I8cde798196a2d04bc26537a5b807185fcc563d27
This commit is contained in:
Matt Riedemann
2015-04-06 08:41:34 -07:00
parent 10cf42246b
commit b686539c95

View File

@@ -706,6 +706,14 @@ function cleanup_host {
sudo cp $BASE/old/tempest/tempest.log $BASE/logs/old/tempest.log
fi
# ceph logs and config
if [ -d /var/log/ceph ] ; then
sudo cp -r /var/log/ceph $BASE/logs/
fi
if [ -f /etc/ceph/ceph.conf ] ; then
sudo cp /etc/ceph/ceph.conf $BASE/logs/ceph_conf.txt
fi
# Make sure jenkins can read all the logs and configs
sudo chown -R jenkins:jenkins $BASE/logs/
sudo chmod a+r $BASE/logs/ $BASE/logs/etc