diff options
author | Mehdi Abaakouk <sileht@sileht.net> | 2018-01-16 09:15:39 +0100 |
---|---|---|
committer | Mehdi Abaakouk <sileht@redhat.com> | 2018-01-16 09:49:13 +0100 |
commit | 26d26d6776b2e3090682cee6db781f7bd45b00af (patch) | |
tree | d97f258a57d406a452475801588278f5fdcdcf7d /devstack | |
parent | f08653117f393858bd2837b57e690d16d222a567 (diff) | |
download | ceilometer-26d26d6776b2e3090682cee6db781f7bd45b00af.tar.gz |
devstack: fix gnocchi database setup
With postgresql, we must wait at least post-config to
create the database.
Change-Id: I72ce33828febb48136e239d0e70f07674aef9d4a
Diffstat (limited to 'devstack')
-rw-r--r-- | devstack/plugin.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 3d951a8a..45bb2fac 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -165,6 +165,11 @@ function install_gnocchi { else pip_install gnocchi[redis,${DATABASE_TYPE},keystone] uwsgi fi +} + +function configure_gnocchi { + echo_summary "Configure Gnocchi" + recreate_database gnocchi sudo install -d -o $STACK_USER -m 755 $GNOCCHI_CONF_DIR @@ -232,6 +237,7 @@ function _ceilometer_configure_storage_backend { fi elif [ "$CEILOMETER_BACKEND" = 'gnocchi' ] ; then sed -i "s/gnocchi:\/\//gnocchi:\/\/?archive_policy=${GNOCCHI_ARCHIVE_POLICY}\&filter_project=gnocchi_swift/" $CEILOMETER_CONF_DIR/event_pipeline.yaml $CEILOMETER_CONF_DIR/pipeline.yaml + ! [[ $DEVSTACK_PLUGINS =~ 'gnocchi' ]] && configure_gnocchi else die $LINENO "Unable to configure unknown CEILOMETER_BACKEND $CEILOMETER_BACKEND" fi |