]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/AuthMonitor: clear_secrets() in create_initial() 28850/head
authorSage Weil <sage@redhat.com>
Tue, 2 Jul 2019 23:04:09 +0000 (18:04 -0500)
committerSage Weil <sage@redhat.com>
Tue, 2 Jul 2019 23:04:14 +0000 (18:04 -0500)
commita346713516ed6d6935ad6894ffeac3bd41ac99a1
treebf5898b373a00deda0b1aa93269262c4b8df49c3
parente1600b145277da0ed545aac2e106036ba4f1686c
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>
src/mon/AuthMonitor.cc