Skip to content

Commit 8910e34

Browse files
author
Matthew
committed
feat(tests): add docker to failure logs
1 parent 10168c9 commit 8910e34

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

tests/bin/test-setup.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ function dump_logs {
115115
#echo "$CURRENT_APP"
116116
get_journal_logs $CURRENT_APP
117117
done
118-
# etcd keyspace
119-
get_logs deis-controller "etcdctl ls / --recursive" etcdctl-dump
120118
# component logs
121119
get_logs deis-builder
122120
get_logs deis-controller
@@ -141,14 +139,26 @@ function dump_logs {
141139
get_logs deis-router@3 deis-store-volume deis-store-volume-3
142140
get_logs deis-store-gateway
143141

144-
# get debug-etcd logs
142+
# docker logs
143+
fleetctl -strict-host-key-checking=false ssh deis-router@1 journalctl --no-pager -u docker \
144+
> $FAILED_LOGS_DIR/docker-1.log
145+
fleetctl -strict-host-key-checking=false ssh deis-router@2 journalctl --no-pager -u docker \
146+
> $FAILED_LOGS_DIR/docker-2.log
147+
fleetctl -strict-host-key-checking=false ssh deis-router@3 journalctl --no-pager -u docker \
148+
> $FAILED_LOGS_DIR/docker-3.log
149+
150+
# etcd logs
145151
fleetctl -strict-host-key-checking=false ssh deis-router@1 journalctl --no-pager -u etcd \
146152
> $FAILED_LOGS_DIR/debug-etcd-1.log
147153
fleetctl -strict-host-key-checking=false ssh deis-router@2 journalctl --no-pager -u etcd \
148154
> $FAILED_LOGS_DIR/debug-etcd-2.log
149155
fleetctl -strict-host-key-checking=false ssh deis-router@3 journalctl --no-pager -u etcd \
150156
> $FAILED_LOGS_DIR/debug-etcd-3.log
151157

158+
# etcdctl dump
159+
fleetctl -strict-host-key-checking=false ssh deis-router@1 etcdctl ls / --recursive \
160+
> $FAILED_LOGS_DIR/etcdctl-dump.log
161+
152162
# tarball logs
153163
BUCKET=jenkins-failure-logs
154164
FILENAME=deis-test-failure-$TIMESTAMP.tar.gz

0 commit comments

Comments
 (0)