Browse Source

Dump docker daemon logs before finish

This make the docker daemon logs available to the CI system.

Change-Id: I36ef41396e6c1d56f6b7cfe773b588d4892aa8b2
Hongbin Lu 1 year ago
parent
commit
90a817f14d
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      contrib/post_test_hook.sh

+ 4
- 0
contrib/post_test_hook.sh View File

@@ -38,6 +38,10 @@ echo_summary "Devstack-plugin-container's post_test_hook.sh was called..."
38 38
 # Verify that Docker is installed correctly by running the hello-world image
39 39
 sudo -H -u stack docker run hello-world
40 40
 
41
+# Copy over docker systemd unit journals.
42
+mkdir -p $WORKSPACE/logs
43
+sudo journalctl -o short-precise --unit docker | sudo tee $WORKSPACE/logs/docker.txt > /dev/null
44
+
41 45
 EXIT_CODE=$?
42 46
 
43 47
 $XTRACE

Loading…
Cancel
Save