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
This commit is contained in:
Doug Szumski 2020-01-10 10:14:20 +00:00
parent ac62b560ff
commit 1917d1a9f5
2 changed files with 9 additions and 0 deletions

View File

@ -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"

View File

@ -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.