Skip to content

Commit 4a1c1f9

Browse files
committed
feat(tests): dump all component and app unit logs on failure
1 parent c23464a commit 4a1c1f9

1 file changed

Lines changed: 29 additions & 3 deletions

File tree

tests/bin/test-setup.sh

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,40 @@ function dump_logs {
9999
export FLEETCTL_TUNNEL=$DEISCTL_TUNNEL
100100
set -x
101101
fleetctl -strict-host-key-checking=false list-units
102+
# application unit logs
103+
fleetctl -strict-host-key-checking=false ssh appssample_v2.web.1 docker logs appssample_v2.web.1
104+
fleetctl -strict-host-key-checking=false ssh appssample_v2.run.1 docker logs appssample_v2.run.1
105+
fleetctl -strict-host-key-checking=false ssh buildsample_v2.web.1 docker logs buildsample_v2.web.1
106+
fleetctl -strict-host-key-checking=false ssh buildsample_v3.cmd.1 docker logs buildsample_v3.cmd.1
107+
fleetctl -strict-host-key-checking=false ssh deispullsample_v2.cmd.1 docker logs deispullsample_v2.cmd.1
108+
fleetctl -strict-host-key-checking=false ssh deispullsample_v2.worker.1 docker logs deispullsample_v2.worker.1
109+
fleetctl -strict-host-key-checking=false ssh pssample_v2.worker.1 docker logs pssample_v2.worker.1
110+
fleetctl -strict-host-key-checking=false ssh pssample_v2.worker.2 docker logs pssample_v2.worker.2
111+
# etcd keyspace
102112
fleetctl -strict-host-key-checking=false ssh deis-controller etcdctl ls / --recursive
103-
fleetctl -strict-host-key-checking=false ssh deis-controller docker logs deis-controller
104-
fleetctl -strict-host-key-checking=false ssh deis-registry docker logs deis-registry
113+
# component logs
105114
fleetctl -strict-host-key-checking=false ssh deis-builder docker logs deis-builder
115+
fleetctl -strict-host-key-checking=false ssh deis-controller docker logs deis-controller
116+
fleetctl -strict-host-key-checking=false ssh deis-database docker logs deis-database
106117
fleetctl -strict-host-key-checking=false ssh deis-logger docker logs deis-logger
118+
fleetctl -strict-host-key-checking=false ssh deis-registry docker logs deis-registry
107119
fleetctl -strict-host-key-checking=false ssh deis-router@1 docker logs deis-router
108120
fleetctl -strict-host-key-checking=false ssh deis-router@2 docker logs deis-router
109-
fleetctl -strict-host-key-checking=false ssh deis-router@3 docker logs deis-router
121+
fleetctl -strict-host-key-checking=false ssh deis-router@3 docker logs deis-router
122+
# deis-store logs
123+
fleetctl -strict-host-key-checking=false ssh deis-router@1 docker logs deis-store-monitor
124+
fleetctl -strict-host-key-checking=false ssh deis-router@1 docker logs deis-store-daemon
125+
fleetctl -strict-host-key-checking=false ssh deis-router@1 docker logs deis-store-metadata
126+
fleetctl -strict-host-key-checking=false ssh deis-router@1 docker logs deis-store-volume
127+
fleetctl -strict-host-key-checking=false ssh deis-router@2 docker logs deis-store-monitor
128+
fleetctl -strict-host-key-checking=false ssh deis-router@2 docker logs deis-store-daemon
129+
fleetctl -strict-host-key-checking=false ssh deis-router@2 docker logs deis-store-metadata
130+
fleetctl -strict-host-key-checking=false ssh deis-router@2 docker logs deis-store-volume
131+
fleetctl -strict-host-key-checking=false ssh deis-router@3 docker logs deis-store-monitor
132+
fleetctl -strict-host-key-checking=false ssh deis-router@3 docker logs deis-store-daemon
133+
fleetctl -strict-host-key-checking=false ssh deis-router@3 docker logs deis-store-metadata
134+
fleetctl -strict-host-key-checking=false ssh deis-router@3 docker logs deis-store-volume
135+
fleetctl -strict-host-key-checking=false ssh deis-store-gateway docker logs deis-store-gateway
110136
set +x
111137
exit 1
112138
}

0 commit comments

Comments
 (0)