Browse code

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

Sean Mooney authored on 2020/01/15 00:47:51
Showing 1 changed files
... ...
@@ -14,7 +14,7 @@
14 14
       name=""
15 15
       for u in $(systemctl list-unit-files | grep devstack | awk '{print $1}'); do
16 16
         name=$(echo $u | sed 's/devstack@/screen-/' | sed 's/\.service//')
17
-        journalctl -o short-precise --unit $u | gzip - > {{ stage_dir }}/logs/$name.txt.gz
17
+        journalctl -o short-precise --unit $u  > {{ stage_dir }}/logs/$name.txt
18 18
       done
19 19
 
20 20
 - name: Export legacy syslog.txt
... ...
@@ -29,7 +29,7 @@
29 29
           -t sudo \
30 30
           --no-pager \
31 31
           --since="$(cat {{ devstack_base_dir }}/log-start-timestamp.txt)" \
32
-        | gzip - > {{ stage_dir }}/logs/syslog.txt.gz
32
+         > {{ stage_dir }}/logs/syslog.txt
33 33
 
34 34
 # TODO: convert this to ansible
35 35
 #  - make a list of the above units