From 953180c86811999a684d3b2964687b4358c4b78c Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Wed, 24 Jul 2024 16:30:54 +0200 Subject: [PATCH] ci - revert logcli exclusion of mariadb Change-Id: Ie42ffa677cd1b8646a9ff8245eb3fc28c0ab4171 --- roles/post/get-loki-logs/tasks/main.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/post/get-loki-logs/tasks/main.yaml b/roles/post/get-loki-logs/tasks/main.yaml index 6f85959..38c7893 100644 --- a/roles/post/get-loki-logs/tasks/main.yaml +++ b/roles/post/get-loki-logs/tasks/main.yaml @@ -26,11 +26,10 @@ retries: 10 until: "loki_buildinfo.status == 200 and '2.9.2' in loki_buildinfo.content" -# TODO: Remove exclusion of mariadb (this was done because of the mariadb container logs everything at high rate breaking the capability of loki to wrap logs) # Remove after the next sf-operator release (it affects only the upgrade job) - name: Get aggregated logs prefixed by service ansible.builtin.shell: > - ~/bin/logcli query --batch 2000 --forward --since=6h --parallel-duration 15m --parallel-max-workers 4 --part-path-prefix=/tmp/all-query --merge-parts --no-labels --quiet '{namespace="sf", container != "mariadb"} | json | {{ line_format_query }}' > {{ _output_dir_realpath.stdout }}/all.log + ~/bin/logcli query --batch 2000 --forward --since=6h --parallel-duration 15m --parallel-max-workers 4 --part-path-prefix=/tmp/all-query --merge-parts --no-labels --quiet '{namespace="sf"} | json | {{ line_format_query }}' > {{ _output_dir_realpath.stdout }}/all.log - name: Change owner and group for the log dir ansible.builtin.command: chown -R {{ ansible_user }}:{{ ansible_user }} {{ _output_dir_realpath.stdout }}