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
This commit is contained in:
Alfredo Moralejo
2016-04-19 11:22:51 +02:00
parent f451f9aa5a
commit 65d8c3311b

View File

@@ -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()