[Drbd-dev] [PATCH] pacemaker: fix the outdate return value of updating cib
Nick Wang
NWang at suse.com
Tue Sep 24 09:37:37 CEST 2019
pcmk_err_old_data(205) is internal return value for error
"Update was older than existing configuration" of cibadmin.
CRM will return CRM_EX_OLD(103) to fence-peer instead.
Refer to "lib/common/results.c" of pacemaker for the value.
Signed-off-by: Nick Wang <nwang at suse.com>
---
scripts/crm-fence-peer.9.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/crm-fence-peer.9.sh b/scripts/crm-fence-peer.9.sh
index 0417c7aa..a4522a2a 100755
--- a/scripts/crm-fence-peer.9.sh
+++ b/scripts/crm-fence-peer.9.sh
@@ -146,7 +146,7 @@ create_or_modify_constraint()
break
;;
- 205) : "205 aka pcmk_err_old_data ==> going to retry in a bit"
+ 103) : "103 CRM_EX_OLD, aka 205 pcmk_err_old_data ==> going to retry in a bit"
(( $SECONDS >= $timeout )) && break
sleep 1
continue
--
2.16.4
More information about the drbd-dev
mailing list