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: Ia7fc7b8d33c3c08e89310e30d90109d6b56f2672
This commit is contained in:
Dmitriy Rabotyagov 2024-04-24 11:51:55 +02:00
parent 1f4d83ef84
commit c977bb1d11
2 changed files with 6 additions and 0 deletions

View File

@ -166,6 +166,9 @@ keystone_oslomsg_notify_policies: []
## RabbitMQ integration ## RabbitMQ integration
keystone_oslomsg_rabbit_quorum_queues: "{{ oslomsg_rabbit_quorum_queues | default(True) }}" keystone_oslomsg_rabbit_quorum_queues: "{{ oslomsg_rabbit_quorum_queues | default(True) }}"
keystone_oslomsg_rabbit_transient_quorum_queues: "{{ oslomsg_rabbit_transient_quorum_queues | default(keystone_oslomsg_rabbit_quorum_queues) }}"
keystone_oslomsg_rabbit_queue_manager: "{{ oslomsg_rabbit_queue_manager | default(keystone_oslomsg_rabbit_quorum_queues) }}"
keystone_oslomsg_rabbit_stream_fanout: "{{ oslomsg_rabbit_stream_fanout | default(keystone_oslomsg_rabbit_quorum_queues) }}"
keystone_oslomsg_rabbit_quorum_delivery_limit: "{{ oslomsg_rabbit_quorum_delivery_limit | default(0) }}" keystone_oslomsg_rabbit_quorum_delivery_limit: "{{ oslomsg_rabbit_quorum_delivery_limit | default(0) }}"
keystone_oslomsg_rabbit_quorum_max_memory_bytes: "{{ oslomsg_rabbit_quorum_max_memory_bytes | default(0) }}" keystone_oslomsg_rabbit_quorum_max_memory_bytes: "{{ oslomsg_rabbit_quorum_max_memory_bytes | default(0) }}"

View File

@ -29,6 +29,9 @@ transport_url = {{ keystone_oslomsg_rpc_transport }}://{% for host in keystone_o
[oslo_messaging_rabbit] [oslo_messaging_rabbit]
rabbit_quorum_queue = {{ keystone_oslomsg_rabbit_quorum_queues }} rabbit_quorum_queue = {{ keystone_oslomsg_rabbit_quorum_queues }}
transient_quorum_queue = {{ keystone_oslomsg_rabbit_transient_quorum_queues }}
use_queue_manager = {{ keystone_oslomsg_rabbit_queue_manager }}
rabbit_stream_fanout = {{ keystone_oslomsg_rabbit_stream_fanout }}
rabbit_quorum_delivery_limit = {{ keystone_oslomsg_rabbit_quorum_delivery_limit }} rabbit_quorum_delivery_limit = {{ keystone_oslomsg_rabbit_quorum_delivery_limit }}
rabbit_quorum_max_memory_bytes = {{ keystone_oslomsg_rabbit_quorum_max_memory_bytes }} rabbit_quorum_max_memory_bytes = {{ keystone_oslomsg_rabbit_quorum_max_memory_bytes }}
{% endif %} {% endif %}