ceilometer: do not fail when using an unsupported database type

This is necessary if e.g. Prometheus is used. Then the
ceilometer-upgrade is not needed.

Signed-off-by: Christian Berendt <berendt@betacloud-solutions.de>
Change-Id: I8690e5543e6b5f37f41fe35f659910fc869c034f
(cherry picked from commit ea8592b077)
This commit is contained in:
Christian Berendt 2020-11-27 11:35:51 +01:00 committed by Marcin Juszkiewicz
parent 775b65e1a8
commit 87ce9c63d0
1 changed files with 0 additions and 3 deletions

View File

@ -5,9 +5,6 @@
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
if [[ "${CEILOMETER_DATABASE_TYPE}" == "gnocchi" ]]; then
ceilometer-upgrade ${CEILOMETER_UPGRADE_PARAMS}
else
echo "Unsupported database type: ${CEILOMETER_DATABASE_TYPE}"
exit 1
fi
sudo chown -R ceilometer: /var/lib/ceilometer/
exit 0