Merge "Always install gnocchi when ceilometer is enabled"

This commit is contained in:
Jenkins 2017-09-25 16:21:34 +00:00 committed by Gerrit Code Review
commit ac8fa3c738
10 changed files with 16 additions and 32 deletions

View File

@ -60,14 +60,11 @@ Global Options
Specify 'y' to install OpenStack Object Storage (swift). ['y', 'n']
**CONFIG_CEILOMETER_INSTALL**
Specify 'y' to install OpenStack Metering (ceilometer). ['y', 'n']
Specify 'y' to install OpenStack Metering (ceilometer). Note this will also automatically install gnocchi service and configures it as the metrics backend. ['y', 'n']
**CONFIG_AODH_INSTALL**
Specify 'y' to install OpenStack Telemetry Alarming (Aodh). Note Aodh requires Ceilometer to be installed as well. ['y', 'n']
**CONFIG_GNOCCHI_INSTALL**
Specify 'y' to install OpenStack Metering as a Service (gnocchi). ['y', 'n']
**CONFIG_PANKO_INSTALL**
Specify 'y' to install OpenStack Events Service (panko). ['y', 'n']

View File

@ -62,8 +62,7 @@ def initConfig(controller):
update_params_usage(basedefs.PACKSTACK_DOC, gnocchi_params)
def use_gnocchi(config):
return (config['CONFIG_CEILOMETER_INSTALL'] == 'y' and
config['CONFIG_GNOCCHI_INSTALL'] == 'y')
return config['CONFIG_CEILOMETER_INSTALL'] == 'y'
gnocchi_groups = [
{"GROUP_NAME": "GNOCCHI",
@ -79,8 +78,7 @@ def initConfig(controller):
def initSequences(controller):
if (controller.CONF['CONFIG_GNOCCHI_INSTALL'] != 'y' or
controller.CONF['CONFIG_CEILOMETER_INSTALL'] != 'y'):
if controller.CONF['CONFIG_CEILOMETER_INSTALL'] != 'y':
return
steps = [{'title': 'Preparing Gnocchi entries',

View File

@ -231,20 +231,6 @@ def initConfig(controller):
"NEED_CONFIRM": False,
"CONDITION": False},
{"CMD_OPTION": "os-gnocchi-install",
"PROMPT": (
"Should Packstack install OpenStack Resource Metering (Gnocchi)"
),
"OPTION_LIST": ["y", "n"],
"VALIDATORS": [validators.validate_options],
"DEFAULT_VALUE": "y",
"MASK_INPUT": False,
"LOOSE_VALIDATION": False,
"CONF_NAME": "CONFIG_GNOCCHI_INSTALL",
"USE_DEFAULT": False,
"NEED_CONFIRM": False,
"CONDITION": False},
{"CMD_OPTION": "os-panko-install",
"PROMPT": (
"Should Packstack install OpenStack Events Service (Panko)"

View File

@ -27,7 +27,7 @@ class packstack::apache ()
apache::listen { '8042': }
}
if hiera('CONFIG_GNOCCHI_INSTALL') == 'y' {
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' {
# Gnocchi port
apache::listen { '8041': }
}

View File

@ -25,8 +25,7 @@ class packstack::mariadb::services ()
}
}
if hiera('CONFIG_GNOCCHI_INSTALL') == 'y' and
hiera('CONFIG_CEILOMETER_INSTALL') == 'y' {
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' {
class { '::gnocchi::db::mysql':
password => hiera('CONFIG_GNOCCHI_DB_PW'),
host => '%',

View File

@ -90,7 +90,7 @@ class packstack::mariadb::services_remote () {
}
}
if hiera('CONFIG_GNOCCHI_INSTALL') == 'y' {
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' {
remote_database { 'gnocchi':
ensure => 'present',
charset => 'utf8',

View File

@ -168,10 +168,6 @@ if hiera('CONFIG_PROVISION_TEMPEST') == 'y' {
include '::packstack::provision::tempest'
}
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' and hiera('CONFIG_GNOCCHI_INSTALL') == 'y' {
include '::packstack::keystone::gnocchi'
include '::packstack::gnocchi'
}
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' and hiera('CONFIG_PANKO_INSTALL') == 'y' {
include '::packstack::keystone::panko'
@ -179,6 +175,10 @@ if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' and hiera('CONFIG_PANKO_INSTALL') =
}
if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' {
# setup gnocchi
include '::packstack::keystone::gnocchi'
include '::packstack::gnocchi'
# setup ceilometer
include '::packstack::keystone::ceilometer'
include '::packstack::ceilometer::rabbitmq'
include '::packstack::ceilometer'

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Remove CONFIG_GNOCCHI_INSTALL command line option and make gnocchi install
part of ceilometer install. We will always need gnocchi for ceilometer, so
this makes sense and one less option for user to worry about.

View File

@ -22,7 +22,6 @@ $SUDO packstack ${ADDITIONAL_ARGS} \
--default-password="packstack" \
--os-aodh-install=n \
--os-ceilometer-install=n \
--os-gnocchi-install=n \
--os-swift-install=n \
--os-manila-install=y \
--os-horizon-ssl=y \

View File

@ -23,7 +23,6 @@ $SUDO packstack ${ADDITIONAL_ARGS} \
--default-password="packstack" \
--os-aodh-install=n \
--os-ceilometer-install=n \
--os-gnocchi-install=n \
--os-cinder-install=n \
--os-horizon-install=n \
--glance-backend=swift \