summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2010-10-11 03:26:00 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-11 03:32:46 -0700
commit3dc782527482d2c62c9344669ccaa2dc42481a58 (patch)
tree2525af86d539725bf93564eb786eeeb0c10d9c38 /cli
parenteb99bee0246d5a43bbee7383b3809a360aa70018 (diff)
mgmt/glusterd: handle reqs from unknown peers for friend sm
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1838 (handle peer detach gracefully in case of lost frames) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1838
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli3_1-cops.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c
index 5b5d5425f15..ee66b165f4e 100644
--- a/cli/src/cli3_1-cops.c
+++ b/cli/src/cli3_1-cops.c
@@ -121,6 +121,17 @@ gf_cli3_1_probe_cbk (struct rpc_req *req, struct iovec *iov,
"with existing volumes in the "
"cluster", rsp.hostname);
break;
+ case GF_PROBE_UNKNOWN_PEER:
+ cli_out ("%s responded with 'unknown peer' error, "
+ "this could happen if %s doesn't have"
+ " localhost in its peer database",
+ rsp.hostname, rsp.hostname);
+ break;
+ case GF_PROBE_ADD_FAILED:
+ cli_out ("Failed to add peer information "
+ "on %s" , rsp.hostname);
+ break;
+
default:
cli_out ("Probe returned with unknown errno %d",
rsp.op_errno);