Skip to content

Commit 8972cad

Browse files
Conditional removal and docs update
1 parent f016417 commit 8972cad

File tree

5 files changed

+32
-30
lines changed

5 files changed

+32
-30
lines changed

doc/source/configuration/monitoring.rst

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -145,45 +145,36 @@ 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-
If you are deploying in a cloud with internal TLS, you may be required
161+
Additionally, you should ensure these credentials have the correct permissions
162+
for the exporter. If you are deploying in a cloud with internal TLS, you may be required
165163
to disable certificate verification for the OpenStack Capacity exporter
166164
if your certificate is not signed by a trusted CA.
167165

168166
.. code-block:: yaml
169167
170168
stackhpc_os_capacity_openstack_verify: false
171169
172-
After defining your credentials, You may deploy OpenStack Capacity
170+
After defining your credentials, You may redeploy OpenStack Capacity
173171
using the ``ansible/deploy-os-capacity-exporter.yml`` Ansible playbook
174172
via Kayobe.
175173

176174
.. code-block:: console
177175
178176
kayobe playbook run ansible/deploy-os-capacity-exporter.yml
179177
180-
It is required that you re-configure the Prometheus, Grafana and HAProxy
181-
services following deployment, to do this run the following Kayobe command.
182-
183-
.. code-block:: console
184-
185-
kayobe overcloud service reconfigure -kt grafana,prometheus,haproxy
186-
187178
If you notice ``HaproxyServerDown`` or ``HaproxyBackendDown`` prometheus
188179
alerts after deployment it's likely the os_exporter secrets have not been
189180
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,6 +1,5 @@
11
# yamllint disable-file
22
---
3-
{% if stackhpc_enable_os_capacity | bool %}
43
{% raw %}
54
scrape_configs:
65
- job_name: os-capacity
@@ -13,4 +12,3 @@ scrape_configs:
1312
scheme: https
1413
{% endif %}
1514
{% endraw %}
16-
{% endif %}

etc/kayobe/stackhpc-monitoring.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99
alertmanager_low_memory_threshold_gib: 5
1010

1111
###############################################################################
12-
# Exporter configuration
1312

14-
# Whether the OpenStack Capacity exporter is enabled.
15-
# Enabling this flag will result in HAProxy configuration and Prometheus scrape
16-
# targets being templated during deployment.
17-
stackhpc_enable_os_capacity: false
13+
# Exporter configuration
1814

1915
# Whether TLS certificate verification is enabled for the OpenStack Capacity
2016
# exporter during Keystone authentication.
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)