From 2b7abb600a571b7c8db84417d58937176548fc9d Mon Sep 17 00:00:00 2001 From: caoyuan Date: Sat, 15 Oct 2016 17:35:48 +0800 Subject: [PATCH] Fix watcher upgrade permission issue Change-Id: I68c172de1f61807e8fed4535709b31a9acbe0b22 Partial-Bug: #1631503 --- ansible/roles/watcher/templates/watcher-api.json.j2 | 7 +++++++ ansible/roles/watcher/templates/watcher-applier.json.j2 | 7 +++++++ ansible/roles/watcher/templates/watcher-engine.json.j2 | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/ansible/roles/watcher/templates/watcher-api.json.j2 b/ansible/roles/watcher/templates/watcher-api.json.j2 index 6834e719d3..422313e777 100644 --- a/ansible/roles/watcher/templates/watcher-api.json.j2 +++ b/ansible/roles/watcher/templates/watcher-api.json.j2 @@ -7,5 +7,12 @@ "owner": "watcher", "perm": "0644" } + ], + "permissions": [ + { + "path": "/var/log/kolla/watcher", + "owner": "watcher:watcher", + "recurse": true + } ] } diff --git a/ansible/roles/watcher/templates/watcher-applier.json.j2 b/ansible/roles/watcher/templates/watcher-applier.json.j2 index f53d8ba815..2fae81a0e7 100644 --- a/ansible/roles/watcher/templates/watcher-applier.json.j2 +++ b/ansible/roles/watcher/templates/watcher-applier.json.j2 @@ -7,5 +7,12 @@ "owner": "watcher", "perm": "0644" } + ], + "permissions": [ + { + "path": "/var/log/kolla/watcher", + "owner": "watcher:watcher", + "recurse": true + } ] } diff --git a/ansible/roles/watcher/templates/watcher-engine.json.j2 b/ansible/roles/watcher/templates/watcher-engine.json.j2 index ee8a2aec1d..acf60e9305 100644 --- a/ansible/roles/watcher/templates/watcher-engine.json.j2 +++ b/ansible/roles/watcher/templates/watcher-engine.json.j2 @@ -7,5 +7,12 @@ "owner": "watcher", "perm": "0644" } + ], + "permissions": [ + { + "path": "/var/log/kolla/watcher", + "owner": "watcher:watcher", + "recurse": true + } ] }