From d62cdeddde16b70d5fd09684ef02411ae83fa705 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Mon, 17 Oct 2016 17:41:05 +0800 Subject: [PATCH] Fix mongodb upgrade permission issue Change-Id: I15966415854e370228b53344bfdfbcd417e18a53 Partial-Bug: #1631503 --- ansible/roles/mongodb/templates/mongodb.json.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ansible/roles/mongodb/templates/mongodb.json.j2 b/ansible/roles/mongodb/templates/mongodb.json.j2 index 12a25fc5c2..5dccb78b97 100644 --- a/ansible/roles/mongodb/templates/mongodb.json.j2 +++ b/ansible/roles/mongodb/templates/mongodb.json.j2 @@ -7,5 +7,17 @@ "owner": "mongodb", "perm": "0644" } + ], + "permissions": [ + { + "path": "/var/lib/kolla/mongodb", + "owner": "mongodb:mongodb", + "recurse": true + }, + { + "path": "/var/log/kolla/mongodb", + "owner": "mongodb:mongodb", + "recurse": true + } ] }