]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: log to cluster log if mds cap parse fails
authorSage Weil <sage@redhat.com>
Thu, 9 Jul 2015 15:18:04 +0000 (11:18 -0400)
committerSage Weil <sage@redhat.com>
Thu, 1 Oct 2015 13:39:30 +0000 (09:39 -0400)
It's an admin error; tell an admin.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mds/MDSDaemon.cc

index 4ac020169014544467f79be3bd84f4f1dca494e0..15b424ea388b58a8646cfa79843e61a07ee51d0e 100644 (file)
@@ -1294,7 +1294,9 @@ bool MDSDaemon::ms_verify_authorizer(Connection *con, int peer_type,
       std::ostringstream errstr;
       if (!s->auth_caps.parse(g_ceph_context, auth_cap_str, &errstr)) {
         dout(1) << __func__ << ": auth cap parse error: " << errstr.str()
-          << " parsing '" << auth_cap_str << "'" << dendl;
+               << " parsing '" << auth_cap_str << "'" << dendl;
+       clog->warn() << name << " mds cap '" << auth_cap_str
+                    << "' does not parse: " << errstr.str() << "\n";
       }
     } catch (buffer::error& e) {
       // Assume legacy auth, defaults to: