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:
parent
ba6ea72a37
commit
c25002c3d8
@ -32,8 +32,11 @@ function check_failure {
|
|||||||
docker logs --tail all ${failed}
|
docker logs --tail all ${failed}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ -x "$(command -v journalctl)" ]]; then
|
||||||
journalctl --no-pager -u docker.service
|
journalctl --no-pager -u docker.service
|
||||||
|
else
|
||||||
cat /var/log/upstart/docker.log
|
cat /var/log/upstart/docker.log
|
||||||
|
fi
|
||||||
|
|
||||||
nova service-list
|
nova service-list
|
||||||
neutron agent-list
|
neutron agent-list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user