From 23b018422095fc0f5b89bd4b2a6ee08a576b974d Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 3 May 2024 19:31:26 +0200 Subject: [PATCH] Implement variables to address oslo.messaging improvements During last release cycle oslo.messaging has landed [1] series of extremely useful changes that are designed to implement modern messaging techniques for rabbitmq quorum queues. Since these changes are breaking and require queues being re-created, it makes total sense to align these with migration to quorum queues by default. [1] https://review.opendev.org/q/topic:%22bug-2031497%22 Change-Id: Id608c4ea0638c7ebd242399726d493f767b0f04b --- defaults/main.yml | 3 +++ templates/designate.conf.j2 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 3c493d8..42b2b71 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -130,6 +130,9 @@ designate_oslomsg_notify_policies: [] ## RabbitMQ integration designate_oslomsg_rabbit_quorum_queues: "{{ oslomsg_rabbit_quorum_queues | default(True) }}" +designate_oslomsg_rabbit_transient_quorum_queues: "{{ oslomsg_rabbit_transient_quorum_queues | default(designate_oslomsg_rabbit_quorum_queues) }}" +designate_oslomsg_rabbit_queue_manager: "{{ oslomsg_rabbit_queue_manager | default(designate_oslomsg_rabbit_quorum_queues) }}" +designate_oslomsg_rabbit_stream_fanout: "{{ oslomsg_rabbit_stream_fanout | default(designate_oslomsg_rabbit_quorum_queues) }}" designate_oslomsg_rabbit_quorum_delivery_limit: "{{ oslomsg_rabbit_quorum_delivery_limit | default(0) }}" designate_oslomsg_rabbit_quorum_max_memory_bytes: "{{ oslomsg_rabbit_quorum_max_memory_bytes | default(0) }}" diff --git a/templates/designate.conf.j2 b/templates/designate.conf.j2 index 56c8cff..82ff78e 100644 --- a/templates/designate.conf.j2 +++ b/templates/designate.conf.j2 @@ -32,6 +32,9 @@ ssl = {{ designate_oslomsg_rpc_use_ssl }} rabbit_notification_exchange = designate rabbit_notification_topic = notifications rabbit_quorum_queue = {{ designate_oslomsg_rabbit_quorum_queues }} +transient_quorum_queue = {{ designate_oslomsg_rabbit_transient_quorum_queues }} +use_queue_manager = {{ designate_oslomsg_rabbit_queue_manager }} +rabbit_stream_fanout = {{ designate_oslomsg_rabbit_stream_fanout }} rabbit_quorum_delivery_limit = {{ designate_oslomsg_rabbit_quorum_delivery_limit }} rabbit_quorum_max_memory_bytes = {{ designate_oslomsg_rabbit_quorum_max_memory_bytes }}