From b8ff8817a1f730fa0db56a1863129fdd6089db6e Mon Sep 17 00:00:00 2001 From: Matt Crees Date: Thu, 27 Feb 2025 11:01:34 +0000 Subject: [PATCH] Deploy OS capacity after overcloud service upgrade We only started enabling this by default in Caracal, so this needs to get deployed as part of an Antelope->Caracal upgrade. Otherwise, the haproxy and grafana config gets put in place without the exporter being present. --- doc/source/operations/upgrading-openstack.rst | 15 +++++++++++++++ .../post.d/deploy-os-capacity-exporter.yml | 1 + 2 files changed, 16 insertions(+) create mode 120000 etc/kayobe/hooks/overcloud-service-upgrade/post.d/deploy-os-capacity-exporter.yml diff --git a/doc/source/operations/upgrading-openstack.rst b/doc/source/operations/upgrading-openstack.rst index ee91ae326c..ec58a8d8fb 100644 --- a/doc/source/operations/upgrading-openstack.rst +++ b/doc/source/operations/upgrading-openstack.rst @@ -176,6 +176,21 @@ authentication will fail if this configuration is absent. See `upstream Keystone change `__ for more details. +OS Capacity exporter and dashboard enabled by default +----------------------------------------------------- + +The OS Capacity exporter will automatically be deployed after the upgrade. +During the upgrade, HAProxy config, Prometheus config and Grafana dashboards +will also be updated to use the exporter. If you want to disable this, change +the following in ``kayobe-config/etc/kayobe/stackhpc-monitoring.yml``: + +.. code-block:: yaml + + # Whether the OpenStack Capacity exporter is enabled. + # Enabling this flag will result in HAProxy configuration and Prometheus scrape + # targets being templated during deployment. + stackhpc_enable_os_capacity: false + Known issues ============ diff --git a/etc/kayobe/hooks/overcloud-service-upgrade/post.d/deploy-os-capacity-exporter.yml b/etc/kayobe/hooks/overcloud-service-upgrade/post.d/deploy-os-capacity-exporter.yml new file mode 120000 index 0000000000..0cc70aace5 --- /dev/null +++ b/etc/kayobe/hooks/overcloud-service-upgrade/post.d/deploy-os-capacity-exporter.yml @@ -0,0 +1 @@ +../../../ansible/deploy-os-capacity-exporter.yml \ No newline at end of file