From 87b8dae67e4d74d82329d11b68f23657a797b660 Mon Sep 17 00:00:00 2001 From: zhubingbing Date: Thu, 16 Feb 2017 07:36:54 +0000 Subject: [PATCH] Fix haproxy log not writable in upgrade Change-Id: Icddd27ef0f5041ace848eec75e732143635c1001 Closes-Bug: #1665005 --- ansible/roles/common/templates/fluentd.json.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ansible/roles/common/templates/fluentd.json.j2 b/ansible/roles/common/templates/fluentd.json.j2 index a4e01142ec..2dd48795d8 100644 --- a/ansible/roles/common/templates/fluentd.json.j2 +++ b/ansible/roles/common/templates/fluentd.json.j2 @@ -73,5 +73,18 @@ "owner": "td-agent", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/haproxy", + "owner": "td-agent:td-agent", + "recurse": true + }, + { + "path": "/var/log/kolla/swift", + "owner": "td-agent:td-agent", + "recurse": true + } ] + }