Skip to contentSkip to conversation

pacemaker: fix the outdate return value of updating cib

PATCH New Nick Wang 1 participant 1 message Sep 24, 2019 DRBD driver

lore
Share & tools
lore

Nick Wang

author
#0 lore raw

PATCH 1/1 pacemaker: fix the outdate return value of updating cib

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.

---
 scripts/crm-fence-peer.9.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/crm-fence-peer.9.sh +1 -1
index 0417c7aa..a4522a2a 100755
@@ -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
Signature · 1 line
2.16.4