From ebc301c8910d4f50ab9bbf2863fbd20bc29ad513 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Tue, 13 Dec 2016 05:17:23 +0000 Subject: [PATCH] Fix aodh upgrade permission issue Change-Id: I6ba291eb77586d04ae0840363421908d9477945a Partial-Bug: #1631503 --- ansible/roles/aodh/templates/aodh-api.json.j2 | 9 ++++++++- ansible/roles/aodh/templates/aodh-evaluator.json.j2 | 7 +++++++ ansible/roles/aodh/templates/aodh-listener.json.j2 | 7 +++++++ ansible/roles/aodh/templates/aodh-notifier.json.j2 | 7 +++++++ 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/ansible/roles/aodh/templates/aodh-api.json.j2 b/ansible/roles/aodh/templates/aodh-api.json.j2 index fc6b0b0815..7dfd8dbe0c 100644 --- a/ansible/roles/aodh/templates/aodh-api.json.j2 +++ b/ansible/roles/aodh/templates/aodh-api.json.j2 @@ -15,5 +15,12 @@ "owner": "root", "perm": "0600" } - ] + ], + "permissions": [ + { + "path": "/var/log/kolla/aodh", + "owner": "aodh:kolla", + "recurse": true + } + ] } diff --git a/ansible/roles/aodh/templates/aodh-evaluator.json.j2 b/ansible/roles/aodh/templates/aodh-evaluator.json.j2 index 220be5a1e0..b900703ca6 100644 --- a/ansible/roles/aodh/templates/aodh-evaluator.json.j2 +++ b/ansible/roles/aodh/templates/aodh-evaluator.json.j2 @@ -7,5 +7,12 @@ "owner": "aodh", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/aodh", + "owner": "aodh:kolla", + "recurse": true + } ] } diff --git a/ansible/roles/aodh/templates/aodh-listener.json.j2 b/ansible/roles/aodh/templates/aodh-listener.json.j2 index 3b75e64c80..9dd0614d94 100644 --- a/ansible/roles/aodh/templates/aodh-listener.json.j2 +++ b/ansible/roles/aodh/templates/aodh-listener.json.j2 @@ -7,5 +7,12 @@ "owner": "aodh", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/aodh", + "owner": "aodh:kolla", + "recurse": true + } ] } diff --git a/ansible/roles/aodh/templates/aodh-notifier.json.j2 b/ansible/roles/aodh/templates/aodh-notifier.json.j2 index da910cd2ba..dec117d12d 100644 --- a/ansible/roles/aodh/templates/aodh-notifier.json.j2 +++ b/ansible/roles/aodh/templates/aodh-notifier.json.j2 @@ -7,5 +7,12 @@ "owner": "aodh", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/aodh", + "owner": "aodh:kolla", + "recurse": true + } ] }