]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: improve failure messages/debugging 12110/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 18 Nov 2016 02:02:36 +0000 (21:02 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 18 Nov 2016 02:03:02 +0000 (21:03 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/ceph_fuse.cc
src/client/Client.cc

index f5d04daeef903d2daf8de3946f4c1c06cf62f98a..5c6118a8e9d677aebc46655d057826e6a61c6191 100644 (file)
@@ -220,7 +220,7 @@ int main(int argc, const char **argv, const char *envp[]) {
     cout << "ceph-fuse[" << getpid() << "]: starting ceph client" << std::endl;
     r = messenger->start();
     if (r < 0) {
-      cerr << "ceph-fuse[" << getpid() << "]: ceph mount failed with " << cpp_strerror(-r) << std::endl;
+      cerr << "ceph-fuse[" << getpid() << "]: ceph messenger failed with " << cpp_strerror(-r) << std::endl;
       goto out_messenger_start_failed;
     }
 
@@ -230,7 +230,7 @@ int main(int argc, const char **argv, const char *envp[]) {
     // start client
     r = client->init();
     if (r < 0) {
-      cerr << "ceph-fuse[" << getpid() << "]: ceph mount failed with " << cpp_strerror(-r) << std::endl;
+      cerr << "ceph-fuse[" << getpid() << "]: ceph client failed with " << cpp_strerror(-r) << std::endl;
       goto out_init_failed;
     }
     
index 22ab9ec8631d6234db95141c5af6345ccc5b4d19..f45aab40770f22e74bb7102dcebc4ca90648408a 100644 (file)
@@ -5584,6 +5584,7 @@ int Client::mount(const std::string &mount_root, const UserPerm& perms,
 
   int r = authenticate();
   if (r < 0) {
+    lderr(cct) << "authentication failed: " << cpp_strerror(r) << dendl;
     return r;
   }