From edde66b9a0dae24a9288da240455890c2f100282 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 31 Jul 2019 13:07:18 -0400 Subject: [PATCH] config: disable notifications by default We are currently pushing out notifications even if Ceilometer is not enabled resulting in huge queues. Let's not do that. Change-Id: I0f8f5e3beaf9eca9127f1a37ffa93e0a5dac2974 --- templates/nova.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index 5aa98cce..67ea4f3d 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -76,7 +76,7 @@ instance_usage_audit_period = hour {% set _ = notification_topics.append(nova_notifications_designate) %} {% endif %} topics = {{ notification_topics | join(',') }} -driver = messagingv2 +driver = {{ (nova_ceilometer_enabled | bool) | ternary('messagingv2', 'noop') }} transport_url = {{ nova_oslomsg_notify_transport }}://{% for host in nova_oslomsg_notify_servers.split(',') %}{{ nova_oslomsg_notify_userid }}:{{ nova_oslomsg_notify_password }}@{{ host }}:{{ nova_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ nova_oslomsg_notify_vhost }}{% if nova_oslomsg_notify_use_ssl | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}