]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth/cephx: large amounts of log are produced by osd 6835/head
authorqiankunzheng <zheng.qiankun@h3c.com>
Thu, 5 Nov 2015 12:29:49 +0000 (07:29 -0500)
committerNathan Cutler <ncutler@suse.com>
Mon, 7 Dec 2015 22:29:13 +0000 (23:29 +0100)
if the auth of osd is deleted when the osd is running, the osd will produce large amounts of log.

Fixes:#13610
Signed-off-by: Qiankun Zheng <zheng.qiankun@h3c.com>
(cherry picked from commit 102f0b19326836e3b0754b4d32da89eb2bc0b03c)

src/auth/cephx/CephxServiceHandler.cc

index d65ac79f0797a54d6482b40241b5f2339c8ba5f9..59416b6416f38cc96fc7767fa79c04734571c933 100644 (file)
@@ -183,8 +183,10 @@ int CephxServiceHandler::handle_request(bufferlist::iterator& indata, bufferlist
     {
       ldout(cct, 10) << "handle_request getting rotating secret for " << entity_name << dendl;
       build_cephx_response_header(cephx_header.request_type, 0, result_bl);
-      key_server->get_rotating_encrypted(entity_name, result_bl);
-      ret = 0;
+      if (!key_server->get_rotating_encrypted(entity_name, result_bl)) {
+        ret = -EPERM;
+        break;
+      }
     }
     break;