From 81ee206a871993ab7faa65d470e1422739dcd12f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Fri, 27 Nov 2020 13:31:20 +0100 Subject: [PATCH] Add more logs into gates This will be necessary to find out why some docker containers fail to come back up in github actions. --- tests/kind/follow-coordinated-reboot.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/kind/follow-coordinated-reboot.sh b/tests/kind/follow-coordinated-reboot.sh index 752ab52..9eb4a14 100755 --- a/tests/kind/follow-coordinated-reboot.sh +++ b/tests/kind/follow-coordinated-reboot.sh @@ -14,9 +14,12 @@ function gather_logs_and_cleanup { # The next commands are useful regardless of success or failures. if [[ "$DEBUG" == "true" ]]; then + echo "############################################################" # This is useful to see if containers have crashed. - echo "docker ps:" - docker ps + echo "docker ps -a:" + docker ps -a + echo "docker journal logs" + journalctl -u docker --no-pager # This is useful to see if the nodes have _properly_ rebooted. # It should show the reboot/two container starts per node. @@ -25,6 +28,7 @@ function gather_logs_and_cleanup { echo "docker logs for container $name:" docker logs $name done + fi } trap gather_logs_and_cleanup EXIT