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.
Conflicts:
roles/export-devstack-journal/tasks/main.yaml
Change-Id: I4557a737cb13b9c2406056be08ab8a32ddd45162
(cherry picked from commit d02fa6f856)
This commit is contained in:
committed by
Ghanshyam Mann
parent
a855618447
commit
c97d29054e
@@ -15,7 +15,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
|
||||
|
||||
# Export the journal in export format to make it downloadable
|
||||
@@ -34,4 +34,4 @@
|
||||
-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
|
||||
|
||||
Reference in New Issue
Block a user