]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
auth: remove superfluous error log message
authorPatrick Donnelly <pdonnell@ibm.com>
Tue, 16 Sep 2025 20:02:05 +0000 (16:02 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 22 Sep 2025 16:37:33 +0000 (12:37 -0400)
It's also possible that _refresh_config can be called multiple times before the
keyring config has been set (by an arg/env for instance). This would pollute
the log with erroneous error warnings.

MonClient::authenticate already warns about this.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit b2f3b7bc84509ba1a0cf832a5f410f9cb44cb4e2)

src/auth/AuthRegistry.cc
src/auth/KeyRing.cc

index c208f3c7733973508b5b151a0f14ca9696d9d496..edd81f4851be588b350f8a2b13ad9dc1c9e5b905 100644 (file)
@@ -175,10 +175,6 @@ void AuthRegistry::_refresh_config()
        }
       }
     }
-    if (_no_keyring_disabled_cephx) {
-      lderr(cct) << "no keyring found at " << cct->_conf->keyring
-              << ", disabling cephx" << dendl;
-    }
   }
 }
 
index eca429d0bd0489fcef351dd71eb2259f3ae2e217..4baff9cbac5e1890474bb8e8749ffcaf4d66d2cc 100644 (file)
@@ -51,8 +51,8 @@ int KeyRing::from_ceph_context(CephContext *cct)
       lderr(cct) << "failed to load " << filename
                 << ": " << cpp_strerror(ret) << dendl;
   } else if (conf->key.empty() && conf->keyfile.empty()) {
-    lderr(cct) << "unable to find a keyring on " << conf->keyring
-              << ": " << cpp_strerror(ret) << dendl;
+    /* this can happen during startup when configs are still being set */
+    ldout(cct, 1) << "unable to find a keyring on " << conf->keyring << ": " << cpp_strerror(ret) << dendl;
   }
 
   if (!conf->key.empty()) {