summaryrefslogtreecommitdiff
path: root/devstack
diff options
context:
space:
mode:
authorgord chung <gord@live.ca>2017-03-10 21:48:24 +0000
committergord chung <gord@live.ca>2017-03-10 21:48:24 +0000
commitb1af14d06ac91524ec3a047589325154fc95bae1 (patch)
tree84c27aab85103a57debf7eb11cba796919fd52be /devstack
parentdd1f7c767690cd9da545106e5c35cd34a9b8436f (diff)
downloadceilometer-b1af14d06ac91524ec3a047589325154fc95bae1.tar.gz
remove ceilometer-collector condition when configuring storage
only the api really matter if we're storing in legacy storage. Change-Id: Id44face0c694f20d6c70bdbbf59cc32156fdd43f
Diffstat (limited to 'devstack')
-rw-r--r--devstack/plugin.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index 0e9280f1..4a670e02 100644
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -197,7 +197,7 @@ function _ceilometer_cleanup_apache_wsgi {
}
function _ceilometer_drop_database {
- if is_service_enabled ceilometer-collector ceilometer-api ; then
+ if is_service_enabled ceilometer-api ; then
if [ "$CEILOMETER_BACKEND" = 'mongodb' ] ; then
mongo ceilometer --eval "db.dropDatabase();"
fi
@@ -332,8 +332,11 @@ function configure_ceilometer {
configure_auth_token_middleware $CEILOMETER_CONF ceilometer $CEILOMETER_AUTH_CACHE_DIR
# Configure storage
- if is_service_enabled ceilometer-collector ceilometer-api; then
+ if is_service_enabled ceilometer-api; then
_ceilometer_configure_storage_backend
+ fi
+
+ if is_service_enabled ceilometer-collector; then
iniset $CEILOMETER_CONF collector workers $API_WORKERS
fi
@@ -360,7 +363,7 @@ function init_ceilometer {
sudo install -d -o $STACK_USER $CEILOMETER_AUTH_CACHE_DIR
rm -f $CEILOMETER_AUTH_CACHE_DIR/*
- if is_service_enabled ceilometer-collector ceilometer-api; then
+ if is_service_enabled ceilometer-api; then
if is_service_enabled mysql postgresql ; then
if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] || [ "$CEILOMETER_BACKEND" = 'es' ] ; then
recreate_database ceilometer
@@ -383,7 +386,7 @@ function install_ceilometer {
_ceilometer_prepare_coordination
fi
- if is_service_enabled ceilometer-collector ceilometer-api; then
+ if is_service_enabled ceilometer-api; then
_ceilometer_prepare_storage_backend
fi