From c28aca72289c6526abc48d08f669c50e13ef4ab5 Mon Sep 17 00:00:00 2001 From: hari Date: Mon, 23 May 2016 12:07:21 +0530 Subject: Glusterd: printing the node details on error message of rebalance back-port of : http://review.gluster.org/#/c/14495 Problem: on the rebalance start with one of the glusterd being down among the volume, the error message says only about the brick path. Fix: adding the node details >Change-Id: I5827d3a9a15b0461c9ce3a51c0b16246ca58f335 >BUG: 1337899 >Signed-off-by: hari Change-Id: I3075f3a73e289dfe577742a3d5086531026f567d BUG: 1339923 Signed-off-by: hari gowtham Reviewed-on: http://review.gluster.org/14540 NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Tested-by: hari gowtham Reviewed-by: Zhou Zhengping Smoke: Gluster Build System Reviewed-by: Jeff Darcy --- xlators/mgmt/glusterd/src/glusterd-rebalance.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c index 9065c6ce419..2781b5d9f90 100644 --- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c +++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c @@ -722,16 +722,18 @@ glusterd_op_stage_rebalance (dict_t *dict, char **op_errstr) peerinfo = glusterd_peerinfo_find_by_uuid (brickinfo->uuid); if (!peerinfo) { - gf_asprintf (op_errstr, "Host node of " - "brick %s doesn't belong " - "to cluster", + gf_asprintf (op_errstr, "Host node %s " + "of brick %s doesn't " + "belong to cluster", + brickinfo->hostname, brickinfo->path); ret = -1; rcu_read_unlock (); goto out; } else if (!peerinfo->connected) { - gf_asprintf (op_errstr, "Host node of " - "brick %s is down", + gf_asprintf (op_errstr, "Host node %s " + "of brick %s is down", + brickinfo->hostname, brickinfo->path); ret = -1; rcu_read_unlock (); -- cgit