69b8b7a49f
It seems [1] has introduced a slight regression in that it tries
by default to pass an empty string to ceilometer-upgrade which
makes it fail:
ceilometer-upgrade: error: unrecognized arguments:
(note there is nothing more on that line)
This patch fixes that by allowing the params to be of any number,
including zero.
Backport to Ussuri.
[1] 3d587409ee
Change-Id: I989a1dd30d1656b5c1fda7a46abbf5f265fbb72c
Closes-Bug: #1884919
15 lines
479 B
Bash
15 lines
479 B
Bash
#!/bin/bash
|
|
|
|
# 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}" == "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
|
|
fi
|