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: I8299a2263b1e139d8cc6ae902ce5b45ec934836d
This commit is contained in:
Hemanth Nakkina
2023-08-25 16:32:20 +05:30
parent 51e7a3ed15
commit 93c1d232c5
3 changed files with 10 additions and 0 deletions

View File

@@ -246,3 +246,7 @@ options:
type: string
default:
description: RabbitMQ virtual host to request access on rabbitmq-server.
enable-telemetry-notifications:
type: boolean
default: False
description: Enable notifications to send to telemetry.

View File

@@ -24,6 +24,8 @@ connection = {{ database.connection }}
{% endif -%}
connection_recycle_time = 200
{% include "parts/section-oslo-notifications" %}
[{{ cinder_ceph.backend_name }}]
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_exclusive_cinder_pool = True

View File

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