From 80ee3f2e5c244b271a7131665f68c7f1655c3c4c Mon Sep 17 00:00:00 2001 From: Juan Pablo Suazo Date: Tue, 22 Feb 2022 11:22:54 -0300 Subject: [PATCH] Add openvswitch and prometheus to logrotate Closes-Bug: #1961795 Change-Id: I5547cce5c389846ed216bb898b78e45b8f231e1e --- ansible/roles/common/tasks/config.yml | 5 +++-- .../common/templates/cron-logrotate-openvswitch.conf.j2 | 3 +++ .../common/templates/cron-logrotate-prometheus.conf.j2 | 3 +++ releasenotes/notes/bug-1961795-16fb2ac27152fc03.yaml | 6 ++++++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 ansible/roles/common/templates/cron-logrotate-openvswitch.conf.j2 create mode 100644 ansible/roles/common/templates/cron-logrotate-prometheus.conf.j2 create mode 100644 releasenotes/notes/bug-1961795-16fb2ac27152fc03.yaml diff --git a/ansible/roles/common/tasks/config.yml b/ansible/roles/common/tasks/config.yml index ff49ccbe9c..3935d2dff9 100644 --- a/ansible/roles/common/tasks/config.yml +++ b/ansible/roles/common/tasks/config.yml @@ -184,13 +184,14 @@ - { name: "monasca", enabled: "{{ enable_monasca | bool }}" } - { name: "murano", enabled: "{{ enable_murano | bool }}" } - { name: "neutron", enabled: "{{ enable_neutron | bool }}" } - - { name: "neutron-tls-proxy", enabled: "{{ neutron_enable_tls_backend | - bool }}" } + - { name: "neutron-tls-proxy", enabled: "{{ neutron_enable_tls_backend | bool }}" } - { name: "nova", enabled: "{{ enable_nova | bool }}" } - { name: "nova-libvirt", enabled: "{{ enable_nova | bool and nova_compute_virt_type in ['kvm', 'qemu'] }}" } - { name: "octavia", enabled: "{{ enable_octavia | bool }}" } + - { name: "openvswitch", enabled: "{{ enable_openvswitch | bool }}" } - { name: "outward-rabbitmq", enabled: "{{ enable_outward_rabbitmq | bool }}" } - { name: "placement", enabled: "{{ enable_placement | bool }}" } + - { name: "prometheus", enabled: "{{ enable_prometheus | bool }}" } - { name: "rabbitmq", enabled: "{{ enable_rabbitmq | bool }}" } - { name: "sahara", enabled: "{{ enable_sahara | bool }}" } - { name: "senlin", enabled: "{{ enable_senlin | bool }}" } diff --git a/ansible/roles/common/templates/cron-logrotate-openvswitch.conf.j2 b/ansible/roles/common/templates/cron-logrotate-openvswitch.conf.j2 new file mode 100644 index 0000000000..5abab08b2a --- /dev/null +++ b/ansible/roles/common/templates/cron-logrotate-openvswitch.conf.j2 @@ -0,0 +1,3 @@ +"/var/log/kolla/openvswitch/*.log" +{ +} diff --git a/ansible/roles/common/templates/cron-logrotate-prometheus.conf.j2 b/ansible/roles/common/templates/cron-logrotate-prometheus.conf.j2 new file mode 100644 index 0000000000..fdfe807141 --- /dev/null +++ b/ansible/roles/common/templates/cron-logrotate-prometheus.conf.j2 @@ -0,0 +1,3 @@ +"/var/log/kolla/prometheus/*.log" +{ +} diff --git a/releasenotes/notes/bug-1961795-16fb2ac27152fc03.yaml b/releasenotes/notes/bug-1961795-16fb2ac27152fc03.yaml new file mode 100644 index 0000000000..ff78f92603 --- /dev/null +++ b/releasenotes/notes/bug-1961795-16fb2ac27152fc03.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes logrotate config missing for openvswitch and + prometheus services. + `LP#1961795 `__