Skip to content

Commit 2ee61ee

Browse files
Conditional removal and docs update
1 parent 577ecae commit 2ee61ee

File tree

5 files changed

+36
-33
lines changed

5 files changed

+36
-33
lines changed

doc/source/configuration/monitoring.rst

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -145,38 +145,34 @@ 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_credential_id: <some_credential_id>
154-
secrets_os_capacity_credential_secret: <some_credential_secret>
155+
stackhpc_os_capacity_auth_url: <keystone_auth_url>
156+
stackhpc_os_capacity_username: <openstack_username>
157+
stackhpc_os_capacity_password: <openstack_password_encrypted_with_vault>
158+
stackhpc_os_capacity_project_name: <openstack_project_name>
159+
stackhpc_os_capacity_domain_name: <openstack_project_domain_name>
155160
156-
The Keystone authentication URL and OpenStack region can be changed
157-
from their defaults in ``stackhpc-monitoring.yml`` should you need to
158-
set a different OpenStack region for your cloud. The authentication
159-
URL is set to use ``kolla_internal_fqdn`` by default:
160-
161-
.. code-block:: yaml
162-
163-
stackhpc_os_capacity_auth_url: <some_authentication_url>
164-
stackhpc_os_capacity_openstack_region_name: <some_openstack_region>
165-
166-
Additionally, you are required to enable a conditional flag to allow
167-
HAProxy and Prometheus configuration to be templated during deployment.
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
163+
to disable certificate verification for the OpenStack Capacity exporter
164+
if your certificate is not signed by a trusted CA.
168165

169166
.. code-block:: yaml
170167
171-
stackhpc_enable_os_capacity: true
168+
stackhpc_os_capacity_openstack_verify: false
172169
173-
If you are deploying in a cloud with internal TLS, you may be required
174-
to disable certificate verification for the OpenStack Capacity exporter
175-
if your certificate is not signed by a trusted CA.
170+
The OpenStack region can be changed from it's default in ``stackhpc-monitoring.yml``
171+
should you need to set a different OpenStack region for your cloud:
176172

177173
.. code-block:: yaml
178174
179-
stackhpc_os_capacity_openstack_verify: false
175+
stackhpc_os_capacity_openstack_region_name: <some_openstack_region>
180176
181177
After defining your credentials, you may deploy OpenStack Capacity
182178
using the ``ansible/deploy-os-capacity-exporter.yml`` Ansible playbook

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: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ alertmanager_low_memory_threshold_gib: 5
1111
###############################################################################
1212
# Exporter configuration
1313

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
18-
19-
# Keystone authentication URL for OpenStack Capacity
20-
stackhpc_os_capacity_auth_url: "http{% if kolla_enable_tls_internal | bool %}s{% endif %}://{{ kolla_internal_fqdn }}:5000"
21-
2214
# OpenStack region for OpenStack Capacity
2315
stackhpc_os_capacity_openstack_region_name: "{{ openstack_region_name | default(RegionOne) }}"
2416

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)