From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 9FFC042062A for ; Sun, 3 Mar 2024 10:13:15 +0100 (CET) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5133bd7eb47so1037354e87.3 for ; Sun, 03 Mar 2024 01:13:15 -0800 (PST) From: Su Yue To: drbd-dev@lists.linbit.com Subject: [PATCH 2/2] crm-fence-peer.9.sh: use join of node_state to judge whether node is banned Date: Sun, 3 Mar 2024 17:12:59 +0800 Message-ID: <20240303091259.5045-2-l@damenly.org> In-Reply-To: <20240303091259.5045-1-l@damenly.org> References: <20240303091259.5045-1-l@damenly.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: lars.ellenberg@linbit.com List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Su Yue crmd in node_state can't be "banned". join should be used instead of crmd. Signed-off-by: Su Yue --- 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 a3353a7354a6..b326a1656c15 100755 --- a/scripts/crm-fence-peer.9.sh +++ b/scripts/crm-fence-peer.9.sh @@ -934,7 +934,7 @@ guess_if_pacemaker_will_fence() # for further inspiration, see pacemaker:lib/pengine/unpack.c, determine_online_status_fencing() [[ -z $in_ccm ]] && will_fence=true - [[ $crmd = "banned" ]] && will_fence=true + [[ $join = "banned" ]] && will_fence=true if [[ ${expected-down} = "down" && $in_ccm = "false" && $crmd != "online" ]]; then : "pacemaker considers this as clean down" elif [[ $in_ccm = false ]] || [[ $crmd != "online" ]]; then -- 2.44.0