From 65d8c3311b4bca0f2c02ec5b80ab7ad78b817478 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Tue, 19 Apr 2016 11:22:51 +0200 Subject: [PATCH] Gnocchi DB is skipped if ceilometer is disabled When CONFIG_CEILOMETER_INSTALL is set to n, installation of gnocchi is disabled but packstack tries to create the database and fails. This patch disables the creation of gnocchi db if ceilometer installation is disabled. Change-Id: Ic2115bef15d1cc980c89fe6518b3120faa41cfca --- packstack/plugins/mariadb_003.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packstack/plugins/mariadb_003.py b/packstack/plugins/mariadb_003.py index 8a9395a9f..f681430e2 100644 --- a/packstack/plugins/mariadb_003.py +++ b/packstack/plugins/mariadb_003.py @@ -122,10 +122,14 @@ def create_manifest(config, messages): append_for("keystone", suffix) for mod in ['nova', 'cinder', 'glance', 'neutron', 'heat', 'sahara', - 'trove', 'ironic', 'manila', 'gnocchi']: + 'trove', 'ironic', 'manila']: if config['CONFIG_%s_INSTALL' % mod.upper()] == 'y': append_for(mod, suffix) + if (config['CONFIG_GNOCCHI_INSTALL'] == 'y' and + config['CONFIG_CEILOMETER_INSTALL'] == 'y'): + append_for('gnocchi', suffix) + hosts = filtered_hosts(config, exclude=False, dbhost=True) fw_details = dict()