From 6f2c807bfade2a218636e0ca441de45c5662aca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Tue, 6 Apr 2021 14:15:34 +0000 Subject: [PATCH] gzip, not xz xz may cause POST_FAILUREs due to memory pressure [1]. [1] http://lists.openstack.org/pipermail/openstack-discuss/2021-April/021609.html Change-Id: I2ea3175ecf2508b62640bfffdd798d7072e55550 --- roles/export-devstack-journal/tasks/main.yaml | 2 +- .../templates/devstack.journal.README.txt.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/export-devstack-journal/tasks/main.yaml b/roles/export-devstack-journal/tasks/main.yaml index ef839edaaf..db38b10a44 100644 --- a/roles/export-devstack-journal/tasks/main.yaml +++ b/roles/export-devstack-journal/tasks/main.yaml @@ -45,7 +45,7 @@ cmd: | journalctl -o export \ --since="$(cat {{ devstack_base_dir }}/log-start-timestamp.txt)" \ - | xz --threads=0 - > {{ stage_dir }}/logs/devstack.journal.xz + | gzip > {{ stage_dir }}/logs/devstack.journal.gz - name: Save journal README become: true diff --git a/roles/export-devstack-journal/templates/devstack.journal.README.txt.j2 b/roles/export-devstack-journal/templates/devstack.journal.README.txt.j2 index fe36653102..30519f63d7 100644 --- a/roles/export-devstack-journal/templates/devstack.journal.README.txt.j2 +++ b/roles/export-devstack-journal/templates/devstack.journal.README.txt.j2 @@ -7,7 +7,7 @@ devstack run. To use it, you will need to convert it so journalctl can read it locally. After downloading the file: - $ /lib/systemd/systemd-journal-remote <(xzcat ./devstack.journal.xz) -o output.journal + $ /lib/systemd/systemd-journal-remote <(zcat ./devstack.journal.gz) -o output.journal Note this binary is not in the regular path. On Debian/Ubuntu platforms, you will need to have the "systemd-journal-remote" package