|
|
3604df |
From 52e5980fc8216ac91006309a62609e33fcae929b Mon Sep 17 00:00:00 2001
|
|
|
3604df |
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
|
|
|
3604df |
Date: Wed, 22 Feb 2017 10:51:43 -0500
|
|
|
3604df |
Subject: [PATCH 295/300] common-ha: unable to start HA, Connection Error
|
|
|
3604df |
|
|
|
3604df |
See BZ 1284404. pcsd behavior has changed and pcsd will not accept
|
|
|
3604df |
connections until SSL certificates have fully propagated throughout
|
|
|
3604df |
all the nodes.
|
|
|
3604df |
|
|
|
3604df |
HA devels suggest a 12 second delay between the `pcs cluster setup ...`
|
|
|
3604df |
and the `pcs cluster start --all`
|
|
|
3604df |
|
|
|
3604df |
upstream:
|
|
|
3604df |
3.10, included in https://review.gluster.org/#/c/16692/
|
|
|
3604df |
3.9 https://review.gluster.org/#/c/16690/
|
|
|
3604df |
3.8 https://review.gluster.org/#/c/16691/
|
|
|
3604df |
upstream Change-ID: If94b6991a62f346dbead023c7e7f8282a995728c
|
|
|
3604df |
|
|
|
3604df |
Change-Id: I00865798906e4564272d9bbcbc9de45cfaf4b077
|
|
|
3604df |
BUG: 1424944
|
|
|
3604df |
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
|
|
3604df |
Reviewed-on: https://code.engineering.redhat.com/gerrit/98383
|
|
|
3604df |
Tested-by: Jiffin Thottan <jthottan@redhat.com>
|
|
|
3604df |
Reviewed-by: Jiffin Thottan <jthottan@redhat.com>
|
|
|
3604df |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
3604df |
---
|
|
|
3604df |
extras/ganesha/scripts/ganesha-ha.sh | 13 ++++++++-----
|
|
|
3604df |
1 file changed, 8 insertions(+), 5 deletions(-)
|
|
|
3604df |
|
|
|
3604df |
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
3604df |
index df9cf2e..0c3528b 100644
|
|
|
3604df |
--- a/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
3604df |
+++ b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
3604df |
@@ -192,13 +192,16 @@ setup_cluster()
|
|
|
3604df |
logger "pcs cluster setup ${RHEL6_PCS_CNAME_OPTION} ${name} ${servers} failed"
|
|
|
3604df |
exit 1;
|
|
|
3604df |
fi
|
|
|
3604df |
+
|
|
|
3604df |
+ # BZ 1284404, 1425110, allow time for SSL certs to propagate, until then
|
|
|
3604df |
+ # pcsd will not accept connections.
|
|
|
3604df |
+ sleep 12
|
|
|
3604df |
pcs cluster start --all
|
|
|
3604df |
- if [ $? -ne 0 ]; then
|
|
|
3604df |
- logger "pcs cluster start failed"
|
|
|
3604df |
- exit 1;
|
|
|
3604df |
- fi
|
|
|
3604df |
+ while [ $? -ne 0 ]; do
|
|
|
3604df |
+ sleep 2
|
|
|
3604df |
+ pcs cluster start --all
|
|
|
3604df |
+ done
|
|
|
3604df |
|
|
|
3604df |
- sleep 1
|
|
|
3604df |
# wait for the cluster to elect a DC before querying or writing
|
|
|
3604df |
# to the CIB. BZ 1334092
|
|
|
3604df |
crmadmin --dc_lookup --timeout=5000 > /dev/null 2>&1
|
|
|
3604df |
--
|
|
|
3604df |
2.9.3
|
|
|
3604df |
|