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
changes/48/864148/5
Ian Wienand 3 months ago
parent 2c72c8b9e3
commit 039aae5fa7
No known key found for this signature in database

@ -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

@ -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

Loading…
Cancel
Save