]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd,mgr,mds: remove unused authorize registries
authorSage Weil <sage@redhat.com>
Mon, 21 Jan 2019 23:55:58 +0000 (17:55 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 18:10:33 +0000 (12:10 -0600)
These are handled by AuthClient and AuthServer now.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mds/MDSDaemon.cc
src/mds/MDSDaemon.h
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/osd/OSD.cc
src/osd/OSD.h
src/test/mon/test_mon_workloadgen.cc

index 2eaab22781d0f7f31aaa8d5f839c9b287514b29b..b025568cf8d5e3d0e52fdacccc0f64f432fc9cf0 100644 (file)
@@ -68,14 +68,6 @@ MDSDaemon::MDSDaemon(std::string_view n, Messenger *m, MonClient *mc) :
   timer(m->cct, mds_lock),
   gss_ktfile_client(m->cct->_conf.get_val<std::string>("gss_ktab_client_file")),
   beacon(m->cct, mc, n),
-  authorize_handler_cluster_registry(new AuthAuthorizeHandlerRegistry(m->cct,
-                                                                     m->cct->_conf->auth_supported.empty() ?
-                                                                     m->cct->_conf->auth_cluster_required :
-                                                                     m->cct->_conf->auth_supported)),
-  authorize_handler_service_registry(new AuthAuthorizeHandlerRegistry(m->cct,
-                                                                     m->cct->_conf->auth_supported.empty() ?
-                                                                     m->cct->_conf->auth_service_required :
-                                                                     m->cct->_conf->auth_supported)),
   name(n),
   messenger(m),
   monc(mc),
@@ -115,9 +107,6 @@ MDSDaemon::~MDSDaemon() {
 
   delete mds_rank;
   mds_rank = NULL;
-
-  delete authorize_handler_service_registry;
-  delete authorize_handler_cluster_registry;
 }
 
 class MDSSocketHook : public AdminSocketHook {
index 5cdcd5fa514c71fc9d9abb8c9a28b30c86b65c8a..916062fd0609f22feb9b8059b4f27a68fb6e1160 100644 (file)
@@ -37,7 +37,6 @@
 
 #define CEPH_MDS_PROTOCOL    34 /* cluster internal */
 
-class AuthAuthorizeHandlerRegistry;
 class Messenger;
 class MonClient;
 
@@ -64,9 +63,6 @@ class MDSDaemon : public Dispatcher, public md_config_obs_t {
  protected:
   Beacon  beacon;
 
-  AuthAuthorizeHandlerRegistry *authorize_handler_cluster_registry;
-  AuthAuthorizeHandlerRegistry *authorize_handler_service_registry;
-
   std::string name;
 
   Messenger    *messenger;
index 1298f64f0ac21e6d3f7091e878c8494e8aed308b..f256c2c548daf9fc97dd301a20a8171a2bb92c30 100644 (file)
@@ -76,14 +76,6 @@ DaemonServer::DaemonServer(MonClient *monc_,
       py_modules(py_modules_),
       clog(clog_),
       audit_clog(audit_clog_),
-      auth_cluster_registry(g_ceph_context,
-                    g_conf()->auth_supported.empty() ?
-                      g_conf()->auth_cluster_required :
-                      g_conf()->auth_supported),
-      auth_service_registry(g_ceph_context,
-                   g_conf()->auth_supported.empty() ?
-                      g_conf()->auth_service_required :
-                      g_conf()->auth_supported),
       lock("DaemonServer"),
       pgmap_ready(false),
       timer(g_ceph_context, lock),
index 35901aad4466fb84a13e5a0c0330e9ed51b43f26..310a030b1b59adcd642edaafb28a34d356404eb3 100644 (file)
@@ -26,8 +26,6 @@
 #include <msg/Messenger.h>
 #include <mon/MonClient.h>
 
-#include "auth/AuthAuthorizeHandler.h"
-
 #include "ServiceMap.h"
 #include "MgrSession.h"
 #include "DaemonState.h"
@@ -67,11 +65,6 @@ protected:
   PyModuleRegistry &py_modules;
   LogChannelRef clog, audit_clog;
 
-  // Authentication methods for cluster peers
-  AuthAuthorizeHandlerRegistry auth_cluster_registry;
-  // Authentication methods for clients
-  AuthAuthorizeHandlerRegistry auth_service_registry;
-
   // Connections for daemons, and clients with service names set
   // (i.e. those MgrClients that are allowed to send MMgrReports)
   std::set<ConnectionRef> daemon_connections;
index 6f97f884c9587b5f1be9e405e58c7cca88932064..61cfe2283e90fa0fad812d87e8fde49167087d2e 100644 (file)
@@ -2183,14 +2183,6 @@ OSD::OSD(CephContext *cct_, ObjectStore *store_,
   tick_timer_lock("OSD::tick_timer_lock"),
   tick_timer_without_osd_lock(cct, tick_timer_lock),
   gss_ktfile_client(cct->_conf.get_val<std::string>("gss_ktab_client_file")),
-  authorize_handler_cluster_registry(new AuthAuthorizeHandlerRegistry(cct,
-                                                                     cct->_conf->auth_supported.empty() ?
-                                                                     cct->_conf->auth_cluster_required :
-                                                                     cct->_conf->auth_supported)),
-  authorize_handler_service_registry(new AuthAuthorizeHandlerRegistry(cct,
-                                                                     cct->_conf->auth_supported.empty() ?
-                                                                     cct->_conf->auth_service_required :
-                                                                     cct->_conf->auth_supported)),
   cluster_messenger(internal_messenger),
   client_messenger(external_messenger),
   objecter_messenger(osdc_messenger),
@@ -2298,8 +2290,6 @@ OSD::~OSD()
     delete shards.back();
     shards.pop_back();
   }
-  delete authorize_handler_cluster_registry;
-  delete authorize_handler_service_registry;
   delete class_handler;
   cct->get_perfcounters_collection()->remove(recoverystate_perf);
   cct->get_perfcounters_collection()->remove(logger);
index 95109308cd66ee3cb8f264fa95a52ce4fc4eb571..bf054d7011250dc000528fa61b6f969752be670e 100644 (file)
@@ -34,6 +34,7 @@
 #include "OSDCap.h" 
  
 #include "auth/KeyRing.h"
+
 #include "osd/ClassHandler.h"
 
 #include "include/CompatSet.h"
@@ -238,8 +239,6 @@ class KeyStore;
 class Watch;
 class PrimaryLogPG;
 
-class AuthAuthorizeHandlerRegistry;
-
 class TestOpsSocketHook;
 struct C_FinishSplits;
 struct C_OpenPGs;
@@ -1279,9 +1278,6 @@ protected:
   const double OSD_TICK_INTERVAL = { 1.0 };
   double get_tick_interval() const;
 
-  AuthAuthorizeHandlerRegistry *authorize_handler_cluster_registry;
-  AuthAuthorizeHandlerRegistry *authorize_handler_service_registry;
-
   Messenger   *cluster_messenger;
   Messenger   *client_messenger;
   Messenger   *objecter_messenger;
index 937615c8e34a91e71512cf5d7be1899304091fc9..666342c979e7b10b6e898214ad35ed8d0f950965 100644 (file)
@@ -302,10 +302,8 @@ class ClientStub : public TestStub
   }
 };
 
-typedef boost::scoped_ptr<AuthAuthorizeHandlerRegistry> AuthHandlerRef;
 class OSDStub : public TestStub
 {
-  AuthHandlerRef auth_handler_registry;
   int whoami;
   OSDSuperblock sb;
   OSDMap osdmap;
@@ -351,11 +349,6 @@ class OSDStub : public TestStub
 
   OSDStub(int _whoami, CephContext *cct)
     : TestStub(cct, "osd"),
-      auth_handler_registry(new AuthAuthorizeHandlerRegistry(
-                                 cct,
-                                 cct->_conf->auth_cluster_required.length() ?
-                                 cct->_conf->auth_cluster_required :
-                                 cct->_conf->auth_supported)),
       whoami(_whoami),
       gen(whoami),
       mon_osd_rng(STUB_MON_OSD_FIRST, STUB_MON_OSD_LAST)