|
|
74096c |
From 9036c9f0fd081c83c5c4fcd1ecba858421442777 Mon Sep 17 00:00:00 2001
|
|
|
74096c |
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
|
|
|
74096c |
Date: Tue, 10 Nov 2020 07:39:14 -0500
|
|
|
74096c |
Subject: [PATCH 479/479] ganesha-ha: revised regex exprs for --status
|
|
|
74096c |
|
|
|
74096c |
better whitespace in regex
|
|
|
74096c |
|
|
|
74096c |
This has worked for years, but somehow no longer works on rhel8
|
|
|
74096c |
|
|
|
74096c |
> Updates: #1000
|
|
|
74096c |
> Change-Id: I2c1a3537573d125608334772ba1a263c55407dd4
|
|
|
74096c |
> Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
|
|
74096c |
> https://github.com/gluster/glusterfs/commit/4026fe9a956238d8e4785cf39c3b7290eae90f03
|
|
|
74096c |
|
|
|
74096c |
BUG: 1895301
|
|
|
74096c |
Change-Id: I2c1a3537573d125608334772ba1a263c55407dd4
|
|
|
74096c |
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
|
|
74096c |
Reviewed-on: https://code.engineering.redhat.com/gerrit/217480
|
|
|
74096c |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
74096c |
---
|
|
|
74096c |
extras/ganesha/scripts/ganesha-ha.sh | 8 ++++----
|
|
|
74096c |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
74096c |
|
|
|
74096c |
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
74096c |
index 9790a71..491c61d 100644
|
|
|
74096c |
--- a/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
74096c |
+++ b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
74096c |
@@ -948,18 +948,18 @@ status()
|
|
|
74096c |
# check if the VIP and port block/unblock RAs are on the expected nodes
|
|
|
74096c |
for n in ${nodes[*]}; do
|
|
|
74096c |
|
|
|
74096c |
- grep -E -x "${n}-nfs_block \(ocf::heartbeat:portblock\): Started ${n}" > /dev/null 2>&1 ${scratch}
|
|
|
74096c |
+ grep -E -x "${n}-nfs_block +\(ocf::heartbeat:portblock\): +Started ${n}" > /dev/null 2>&1 ${scratch}
|
|
|
74096c |
result=$?
|
|
|
74096c |
((healthy+=${result}))
|
|
|
74096c |
- grep -E -x "${n}-cluster_ip-1 \(ocf::heartbeat:IPaddr\): Started ${n}" > /dev/null 2>&1 ${scratch}
|
|
|
74096c |
+ grep -E -x "${n}-cluster_ip-1 +\(ocf::heartbeat:IPaddr\): +Started ${n}" > /dev/null 2>&1 ${scratch}
|
|
|
74096c |
result=$?
|
|
|
74096c |
((healthy+=${result}))
|
|
|
74096c |
- grep -E -x "${n}-nfs_unblock \(ocf::heartbeat:portblock\): Started ${n}" > /dev/null 2>&1 ${scratch}
|
|
|
74096c |
+ grep -E -x "${n}-nfs_unblock +\(ocf::heartbeat:portblock\): +Started ${n}" > /dev/null 2>&1 ${scratch}
|
|
|
74096c |
result=$?
|
|
|
74096c |
((healthy+=${result}))
|
|
|
74096c |
done
|
|
|
74096c |
|
|
|
74096c |
- grep -E "\):\ Stopped|FAILED" > /dev/null 2>&1 ${scratch}
|
|
|
74096c |
+ grep -E "\): +Stopped|FAILED" > /dev/null 2>&1 ${scratch}
|
|
|
74096c |
result=$?
|
|
|
74096c |
|
|
|
74096c |
if [ ${result} -eq 0 ]; then
|
|
|
74096c |
--
|
|
|
74096c |
1.8.3.1
|
|
|
74096c |
|