Skip to content
Snippets Groups Projects
Commit c25002c3 authored by Paul Bourke's avatar Paul Bourke
Browse files

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
parent ba6ea72a
No related branches found
No related tags found
No related merge requests found
...@@ -32,8 +32,11 @@ function check_failure { ...@@ -32,8 +32,11 @@ function check_failure {
docker logs --tail all ${failed} docker logs --tail all ${failed}
done done
journalctl --no-pager -u docker.service if [[ -x "$(command -v journalctl)" ]]; then
cat /var/log/upstart/docker.log journalctl --no-pager -u docker.service
else
cat /var/log/upstart/docker.log
fi
nova service-list nova service-list
neutron agent-list neutron agent-list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment