From 3dc782527482d2c62c9344669ccaa2dc42481a58 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Mon, 11 Oct 2010 03:26:00 +0000 Subject: mgmt/glusterd: handle reqs from unknown peers for friend sm Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1838 (handle peer detach gracefully in case of lost frames) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1838 --- cli/src/cli3_1-cops.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cli') 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); -- cgit