From 1917d1a9f54a86b1376b54652804070b307673ea Mon Sep 17 00:00:00 2001 From: Doug Szumski Date: Fri, 10 Jan 2020 10:14:20 +0000 Subject: [PATCH] Use kolla_logs volume for Elasticsearch This patch mounts the kolla_logs volume into the Elasticsearch container so that logs are no longer written to the container filesystem. It is up to the user to migrate any existing logs into the kolla_logs volume, if they so desire. Closes-Bug: #1859162 Change-Id: Ia1743e202e310fc88a61476c80eadf3855256c20 --- ansible/roles/elasticsearch/defaults/main.yml | 1 + ...ue-with-elasticsearch-kolla-logs-a0ba85d91d1a2c31.yaml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/fix-issue-with-elasticsearch-kolla-logs-a0ba85d91d1a2c31.yaml diff --git a/ansible/roles/elasticsearch/defaults/main.yml b/ansible/roles/elasticsearch/defaults/main.yml index 4d57b85c0d..20e7e3021b 100644 --- a/ansible/roles/elasticsearch/defaults/main.yml +++ b/ansible/roles/elasticsearch/defaults/main.yml @@ -81,6 +81,7 @@ elasticsearch_default_volumes: - "{{ node_config_directory }}/elasticsearch/:{{ container_config_directory }}/" - "/etc/localtime:/etc/localtime:ro" - "{{ elasticsearch_datadir_volume }}:/var/lib/elasticsearch/data" + - "kolla_logs:/var/log/kolla/" elasticsearch_curator_default_volumes: - "{{ node_config_directory }}/elasticsearch-curator/:{{ container_config_directory }}/" - "/etc/localtime:/etc/localtime:ro" diff --git a/releasenotes/notes/fix-issue-with-elasticsearch-kolla-logs-a0ba85d91d1a2c31.yaml b/releasenotes/notes/fix-issue-with-elasticsearch-kolla-logs-a0ba85d91d1a2c31.yaml new file mode 100644 index 0000000000..e50f56d0b8 --- /dev/null +++ b/releasenotes/notes/fix-issue-with-elasticsearch-kolla-logs-a0ba85d91d1a2c31.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + The kolla_logs Docker volume is now mounted into the Elasticsearch + container to expose logs which were previously written erroneously + to the container filesystem (bug 1859162). It is up to the user to + migrate any existing logs if they so desire and this should be + done before applying this fix.