Skip to content

Commit f3f71f9

Browse files
committed
fix(riak): poststart join script quickfix
ping as a non-root user inside the pod fails on some systems that do not allow raw sockets replacing ping with curl in poststart join script
1 parent 2e3baa2 commit f3f71f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riak/script/poststart.d/10-join-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [[ -z "$($RIAK_ADMIN cluster status | grep $HOSTNAME)" && ${COORDINATOR_NODE}
1818
#if [[ -z "$($RIAK_ADMIN cluster status | grep $COORDINATOR_NODE_HOST)" && ${HOSTNAME} != ${COORDINATOR_NODE}* ]]; then
1919
# Not already in this cluster and not the coordinator itself, so join
2020
echo "Connecting to cluster coordinator $COORDINATOR_NODE"
21-
ping -c 1 $COORDINATOR_NODE
21+
curl -s http://$COORDINATOR_NODE:$RK_MFN1_SERVICE_PORT_HTTP >/dev/null
2222
$RIAK_ADMIN cluster join riak@$COORDINATOR_NODE
2323
if [[ ! -z "($RIAK_ADMIN cluster status | grep ${HOSTNAME} | grep 'joining')" ]]; then
2424
if [[ -z "$($RIAK_ADMIN cluster plan | grep 'There are no staged changes')" ]]; then

0 commit comments

Comments
 (0)