diff options
| author | Alexandru Bogdan Pica <alexandru.pica@1and1.ro> | 2018-02-09 01:18:35 +0200 |
|---|---|---|
| committer | Alexandru Bogdan Pica <alexandru.pica@1and1.ro> | 2018-02-12 11:14:44 +0200 |
| commit | 603a7338795c611eca587dd27aa6ccd37396e898 (patch) | |
| tree | f77b5ff5197d8a9a0dee50be918c2c4bcf5fd824 | |
| parent | 30b45348cb71922e83dc21e6be261fec6e95fafe (diff) | |
| download | kolla-603a7338795c611eca587dd27aa6ccd37396e898.tar.gz kolla-603a7338795c611eca587dd27aa6ccd37396e898.zip | |
Fix ceilometer deployment
This change fixes the following issues:
- wrong sudoers command
- bad arguments for ceilometer-upgrade
- removes the deprecated storage backends,
as per https://review.openstack.org/#/c/512700/
Please note that due to the aforementioned issues, ceilometer
deployment was failing. I first encountered this issue when
attempting to upgrade from pike to queens.
Change-Id: Ibdfed9ea0a8e4aaf4fe3420a5885ea346998f1e7
Closes-Bug: 1741536
| -rw-r--r-- | docker/ceilometer/ceilometer-notification/extend_start.sh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/docker/ceilometer/ceilometer-notification/extend_start.sh b/docker/ceilometer/ceilometer-notification/extend_start.sh index 281cce3fa..630b60ecb 100644 --- a/docker/ceilometer/ceilometer-notification/extend_start.sh +++ b/docker/ceilometer/ceilometer-notification/extend_start.sh @@ -3,12 +3,8 @@ # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases # of the KOLLA_BOOTSTRAP variable being set, including empty. if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then - if [[ "${CEILOMETER_DATABASE_TYPE}" == "mysql" ]]; then - sudo -H -u ceilometer ceilometer-upgrade --skip-gnocchi-resource-types - elif [[ "${CEILOMETER_DATABASE_TYPE}" == "gnocchi" ]]; then - sudo -H -u ceilometer ceilometer-upgrade --skip-metering-database - elif [[ "${CEILOMETER_DATABASE_TYPE}" == "mongodb" ]]; then - echo "Ceilometer doesn't need to initialize a database when MongoDB is configured as the database back end." + if [[ "${CEILOMETER_DATABASE_TYPE}" == "gnocchi" ]]; then + ceilometer-upgrade else echo "Unsupported database type: ${CEILOMETER_DATABASE_TYPE}" exit 1 |
