Skip to content

Commit 7a95ca8

Browse files
Various os_capacity fixes
1 parent 15fbd12 commit 7a95ca8

File tree

7 files changed

+39
-11
lines changed

7 files changed

+39
-11
lines changed

.yamllint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ ignore: |
2020
.github/
2121
.gitlab/
2222
.gitlab-ci.yml
23+
*etc/kayobe/kolla/config/prometheus/prometheus.yml.d/70-oscapacity.yml

doc/source/configuration/monitoring.rst

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,25 @@ 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 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:
149150

150151
.. code-block:: yaml
151152
152-
secrets_os_exporter_auth_url: <some_auth_url>
153-
secrets_os_exporter_credential_id: <some_credential_id>
154-
secrets_os_exporter_credential_secret: <some_credential_secret>
153+
secrets_os_capacity_auth_url: <some_auth_url>
154+
secrets_os_capacity_credential_id: <some_credential_id>
155+
secrets_os_capacity_credential_secret: <some_credential_secret>
156+
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
155163
156164
After defining your credentials, You may deploy OpenStack Capacity
157165
using the ``ansible/deploy-os-capacity-exporter.yml`` Ansible playbook
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
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
1010
auth_type: "v3applicationcredential"
11+
{% if kolla_enable_tls_internal | bool %}
12+
verify: False
13+
{% endif %}

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)