From 0fae8769440dc7a5c4d1e9df4fe6dc809956785e Mon Sep 17 00:00:00 2001 From: lixuehai Date: Tue, 14 Dec 2021 10:03:21 +0800 Subject: [PATCH] Add logrotate configuration for placement service Closes-Bug: #1954723 Change-Id: I6ffc8caae1aef757d37c629fbc05bb129f80147b --- ansible/roles/common/tasks/config.yml | 1 + .../roles/common/templates/cron-logrotate-placement.conf.j2 | 3 +++ releasenotes/notes/bug-1954723-2d49335022492891.yaml | 5 +++++ 3 files changed, 9 insertions(+) create mode 100644 ansible/roles/common/templates/cron-logrotate-placement.conf.j2 create mode 100644 releasenotes/notes/bug-1954723-2d49335022492891.yaml diff --git a/ansible/roles/common/tasks/config.yml b/ansible/roles/common/tasks/config.yml index 50eebe99ce..d2628e2b55 100644 --- a/ansible/roles/common/tasks/config.yml +++ b/ansible/roles/common/tasks/config.yml @@ -224,6 +224,7 @@ - { name: "nova", enabled: "{{ enable_nova | bool }}" } - { name: "octavia", enabled: "{{ enable_octavia | bool }}" } - { name: "outward-rabbitmq", enabled: "{{ enable_outward_rabbitmq | bool }}" } + - { name: "placement", enabled: "{{ enable_placement | 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-placement.conf.j2 b/ansible/roles/common/templates/cron-logrotate-placement.conf.j2 new file mode 100644 index 0000000000..3df479c0d0 --- /dev/null +++ b/ansible/roles/common/templates/cron-logrotate-placement.conf.j2 @@ -0,0 +1,3 @@ +"/var/log/kolla/placement/*.log" +{ +} diff --git a/releasenotes/notes/bug-1954723-2d49335022492891.yaml b/releasenotes/notes/bug-1954723-2d49335022492891.yaml new file mode 100644 index 0000000000..9c6c115f4a --- /dev/null +++ b/releasenotes/notes/bug-1954723-2d49335022492891.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes Placement no logrotate configuration + `LP#1954723 `__