From f49bf96c320d71b9b966808fdc71abe86c93e045 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 22 Feb 2019 16:10:23 -0800 Subject: [PATCH] Save registry logs In the buildset registry job, save the logs from the registry service to aid in debugging. Change-Id: I227a0eb0cfc3cfc7621f5c06da9cb552c0a82750 --- playbooks/buildset-registry/post.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/playbooks/buildset-registry/post.yaml b/playbooks/buildset-registry/post.yaml index c64e8ef..5c7ad34 100644 --- a/playbooks/buildset-registry/post.yaml +++ b/playbooks/buildset-registry/post.yaml @@ -1,3 +1,16 @@ - hosts: localhost roles: - push-to-intermediate-registry + tasks: + - name: Create container log dir + file: + path: "{{ ansible_user_dir }}/zuul-output/logs/docker" + state: directory + + - name: Save registry container logs + loop: + - buildset_proxy + - buildset_registry + shell: "docker logs {{ item }} &> {{ ansible_user_dir }}/zuul-output/logs/docker/{{item}}.txt" + args: + executable: /bin/bash