Fix Logstash 2.4 log rotation

Logstash 2.4 uses integrated in container logrotate configuration
which tries to rotate logs in /var/log/logstash and Kolla's Logstash
logs are in /var/log/kolla/logstash/
This patch adds kolla-ansible internal logrotate config for Logstash

Change-Id: Ifbab7b673ba87925e52bb01c0996479eb1b76c44
Closes-Bug: #1886787
(cherry picked from commit 0e353d3f57)
This commit is contained in:
Bartosz Bezak 2020-07-14 11:55:31 +00:00
parent c6e813ee8a
commit da1267e609
4 changed files with 14 additions and 0 deletions

View File

@ -291,6 +291,7 @@
- { name: "keystone", enabled: "{{ enable_keystone }}" } - { name: "keystone", enabled: "{{ enable_keystone }}" }
- { name: "kibana", enabled: "{{ enable_kibana }}" } - { name: "kibana", enabled: "{{ enable_kibana }}" }
- { name: "kuryr", enabled: "{{ enable_kuryr }}" } - { name: "kuryr", enabled: "{{ enable_kuryr }}" }
- { name: "logstash", enabled: "{{ enable_monasca }}" }
- { name: "magnum", enabled: "{{ enable_magnum }}" } - { name: "magnum", enabled: "{{ enable_magnum }}" }
- { name: "manila", enabled: "{{ enable_manila }}" } - { name: "manila", enabled: "{{ enable_manila }}" }
- { name: "mariadb", enabled: "{{ enable_mariadb }}" } - { name: "mariadb", enabled: "{{ enable_mariadb }}" }

View File

@ -0,0 +1,3 @@
"/var/log/kolla/logstash/*.log"
{
}

View File

@ -31,6 +31,7 @@
( 'keystone', enable_keystone ), ( 'keystone', enable_keystone ),
( 'kibana', enable_kibana ), ( 'kibana', enable_kibana ),
( 'kuryr', enable_kuryr ), ( 'kuryr', enable_kuryr ),
( 'logstash', enable_monasca ),
( 'magnum', enable_magnum ), ( 'magnum', enable_magnum ),
( 'manila', enable_manila ), ( 'manila', enable_manila ),
( 'mariadb', enable_mariadb ), ( 'mariadb', enable_mariadb ),

View File

@ -0,0 +1,9 @@
---
fixes:
- |
This patch adds ``kolla-ansible`` internal logrotate config for
Logstash. Logstash 2.4 uses integrated in container logrotate
configuration which tries to rotate logs in /var/log/logstash
while ``kolla-ansible`` deployed Logstash logs are in
/var/log/kolla/logstash.
`LP#1886787 <https://launchpad.net/bugs/1886787>`__