Skip to content

Commit 702df15

Browse files
Various os_capacity fixes
1 parent 109649a commit 702df15

File tree

5 files changed

+32
-8
lines changed

5 files changed

+32
-8
lines changed

doc/source/configuration/monitoring.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ OpenStack Capacity
141141
==================
142142

143143
OpenStack Capacity allows you to see how much space you have avaliable
144-
in your cloud. StackHPC Kayobe Config includes this exporter by default
145-
and it's necessary that some variables are set to allow deployment.
144+
in your cloud. StackHPC Kayobe Config includes a playbook for manual
145+
deployment, and it's necessary that some variables are set to before
146+
running this playbook.
146147

147148
To successfully deploy OpenStack Capacity, you are required to specify
148149
the OpenStack application credentials in ``kayobe/secrets.yml`` as:
@@ -153,6 +154,13 @@ the OpenStack application credentials in ``kayobe/secrets.yml`` as:
153154
secrets_os_exporter_credential_id: <some_credential_id>
154155
secrets_os_exporter_credential_secret: <some_credential_secret>
155156
157+
Additionally, you are required to enable a conditional flag to allow
158+
HAProxy configuration to be templated to controllers during deployment.
159+
160+
.. code-block:: yaml
161+
162+
stackhpc_enable_os_capacity: true
163+
156164
After defining your credentials, You may deploy OpenStack Capacity
157165
using the ``ansible/deploy-os-capacity-exporter.yml`` Ansible playbook
158166
via Kayobe.

etc/kayobe/ansible/templates/os_capacity-clouds.yml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
clouds:
22
openstack:
33
auth:
4-
auth_url: "{{ secrets_os_exporter_auth_url }}"
5-
application_credential_id: "{{ secrets_os_exporter_credential_id }}"
6-
application_credential_secret: "{{ secrets_os_exporter_credential_secret }}"
4+
auth_url: "{{ secrets_os_capacity_auth_url }}"
5+
application_credential_id: "{{ secrets_os_capacity_credential_id }}"
6+
application_credential_secret: "{{ secrets_os_capacity_credential_secret }}"
77
region_name: "RegionOne"
88
interface: "internal"
99
identity_api_version: 3

etc/kayobe/kolla/config/haproxy/services.d/os_exporter.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if stackhpc_enable_os_capacity | bool %}
12
{% raw %}
23
frontend os_capacity_frontend
34
mode http
@@ -17,3 +18,4 @@ backend os_capacity_backend
1718
server {{ host_name }} {{ host_ip }}:9000 check inter 2000 rise 2 fall 5
1819
{% endfor %}
1920
{% endraw %}
21+
{% endif %}

etc/kayobe/stackhpc-monitoring.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@
99
alertmanager_low_memory_threshold_gib: 5
1010

1111
###############################################################################
12+
13+
###############################################################################
14+
# Exporter configuration
15+
16+
# Whether the OpenStack Capacity exporter is enabled.
17+
# Enabling this flag will result in HAProxy configuration being templated during
18+
# deployment.
19+
stackhpc_enable_os_capacity: false
20+
21+
###############################################################################

releasenotes/notes/os-capacity-94006f03f16583e4.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ upgrade:
99
- |
1010
To deploy the OpenStack Capacity Grafana dashboard, you must
1111
define OpenStack application credential variables:
12-
``secrets_os_exporter_auth_url``,
13-
``secrets_os_exporter_credential_id`` and
14-
``secrets_os_exporter_credential_secret`` as laid out in the
12+
``secrets_os_capacity_auth_url``,
13+
``secrets_os_capacity_credential_id`` and
14+
``secrets_os_capacity_credential_secret`` as laid out in the
1515
'Monitoring' documentation.
16+
17+
You must also enable the ``stackhpc_enable_os_capacity``
18+
flag for OpenStack Capacity HAProxy configuration to be
19+
templated.

0 commit comments

Comments
 (0)