From 1fd240f81b6850cb6db5eea91f7a91decf962757 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 11 May 2022 17:54:40 +0000 Subject: [PATCH] Fix BIND9 log collection Currently the bind logs are not viewable in the zuul logs page, they prompt for download. The wrong systemd unit logs are being exported and they were being double gziped. This patch corrects both of those issues such that the BIND9 logs will be properly collected in the zuul jobs. Change-Id: Ied091e7acd0cb2c837f8ee7335b7881225da0126 --- roles/bind-logs-conf/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bind-logs-conf/tasks/main.yaml b/roles/bind-logs-conf/tasks/main.yaml index 41ba5f571..9fded230e 100644 --- a/roles/bind-logs-conf/tasks/main.yaml +++ b/roles/bind-logs-conf/tasks/main.yaml @@ -35,4 +35,4 @@ become: true shell: cmd: | - journalctl -o short-precise --unit bind9 | gzip - > {{ stage_dir }}/logs/bind9.txt.gz + journalctl -o short-precise --unit named > {{ stage_dir }}/logs/bind9.txt