From 709cbd345e59308f048e034a51b4b20f12715b61 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Sat, 15 Oct 2016 17:25:02 +0800 Subject: [PATCH] Fix manila upgrade permission issue Change-Id: I52e47aee0d373be102c855cc791c7f369468302a Partial-Bug: #1631503 --- ansible/roles/manila/templates/manila-api.json.j2 | 7 +++++++ ansible/roles/manila/templates/manila-scheduler.json.j2 | 7 +++++++ ansible/roles/manila/templates/manila-share.json.j2 | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/ansible/roles/manila/templates/manila-api.json.j2 b/ansible/roles/manila/templates/manila-api.json.j2 index 07e86dd75e..2d6196459d 100644 --- a/ansible/roles/manila/templates/manila-api.json.j2 +++ b/ansible/roles/manila/templates/manila-api.json.j2 @@ -7,5 +7,12 @@ "owner": "manila", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/manila", + "owner": "manila:manila", + "recurse": true + } ] } diff --git a/ansible/roles/manila/templates/manila-scheduler.json.j2 b/ansible/roles/manila/templates/manila-scheduler.json.j2 index b2c19b27b2..e59e85b5bd 100644 --- a/ansible/roles/manila/templates/manila-scheduler.json.j2 +++ b/ansible/roles/manila/templates/manila-scheduler.json.j2 @@ -7,5 +7,12 @@ "owner": "manila", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/manila", + "owner": "manila:manila", + "recurse": true + } ] } diff --git a/ansible/roles/manila/templates/manila-share.json.j2 b/ansible/roles/manila/templates/manila-share.json.j2 index f3c28532a0..3108156554 100644 --- a/ansible/roles/manila/templates/manila-share.json.j2 +++ b/ansible/roles/manila/templates/manila-share.json.j2 @@ -7,5 +7,12 @@ "owner": "manila", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/manila", + "owner": "manila:manila", + "recurse": true + } ] }