From 50d44e3e2a01fcf4aeb0776f7108950327baedc5 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Wed, 30 Nov 2016 07:30:50 +0000 Subject: [PATCH] Fix cloudkitty upgrade permission issue Change-Id: I7ad42293cd2ff64b3501bfa4ee45b5d20f81139d Closes-Bug: #1646013 --- ansible/roles/cloudkitty/templates/cloudkitty-api.json.j2 | 7 +++++++ .../cloudkitty/templates/cloudkitty-processor.json.j2 | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/ansible/roles/cloudkitty/templates/cloudkitty-api.json.j2 b/ansible/roles/cloudkitty/templates/cloudkitty-api.json.j2 index 2a57a51af5..83b37763f7 100644 --- a/ansible/roles/cloudkitty/templates/cloudkitty-api.json.j2 +++ b/ansible/roles/cloudkitty/templates/cloudkitty-api.json.j2 @@ -7,5 +7,12 @@ "owner": "cloudkitty", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/cloudkitty", + "owner": "cloudkitty:cloudkitty", + "recurse": true + } ] } diff --git a/ansible/roles/cloudkitty/templates/cloudkitty-processor.json.j2 b/ansible/roles/cloudkitty/templates/cloudkitty-processor.json.j2 index 3dd845c33b..8b8d95e076 100644 --- a/ansible/roles/cloudkitty/templates/cloudkitty-processor.json.j2 +++ b/ansible/roles/cloudkitty/templates/cloudkitty-processor.json.j2 @@ -7,5 +7,12 @@ "owner": "cloudkitty", "perm": "0600" } + ], + "permissions": [ + { + "path": "/var/log/kolla/cloudkitty", + "owner": "cloudkitty:cloudkitty", + "recurse": true + } ] }