]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/AuthMonitor: clear_secrets() in create_initial() 28993/head
authorSage Weil <sage@redhat.com>
Tue, 2 Jul 2019 23:04:09 +0000 (18:04 -0500)
committerNathan Cutler <ncutler@suse.com>
Thu, 11 Jul 2019 13:59:16 +0000 (15:59 +0200)
commitd6f58697c7443a5323abe96a5f6763d1beea52b7
treed3df732b4674d10a29491ac391a7ad1f58be740e
parentc02295a07a635671acbd30763ac0e24eb6c680e3
mon/AuthMonitor: clear_secrets() in create_initial()

If we are creating the initial state and initial proposal, start with an
empty keyring.  Specifically, we want to clear out any rotating secrets
from a previously failed paxos round so that the subsequent call to
check_rotate() will correctly populate the initial proposal with new
rotating keys.  (When we don't do this, the leader OSD will have the
keys from an earlier round in memory but no other mons will.)

Fixes: http://tracker.ceph.com/issues/40634
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit a346713516ed6d6935ad6894ffeac3bd41ac99a1)
src/mon/AuthMonitor.cc