|
|
9f5ccc |
From 05bd0226716516d37ead173c7d6924225bd474db Mon Sep 17 00:00:00 2001
|
|
|
9f5ccc |
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
|
|
|
9f5ccc |
Date: Wed, 6 May 2020 07:24:38 -0400
|
|
|
9f5ccc |
Subject: [PATCH 371/375] common-ha: cluster status shows "FAILOVER" when
|
|
|
9f5ccc |
actually HEALTHY
|
|
|
9f5ccc |
|
|
|
9f5ccc |
pacemaker devs change the format of the ouput of `pcs status`
|
|
|
9f5ccc |
|
|
|
9f5ccc |
Expected to find a line in the format:
|
|
|
9f5ccc |
|
|
|
9f5ccc |
Online: ....
|
|
|
9f5ccc |
|
|
|
9f5ccc |
but now it's
|
|
|
9f5ccc |
|
|
|
9f5ccc |
* Online: ...
|
|
|
9f5ccc |
|
|
|
9f5ccc |
And the `grep -E "^Online:" no longer finds the list of nodes that
|
|
|
9f5ccc |
are online.
|
|
|
9f5ccc |
|
|
|
9f5ccc |
Also other lines now have '*' in first few characters of the line
|
|
|
9f5ccc |
throwing off `grep -x ...`
|
|
|
9f5ccc |
|
|
|
9f5ccc |
https://review.gluster.org/#/c/glusterfs/+/24403/
|
|
|
9f5ccc |
|
|
|
9f5ccc |
Change-Id: Ia04a89e76914f2a455a755f0a93fa415f60aefd0
|
|
|
9f5ccc |
BUG: 1823706
|
|
|
9f5ccc |
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
|
|
9f5ccc |
Reviewed-on: https://code.engineering.redhat.com/gerrit/199442
|
|
|
9f5ccc |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
9f5ccc |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
9f5ccc |
---
|
|
|
9f5ccc |
extras/ganesha/scripts/ganesha-ha.sh | 5 +++--
|
|
|
9f5ccc |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
9f5ccc |
|
|
|
9f5ccc |
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
9f5ccc |
index df333a1..4ecf91b 100644
|
|
|
9f5ccc |
--- a/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
9f5ccc |
+++ b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
9f5ccc |
@@ -919,8 +919,9 @@ status()
|
|
|
9f5ccc |
local index=1
|
|
|
9f5ccc |
local nodes
|
|
|
9f5ccc |
|
|
|
9f5ccc |
- # change tabs to spaces, strip leading spaces
|
|
|
9f5ccc |
- pcs status | sed -e "s/\t/ /g" -e "s/^[ ]*//" > ${scratch}
|
|
|
9f5ccc |
+ # change tabs to spaces, strip leading spaces, including any
|
|
|
9f5ccc |
+ # new '*' at the beginning of a line introduced in pcs-0.10.x
|
|
|
9f5ccc |
+ pcs status | sed -e "s/\t/ /g" -e "s/^[ ]*\*//" -e "s/^[ ]*//" > ${scratch}
|
|
|
9f5ccc |
|
|
|
9f5ccc |
nodes[0]=${1}; shift
|
|
|
9f5ccc |
|
|
|
9f5ccc |
--
|
|
|
9f5ccc |
1.8.3.1
|
|
|
9f5ccc |
|