RMQ: enable all stable feature flags at once

Also enable these after an upgrade.

Partial-Bug: #2058512
Change-Id: Ib9bdae2e25c2b6cce30e4c8024015ab5875bc1ff
This commit is contained in:
Matt Crees 2024-03-27 16:15:54 +00:00
parent b382471d02
commit 223556e4e2
4 changed files with 12 additions and 26 deletions

View File

@ -64,7 +64,7 @@
include_role:
name: rabbitmq
tasks_from: post-deploy.yml
when: kolla_action in ['deploy', 'reconfigure']
when: kolla_action in ['deploy', 'reconfigure', 'upgrade']
vars:
role_rabbitmq_cluster_cookie: '{{ rabbitmq_cluster_cookie }}'
role_rabbitmq_groups: rabbitmq

View File

@ -97,21 +97,4 @@ rabbitmq_plugins:
rabbitmq_enabled_plugins: "{{ rabbitmq_plugins | selectattr('enabled', 'equalto', true) | list }}"
rabbitmq_feature_flags:
- "quorum_queue"
- "implicit_default_bindings"
- "virtual_host_metadata"
- "maintenance_mode_status"
- "user_limits"
- "stream_queue"
- "classic_queue_type_delivery_support"
- "tracking_records_in_ets"
- "stream_single_active_consumer"
- "listener_records_in_ets"
- "feature_flags_v2"
- "direct_exchange_routing_v2"
- "classic_mirrored_queue_version"
- "stream_sac_coordinator_unblock_group"
- "restart_streams"
kolla_externally_managed_cert: False

View File

@ -1,10 +1,5 @@
---
- name: Enable feature flags
kolla_toolbox:
container_engine: "{{ kolla_container_engine }}"
module_name: "community.rabbitmq.rabbitmq_feature_flag"
module_args:
name: "{{ item }}"
user: root
- name: Enable all stable feature flags
command: "{{ kolla_container_engine }} exec rabbitmq rabbitmqctl enable_feature_flag all"
become: true
loop: "{{ rabbitmq_feature_flags }}"
changed_when: false

View File

@ -0,0 +1,8 @@
---
fixes:
- |
All stable RabbitMQ feature flags are now enabled during deployments,
reconfigures, and upgrades. As such, the variable
``rabbitmq_feature_flags`` is no longer required. This is a partial fix to
RabbitMQ SLURP support.
`LP#2049512 <https://launchpad.net/bugs/2058512>`__