]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: cycle through keyring or key_server for auth with mons
authorPatrick Donnelly <pdonnell@ibm.com>
Thu, 29 May 2025 14:13:40 +0000 (10:13 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 22 Sep 2025 16:34:48 +0000 (12:34 -0400)
commit79a6d9d4efc73fe5a722248c62f2bc2fd40559ff
tree882a3ef1d65cbd998f469dd2b1ce36f99c8fe780
parent69e390c7d7a2a2a7f852133fb374ac652ae0ca65
mon: cycle through keyring or key_server for auth with mons

After commit `mon: use key_server for looking up mon key`, the mons will now
use the key_server to lookup the `mon.` key when a mon connects.  We need to
make the mons prefer using that key with authenticating during probing other
mons. However, the protocol doesn't allow falling back to another key. This is
necessary if what's in the key_server database is out-of-date due to an earlier
loss of quorum. In that case, the operator should update the local keyring file
and the mon should give that a try if auth fails.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit 827e87d99c9c111574ca05dbcd865e7c9cc98205)
src/mon/Monitor.cc
src/mon/Monitor.h