From 90a817f14d3126bdc58f56597024cdf573787626 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Tue, 4 Jul 2017 22:45:46 +0000 Subject: [PATCH] Dump docker daemon logs before finish This make the docker daemon logs available to the CI system. Change-Id: I36ef41396e6c1d56f6b7cfe773b588d4892aa8b2 --- contrib/post_test_hook.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/post_test_hook.sh b/contrib/post_test_hook.sh index 541f765..3317915 100644 --- a/contrib/post_test_hook.sh +++ b/contrib/post_test_hook.sh @@ -38,6 +38,10 @@ echo_summary "Devstack-plugin-container's post_test_hook.sh was called..." # Verify that Docker is installed correctly by running the hello-world image sudo -H -u stack docker run hello-world +# Copy over docker systemd unit journals. +mkdir -p $WORKSPACE/logs +sudo journalctl -o short-precise --unit docker | sudo tee $WORKSPACE/logs/docker.txt > /dev/null + EXIT_CODE=$? $XTRACE