summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-rebalance.c
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2017-02-24 10:53:57 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-02-24 04:43:10 -0500
commit7baa4bdf3a35f1957a37311477cf765fa4e85445 (patch)
tree4887ff5a3f43fc5002c0522f97948eda53649f62 /xlators/mgmt/glusterd/src/glusterd-rebalance.c
parent1e2773cf1586b78c71e5b8adc24c6b65f065357c (diff)
glusterd : log improvements in glusterd_op_stage_rebalance ()
Include volume names in the respective staging failure error logs in rebalance staging Change-Id: Iaaab12a552930dd5274fbecec78f5735f883ab6b BUG: 1426509 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: https://review.gluster.org/16746 Reviewed-by: Gaurav Yadav <gyadav@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rebalance.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-rebalance.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index bc6cdde..9ff2541 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -725,8 +725,9 @@ glusterd_op_stage_rebalance (dict_t *dict, char **op_errstr)
sizeof (msg),
GD_OP_REBALANCE);
if (ret) {
- gf_msg_debug (this->name, 0,
- "start validate failed");
+ gf_msg_debug (this->name, 0, "defrag start validate "
+ "failed for volume %s.",
+ volinfo->volname);
goto out;
}
break;
@@ -744,7 +745,8 @@ glusterd_op_stage_rebalance (dict_t *dict, char **op_errstr)
}
if ((strstr(cmd_str, "rebalance") != NULL) &&
(volinfo->rebal.op != GD_OP_REBALANCE)) {
- snprintf (msg, sizeof(msg), "Rebalance not started.");
+ snprintf (msg, sizeof(msg), "Rebalance not started "
+ "for volume %s.", volinfo->volname);
ret = -1;
goto out;
}
@@ -752,7 +754,8 @@ glusterd_op_stage_rebalance (dict_t *dict, char **op_errstr)
if (strstr(cmd_str, "remove-brick") != NULL) {
if (volinfo->rebal.op != GD_OP_REMOVE_BRICK) {
snprintf (msg, sizeof(msg), "remove-brick not "
- "started.");
+ "started for volume %s.",
+ volinfo->volname);
ret = -1;
goto out;
}