diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2015-12-03 14:54:32 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2015-12-06 22:23:08 -0800 |
commit | b1d047caeacbcfac4222759af9d5936b7cfd1d7c (patch) | |
tree | 1d0caa2536e594a586b61739ea490a4f4775b0b2 /xlators/mgmt/glusterd/src/glusterd-handler.c | |
parent | 05b510bb893761864d3830eb781210445056a6f9 (diff) |
glusterd: Disallow peer with existing volumes to be probed in cluster
As of now we do allow peer to get added in the trusted storage pool even if it
has a volume configured. This is definitely not a supported configuration and
can lead to issues as we never claim to support merging clusters. A single node
running a standalone volume can be considered as a cluster.
Change-Id: Id0cf42d6e5f20d6bfdb7ee19d860eee67c7c45be
BUG: 1287992
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: http://review.gluster.org/12864
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index fca5857cc93..3c4516b76e0 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -3826,8 +3826,9 @@ set_probe_error_str (int op_ret, int op_errno, char *op_errstr, char *errstr, } else { switch (op_errno) { case GF_PROBE_ANOTHER_CLUSTER: - snprintf (errstr, len, "%s is already part of " - "another cluster", hostname); + snprintf (errstr, len, "%s is either already " + "part of another cluster or having " + "volumes configured", hostname); break; case GF_PROBE_VOLUME_CONFLICT: |