From 039aae5fa77abbf1fdf9cf54a2c07989520f83fc Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 10 Nov 2022 09:35:42 +1100 Subject: [PATCH] openafs: copy dkms log directory Grab the make logs from the dkms directory. This is helpful if the modules are failing to build. The /var/lib/dkms directory contains all the source and object files, etc., which seems unnecessary to store in general. Thus we just trim this to the log directory. Change-Id: I9b5abc9cf4cd59305470a04dda487dfdfd1b395a --- roles-test/post.yaml | 7 +++++++ zuul.d/system-config-roles.yaml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/roles-test/post.yaml b/roles-test/post.yaml index c68266beef..584cc1a425 100644 --- a/roles-test/post.yaml +++ b/roles-test/post.yaml @@ -9,6 +9,13 @@ - hosts: all tasks: + - name: Get dkms make logs + shell: | + DKMS_MAKE_LOGS=/var/lib/dkms-make-logs + mkdir ${DKMS_MAKE_LOGS} + find /var/lib/dkms/ -type d -wholename "*/log" -exec cp -r --parents \{\} ${DKMS_MAKE_LOGS} \; + chown zuul:zuul ${DKMS_MAKE_LOGS} + become: yes - include_role: name: stage-output diff --git a/zuul.d/system-config-roles.yaml b/zuul.d/system-config-roles.yaml index d738e1900f..672f2e4505 100644 --- a/zuul.d/system-config-roles.yaml +++ b/zuul.d/system-config-roles.yaml @@ -22,6 +22,8 @@ '/var/log/syslog': logs_txt '/var/log/messages': logs_txt '/var/log/openafs': logs + # for build logs on centos + '/var/lib/dkms-make-logs': logs - job: name: system-config-zuul-role-integration-xenial