From 0139ac0cdfe785ecb61e4fab400597ecb5e6de84 Mon Sep 17 00:00:00 2001 From: Jonathan Heathcote Date: Fri, 7 Feb 2025 12:32:16 +0000 Subject: [PATCH] Workaround rabbitmq-server issue #3369 Change-Id: I3c2751da86492c8659252cf5d7b691ce2cc111cf --- tasks/rabbitmq_upgrade_prep.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/rabbitmq_upgrade_prep.yml b/tasks/rabbitmq_upgrade_prep.yml index fc437e06..b856e329 100644 --- a/tasks/rabbitmq_upgrade_prep.yml +++ b/tasks/rabbitmq_upgrade_prep.yml @@ -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: