aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Weingärtner <rafael@apache.org>2020-04-07 15:51:41 -0300
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2020-04-11 09:49:41 +0000
commit3d587409ee068843cfa28710f09f65af48b69367 (patch)
tree96757fe7a98dbe6e872f5cf63f76b8a15bcf9dd2
parentf1f1d854594da23321ad94ae6358ecbdc119d18e (diff)
downloadkolla-3d587409ee068843cfa28710f09f65af48b69367.tar.gz
kolla-3d587409ee068843cfa28710f09f65af48b69367.zip
Allow operators to use "ceilometer-upgrade" parameters
Allow operators to use custom parameters with the ceilometer-upgrade command. This is quite useful when using the dynamic pollster subsystem; that sub-system provides flexibility to create and edit pollsters configs, which affects gnocchi resource-type configurations. However, Ceilometer uses default and hard-coded resource-type configurations; if one customizes some of its default resource-types, he/she can get into trouble during upgrades. Therefore, the only way to work around it is to use the "--skip-gnocchi-resource-types" flag. This PR introduces a method for operators to execute such customization, and many others if needed. Change-Id: Ice42d936476635b627b21dc8676fb7bc560cd3a9
-rw-r--r--docker/ceilometer/ceilometer-notification/extend_start.sh2
-rw-r--r--releasenotes/notes/allow-custom-ceilometer-upgrade-params-7c08446f59251cf0.yaml12
2 files changed, 13 insertions, 1 deletions
diff --git a/docker/ceilometer/ceilometer-notification/extend_start.sh b/docker/ceilometer/ceilometer-notification/extend_start.sh
index e9c60706a..cf2813f54 100644
--- a/docker/ceilometer/ceilometer-notification/extend_start.sh
+++ b/docker/ceilometer/ceilometer-notification/extend_start.sh
@@ -4,7 +4,7 @@
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
if [[ "${CEILOMETER_DATABASE_TYPE}" == "gnocchi" ]]; then
- ceilometer-upgrade
+ ceilometer-upgrade "${CEILOMETER_UPGRADE_PARAMS}"
else
echo "Unsupported database type: ${CEILOMETER_DATABASE_TYPE}"
exit 1
diff --git a/releasenotes/notes/allow-custom-ceilometer-upgrade-params-7c08446f59251cf0.yaml b/releasenotes/notes/allow-custom-ceilometer-upgrade-params-7c08446f59251cf0.yaml
new file mode 100644
index 000000000..2e8073080
--- /dev/null
+++ b/releasenotes/notes/allow-custom-ceilometer-upgrade-params-7c08446f59251cf0.yaml
@@ -0,0 +1,12 @@
+---
+features:
+ - |
+ Allow operators to use custom parameters with the ceilometer-upgrade
+ command. This is quite useful when using the dynamic pollster subsystem;
+ that sub-system provides flexibility to create and edit pollsters configs,
+ which affects gnocchi resource-type configurations. However, Ceilometer
+ uses default and hard-coded resource-type configurations; if one customizes
+ some of its default resource-types, he/she can get into trouble during
+ upgrades. Therefore, the only way to work around it is to use the
+ "--skip-gnocchi-resource-types" flag. This release introduces a method for
+ operators to execute such customization, and many others if needed.