Skip to content

Commit 9d2f1b2

Browse files
Conditional removal and docs update
1 parent e60b0ae commit 9d2f1b2

File tree

5 files changed

+30
-33
lines changed

5 files changed

+30
-33
lines changed

doc/source/configuration/monitoring.rst

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -145,37 +145,28 @@ in your cloud. StackHPC Kayobe Config includes a playbook for manual
145145
deployment, and it's necessary that some variables are set before
146146
running this playbook.
147147

148-
To successfully deploy OpenStack Capacity, you are required to specify
149-
the OpenStack application credentials in ``kayobe/secrets.yml`` as:
148+
OpenStack Capacity is deployed automatically using a service deploy hook
149+
with the generated kolla-ansible admin credentials, you can override these
150+
by setting the authentication url, username, password, project name and
151+
project domain name in ``kayobe/stackhpc-monitoring.yml``:
150152

151153
.. code-block:: yaml
152154
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>
155+
os_capacity_auth_url: <keystone_auth_url>
156+
os_capacity_username: <openstack_username>
157+
os_capacity_password: <openstack_password_encrypted_with_vault>
158+
os_capacity_project_name: <openstack_project_name>
159+
os_capacity_domain_name: <openstack_project_domain_name>
156160
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-
164-
After defining your credentials, You may deploy OpenStack Capacity
161+
Additionally, you should ensure these credentials have the correct permissions
162+
for the exporter. After defining your credentials, You may redeploy OpenStack Capacity
165163
using the ``ansible/deploy-os-capacity-exporter.yml`` Ansible playbook
166164
via Kayobe.
167165

168166
.. code-block:: console
169167
170168
kayobe playbook run ansible/deploy-os-capacity-exporter.yml
171169
172-
It is required that you re-configure the Prometheus, Grafana and HAProxy
173-
services following deployment, to do this run the following Kayobe command.
174-
175-
.. code-block:: console
176-
177-
kayobe overcloud service reconfigure -kt grafana,prometheus,haproxy
178-
179170
If you notice ``HaproxyServerDown`` or ``HaproxyBackendDown`` prometheus
180171
alerts after deployment it's likely the os_exporter secrets have not been
181172
set correctly, double check you have entered the correct authentication

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% if stackhpc_enable_os_capacity | bool %}
21
{% raw %}
32
frontend os_capacity_frontend
43
mode http
@@ -22,4 +21,3 @@ backend os_capacity_backend
2221
server {{ host_name }} {{ host_ip }}:9000 check inter 2000 rise 2 fall 5
2322
{% endfor %}
2423
{% endraw %}
25-
{% endif %}

etc/kayobe/kolla/config/prometheus/prometheus.yml.d/70-oscapacity.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{% if stackhpc_enable_os_capacity | bool %}
21
{% raw %}
32
scrape_configs:
43
- job_name: os-capacity
@@ -11,4 +10,3 @@ scrape_configs:
1110
scheme: https
1211
{% endif %}
1312
{% endraw %}
14-
{% endif %}

etc/kayobe/stackhpc-monitoring.yml

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

1111
###############################################################################
12-
13-
# Exporter configuration
14-
15-
# Whether the OpenStack Capacity exporter is enabled.
16-
# Enabling this flag will result in HAProxy configuration and Prometheus scrape
17-
# targets being templated during deployment.
18-
stackhpc_enable_os_capacity: false
19-
20-
###############################################################################
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
features:
3+
- |
4+
Automatic deployment for OpenStack Capacity via a Kayobe service
5+
deploy hook using kolla admin credentials.
6+
issues:
7+
- |
8+
Will fail service deploy if correct authentication is not used for
9+
os_capacity exporter and if kolla credentials are invalid or do not
10+
have suitable permissions.
11+
upgrade:
12+
- |
13+
Remove application credentials used for OpenStack Capacity and replace
14+
with OpenStack username/password authentication. Also required to include
15+
OpenStack project name and project domain name.
16+
deprecations:
17+
- |
18+
Application credential support for OpenStack Capacity is deprecated.
19+
`stackhpc_enable_os_capacity` condtional variable is deprecated.

0 commit comments

Comments
 (0)