From e34b03c53982fcd6220d9508ffcb4b6009e0d5d1 Mon Sep 17 00:00:00 2001 From: Alberto Murillo Date: Fri, 8 Jan 2016 16:59:44 -0600 Subject: [PATCH] Grant access to keystone,glance,nova,etc databases from other hosts - In the case mariadb is installed on a separated server, it should accept incoming connections from the controller and compute hosts. --- clearstack/modules/mariadb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clearstack/modules/mariadb.py b/clearstack/modules/mariadb.py index 88f2b16..73c1b22 100644 --- a/clearstack/modules/mariadb.py +++ b/clearstack/modules/mariadb.py @@ -103,7 +103,7 @@ class MariaDB: .format(mariadb_user, mariadb_pw, database, user, password), debug=False) util.run_command("mysql -u{0} -p{1} -e" - " \"GRANT ALL PRIVILEGES ON {2}.* TO '{3}'@'{4}'" - " IDENTIFIED BY '{5}';\"" + " \"GRANT ALL PRIVILEGES ON {2}.* TO '{3}'@'%'" + " IDENTIFIED BY '{4}';\"" .format(mariadb_user, mariadb_pw, database, user, - host, password), debug=False) + password), debug=False)