Enable notifications

Currently the notifications are not sent by the service.
Add configuration parameter enable-telemetry-notifications
to toggle notifications. Set notification driver to messagingv2
when the parameter is set to True.

Change-Id: I91b614cad9dbcf154b957df48cc52b4096ed897f
This commit is contained in:
Hemanth Nakkina 2023-08-25 16:36:54 +05:30
parent 73275af311
commit f686472813
3 changed files with 10 additions and 0 deletions

View File

@ -255,3 +255,7 @@ options:
description: |
Value of bluestore compression max blob size for solid state media on
pools requested by this charm.
enable-telemetry-notifications:
type: boolean
default: False
description: Enable notifications to send to telemetry.

View File

@ -22,6 +22,8 @@ enabled_backends = filestore:file
{% include "parts/section-service-user" %}
{% include "parts/section-oslo-notifications" %}
[glance_store]
{% if ceph.auth %}
default_backend = ceph

View File

@ -0,0 +1,4 @@
{% if options.enable_telemetry_notifications -%}
[oslo_messaging_notifications]
driver = messagingv2
{%- endif %}