From d02fa6f856ac5951b8a879c23b57d5a752f28918 Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Tue, 14 Jan 2020 15:47:51 +0000 Subject: [PATCH] do not gzip legacy service logs This change removes the .gz extension from the service and syslog logs exported via journalctl. This change nolonger gzip compresses the exported logs so that they can be rendered in the browser directly when served from swift. Change-Id: I4557a737cb13b9c2406056be08ab8a32ddd45162 --- roles/export-devstack-journal/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/export-devstack-journal/tasks/main.yaml b/roles/export-devstack-journal/tasks/main.yaml index cbec4447b8..ef839edaaf 100644 --- a/roles/export-devstack-journal/tasks/main.yaml +++ b/roles/export-devstack-journal/tasks/main.yaml @@ -14,7 +14,7 @@ name="" for u in $(systemctl list-unit-files | grep devstack | awk '{print $1}'); do name=$(echo $u | sed 's/devstack@/screen-/' | sed 's/\.service//') - journalctl -o short-precise --unit $u | gzip - > {{ stage_dir }}/logs/$name.txt.gz + journalctl -o short-precise --unit $u > {{ stage_dir }}/logs/$name.txt done - name: Export legacy syslog.txt @@ -29,7 +29,7 @@ -t sudo \ --no-pager \ --since="$(cat {{ devstack_base_dir }}/log-start-timestamp.txt)" \ - | gzip - > {{ stage_dir }}/logs/syslog.txt.gz + > {{ stage_dir }}/logs/syslog.txt # TODO: convert this to ansible # - make a list of the above units