From bb51ca3a3d081e90288472970588e85235753321 Mon Sep 17 00:00:00 2001 From: zhubingbing <1392607554@qq.com> Date: Fri, 14 Oct 2016 18:02:41 +0800 Subject: [PATCH] Fix mariadb upgrade permission issue Change-Id: I356d41d030365b7b4f917b1334f9f68e560b7512 Co-Authored-By: Michal (inc0) Jastrzebski Partial-Bug: #1631503 --- ansible/roles/mariadb/templates/mariadb.json.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ansible/roles/mariadb/templates/mariadb.json.j2 b/ansible/roles/mariadb/templates/mariadb.json.j2 index cfee62e4d9..1b77f5e88f 100644 --- a/ansible/roles/mariadb/templates/mariadb.json.j2 +++ b/ansible/roles/mariadb/templates/mariadb.json.j2 @@ -14,5 +14,17 @@ "owner": "mysql", "perm": "0700" } + ], + "permissions": [ + { + "path": "/var/log/kolla/mariadb", + "owner": "mysql:mysql", + "recurse": true + }, + { + "path": "/var/lib/mysql", + "owner": "mysql:mysql", + "recurse": true + } ] }