]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/MgrClient: make some noise for a user if no mgr daemon is running
authorSage Weil <sage@redhat.com>
Wed, 8 Aug 2018 13:51:10 +0000 (08:51 -0500)
committerSage Weil <sage@redhat.com>
Wed, 8 Aug 2018 13:51:10 +0000 (08:51 -0500)
Otherwise a cli command may unexpectedly hang forever with not output
because no ceph-mgr is running, which can be confusing for an admin.

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

index 06d2810d82771b3f8673ed3b51e183f97b6ef815..ea6998167b7a906cae57faf3364b88fd7019ea72 100644 (file)
@@ -428,7 +428,7 @@ int MgrClient::start_command(const vector<string>& cmd, const bufferlist& inbl,
     MCommand *m = op.get_message({});
     session->con->send_message(m);
   } else {
-    ldout(cct, 4) << "start_command: no mgr session, waiting" << dendl;
+    ldout(cct, 0) << "no mgr session (no running mgr daemon?), waiting" << dendl;
   }
   return 0;
 }