Whamcloud - gitweb
LU-3731 ldlm: Fix misleading error message 38/7438/6
authorBobbie Lind <bobbie.j.lind@intel.com>
Fri, 23 Aug 2013 16:50:11 +0000 (10:50 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 17 Sep 2013 10:12:49 +0000 (10:12 +0000)
This is a correct error when target only mounts on one server,
but is a misleading error message for an HA scenario.

This rebased patch makes the error message a little clearer for
admins running in HA.

Signed-off-by: Bobbie Lind <bobbie.j.lind@intel.com>
Change-Id: I4bdc7891812dd5db65a4dff420632b771a97d103
Reviewed-on: http://review.whamcloud.com/7438
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Tested-by: Hudson
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ldlm/ldlm_lib.c

index fc570c3..3364504 100644 (file)
@@ -794,7 +794,9 @@ int target_handle_connect(struct ptlrpc_request *req)
        if (!target) {
                deuuidify(str, NULL, &target_start, &target_len);
                LCONSOLE_ERROR_MSG(0x137, "%s: not available for connect "
-                                  "from %s (no target)\n", str,
+                                  "from %s (no target). If you are running "
+                                  "an HA pair check that the target is "
+                                  "mounted on the other server.\n", str,
                                   libcfs_nid2str(req->rq_peer.nid));
                GOTO(out, rc = -ENODEV);
        }