File cibadmin-return-code-convert.patch of Package drbd-utils.18415

commit 144c8cc1dae4e77b459c9388b29930af1b6a4b0f
Author: Lars Ellenberg <lars.ellenberg@linbit.com>
Date:   Mon Jan 27 22:01:57 2020 +0100

    crm-fence-peer.9.sh: fix Pacemaker 2 compat, expect different exit code of cibadmin

diff --git a/scripts/crm-fence-peer.9.sh b/scripts/crm-fence-peer.9.sh
index 0417c7aa..94c32747 100755
--- a/scripts/crm-fence-peer.9.sh
+++ b/scripts/crm-fence-peer.9.sh
@@ -146,7 +146,10 @@ create_or_modify_constraint()
 			break
 			;;
 
-		205)	: "205 aka pcmk_err_old_data ==> going to retry in a bit"
+			# see pacemaker commit f7e5558d6 Refactor: all: use consistent exit status codes
+			# Relevant for Pacemaker 2.0+
+			# 103/CRM_EX_OLD is Pacemaker 2, 205 aka pcmk_err_old_data is Pacemaker 1.1
+		103|205)	: "103 aka CRM_EX_OLD, or 205 aka pcmk_err_old_data ==> going to retry in a bit"
 			(( $SECONDS >= $timeout )) && break
 			sleep 1
 			continue
openSUSE Build Service is sponsored by