]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
auth/AuthRegistry: refresh config on startup
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 30 Jul 2025 02:38:21 +0000 (22:38 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Wed, 1 Oct 2025 19:44:19 +0000 (15:44 -0400)
I don't think this makes a functional difference but these configs should be
loaded at startup otherwise it relies on obs startup to load them.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/auth/AuthRegistry.cc

index 729cf1f5858e0fd9bcf68b268722d79b6a9f1d58..c208f3c7733973508b5b151a0f14ca9696d9d496 100644 (file)
@@ -23,6 +23,7 @@ AuthRegistry::AuthRegistry(CephContext *cct)
   : cct(cct)
 {
   cct->_conf.add_observer(this);
+  _refresh_config();
 }
 
 AuthRegistry::~AuthRegistry()
@@ -53,6 +54,7 @@ void AuthRegistry::handle_conf_change(
   const ConfigProxy& conf,
   const std::set<std::string>& changed)
 {
+  ldout(cct, 20) << __func__ << ": changed: " << changed << dendl;
   std::scoped_lock l(lock);
   _refresh_config();
 }