From 5f244d7f1c3c772bdf75e303d04ba917e88f1a5f Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen Date: Mar 09 2021 06:18:53 +0000 Subject: Feature: cibsecret: use crmadmin -N (which also lists guest and remote nodes) to get nodes to sync to patch_name: 031-cibsecret.patch present_in_specfile: true location_in_specfile: 31 squash_commits: true --- diff --git a/tools/cibsecret.in b/tools/cibsecret.in index 8923a70..6326bf0 100644 --- a/tools/cibsecret.in +++ b/tools/cibsecret.in @@ -182,9 +182,9 @@ get_live_peers() { [ $? -eq 0 ] || fatal $CRM_EX_UNAVAILABLE "couldn't get local node name" # Get a list of all other cluster nodes - GLP_ALL_PEERS="$(crm_node -l)" + GLP_ALL_PEERS="$(crmadmin -N -q)" [ $? -eq 0 ] || fatal $CRM_EX_UNAVAILABLE "couldn't determine cluster nodes" - GLP_ALL_PEERS="$(echo "$GLP_ALL_PEERS" | awk '{print $2}' | grep -v "^${GLP_LOCAL_NODE}$")" + GLP_ALL_PEERS="$(echo "$GLP_ALL_PEERS" | grep -v "^${GLP_LOCAL_NODE}$")" # Make a list of those that respond to pings if [ "$(id -u)" = "0" ] && which fping >/dev/null 2>&1; then