From b361fe8ea29c16a4115639c300f013a6823b76f4 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Fri, 14 Oct 2016 17:53:40 +0800 Subject: [PATCH] Fix heat upgrade permission issue Change-Id: I666368dcb2dd900234b373bfd433ab918233c601 Partial-Bug: #1631503 --- ansible/roles/heat/templates/heat-api-cfn.json.j2 | 7 +++++++ ansible/roles/heat/templates/heat-api.json.j2 | 9 ++++++++- ansible/roles/heat/templates/heat-engine.json.j2 | 7 +++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/ansible/roles/heat/templates/heat-api-cfn.json.j2 b/ansible/roles/heat/templates/heat-api-cfn.json.j2 index 6d10c115fe..30f266582d 100644 --- a/ansible/roles/heat/templates/heat-api-cfn.json.j2 +++ b/ansible/roles/heat/templates/heat-api-cfn.json.j2 @@ -7,5 +7,12 @@ "owner": "heat", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/heat", + "owner": "heat:heat", + "recurse": true + } ] } diff --git a/ansible/roles/heat/templates/heat-api.json.j2 b/ansible/roles/heat/templates/heat-api.json.j2 index 495ba4ec29..c198cbf4be 100644 --- a/ansible/roles/heat/templates/heat-api.json.j2 +++ b/ansible/roles/heat/templates/heat-api.json.j2 @@ -7,5 +7,12 @@ "owner": "heat", "perm": "0600" } - ] + ], + "permissions": [ + { + "path": "/var/log/kolla/heat", + "owner": "heat:heat", + "recurse": true + } + ] } diff --git a/ansible/roles/heat/templates/heat-engine.json.j2 b/ansible/roles/heat/templates/heat-engine.json.j2 index 19bf349e99..40d76a08f0 100644 --- a/ansible/roles/heat/templates/heat-engine.json.j2 +++ b/ansible/roles/heat/templates/heat-engine.json.j2 @@ -13,5 +13,12 @@ "owner": "heat", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/heat", + "owner": "heat:heat", + "recurse": true + } ] }