Workaround rabbitmq-server issue #3369

Change-Id: I3c2751da86492c8659252cf5d7b691ce2cc111cf
This commit is contained in:
Jonathan Heathcote
2025-02-07 12:32:16 +00:00
parent 858b79056d
commit 0139ac0cdf

View File

@@ -26,6 +26,16 @@
- name: Set node for maintenance state
ansible.builtin.command: rabbitmq-upgrade drain --quiet
changed_when: false
# NOTE(mossblaser) The rabbitmq-upgrade drain command appears to occasionally
# return status 69 despite success:
#
# https://github.com/rabbitmq/rabbitmq-server/issues/3369
#
# Since missing this step in the worst case should just result in a less
# graceful failover, tolerating the failure is appropriate whilst this issue
# remains.
register: _rabbitmq_upgrade_drain
failed_when: _rabbitmq_upgrade_drain.rc not in [0, 69]
- name: Pause to allow node to sync
ansible.builtin.pause: