/etc/init.d/garb requires nc and produces an nc error if no cluster nodes are up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Galera |
New
|
Undecided
|
Unassigned |
Bug Description
Originally logged here : https:/
Suggested patch :
=== modified file 'garb/files/
--- garb/files/garb.sh 2013-08-23 13:12:53 +0000
+++ garb/files/garb.sh 2014-07-12 00:02:22 +0000
@@ -116,10 +116,12 @@
# Find a working node
for ADDRESS in ${GALERA_NODES} 0; do
- HOST=$(echo $ADDRESS | cut -d \: -f 1 )
- PORT=$(echo $ADDRESS | cut -d \: -f 2 )
- PORT=${
- nc -z $HOST $PORT >/dev/null && break
+ if [ ${ADDRESS} != "0" ]; then
+ HOST=$(echo $ADDRESS | cut -d \: -f 1 )
+ PORT=$(echo $ADDRESS | cut -d \: -f 2 )
+ PORT=${
+ nc -z $HOST $PORT >/dev/null && break
+ fi
done
if [ ${ADDRESS} == "0" ]; then
=== modified file 'scripts/
--- scripts/
+++ scripts/
@@ -34,7 +34,7 @@
Vendor: Codership Oy
Provides: %{name} wsrep
Obsoletes: %{name}
-Requires: chkconfig
+Requires: chkconfig nc
#Requires: boost-program-
# BuildRequires: scons check boost-devel
# This will be rm -rf