Check relevant logging mechanism in the gate

Avoids errors about missing journalctl on Ubuntu and missing upstart on
redhat bases.

Closes-Bug: 1554724

Change-Id: I80bb55688398df85f9020d5cfe5dda757fc5a0ef
This commit is contained in:
Paul Bourke 2016-03-22 12:29:30 +00:00
parent ba6ea72a37
commit c25002c3d8

View File

@ -32,8 +32,11 @@ function check_failure {
docker logs --tail all ${failed}
done
journalctl --no-pager -u docker.service
cat /var/log/upstart/docker.log
if [[ -x "$(command -v journalctl)" ]]; then
journalctl --no-pager -u docker.service
else
cat /var/log/upstart/docker.log
fi
nova service-list
neutron agent-list