Merge "Enable RabbitMQ feature flags pre-upgrade"

This commit is contained in:
Zuul 2024-05-31 21:35:45 +00:00 committed by Gerrit Code Review
commit 70c6da93b7
2 changed files with 18 additions and 0 deletions

View File

@ -43,6 +43,19 @@
tags: tags:
- rabbitmq - rabbitmq
# Stable feature flags must be enabled pre-upgrade
# https://www.rabbitmq.com/docs/feature-flags#version-compatibility
- name: Enable stable feature flags pre-upgrade
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}[0]"
gather_facts: false
user: root
tasks:
- name: Running feature flags tasks from the role
import_role:
name: rabbitmq_server
tasks_from: rabbitmq_feature_flags.yml
when: rabbitmq_upgrade | default(false) | bool
# The cluster must be stopped when doing major/minor upgrades # The cluster must be stopped when doing major/minor upgrades
# http://www.rabbitmq.com/clustering.html#upgrading # http://www.rabbitmq.com/clustering.html#upgrading
- name: Stop RabbitMQ nodes that are not the upgrader - name: Stop RabbitMQ nodes that are not the upgrader

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
Stable RabbitMQ feature flags will be enabled automatically pre-upgrade
in order to prevent failures during the upgrade process.