From a8cb87c6723d52f464ecccfd8545f6a2cadb491f Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Sat, 15 Oct 2016 17:15:50 +0800 Subject: [PATCH] Fix mistral upgrade permission issue Change-Id: Ic21cb035a75870690be0f98377fe45f41983e658 Partial-Bug: #1631503 --- ansible/roles/mistral/templates/mistral-api.json.j2 | 7 +++++++ ansible/roles/mistral/templates/mistral-engine.json.j2 | 7 +++++++ ansible/roles/mistral/templates/mistral-executor.json.j2 | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/ansible/roles/mistral/templates/mistral-api.json.j2 b/ansible/roles/mistral/templates/mistral-api.json.j2 index bb9c5d8682..3fdb470826 100644 --- a/ansible/roles/mistral/templates/mistral-api.json.j2 +++ b/ansible/roles/mistral/templates/mistral-api.json.j2 @@ -7,5 +7,12 @@ "owner": "mistral", "perm": "0644" } + ], + "permissions": [ + { + "path": "/var/log/kolla/mistral", + "owner": "mistral:mistral", + "recurse": true + } ] } diff --git a/ansible/roles/mistral/templates/mistral-engine.json.j2 b/ansible/roles/mistral/templates/mistral-engine.json.j2 index 68151098e3..a37250facd 100644 --- a/ansible/roles/mistral/templates/mistral-engine.json.j2 +++ b/ansible/roles/mistral/templates/mistral-engine.json.j2 @@ -7,5 +7,12 @@ "owner": "mistral", "perm": "0644" } + ], + "permissions": [ + { + "path": "/var/log/kolla/mistral", + "owner": "mistral:mistral", + "recurse": true + } ] } diff --git a/ansible/roles/mistral/templates/mistral-executor.json.j2 b/ansible/roles/mistral/templates/mistral-executor.json.j2 index 09a5c53e17..405a20183d 100644 --- a/ansible/roles/mistral/templates/mistral-executor.json.j2 +++ b/ansible/roles/mistral/templates/mistral-executor.json.j2 @@ -7,5 +7,12 @@ "owner": "mistral", "perm": "0644" } + ], + "permissions": [ + { + "path": "/var/log/kolla/mistral", + "owner": "mistral:mistral", + "recurse": true + } ] }