]> 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>
Wed, 1 Oct 2025 18:47:09 +0000 (14:47 -0400)
commitb6d4726a7bebdba6d954e811e8f2c18eb49a909a
tree26e72e8e69e6c663404cc1f2d12f6aaba76eb039
parentdabf3d41e1292cd3dc6fb78f8d6baeafbe6b9e85
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>
src/mon/Monitor.cc
src/mon/Monitor.h