]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: do not use the keyring if auth = none
authorLoic Dachary <loic@dachary.org>
Sun, 29 Dec 2013 11:40:05 +0000 (12:40 +0100)
committerLoic Dachary <loic@dachary.org>
Wed, 1 Jan 2014 10:07:42 +0000 (11:07 +0100)
commite946df139e5b676f1e62cf5821fd697589a98e38
treefbb155196dfce4d5467f434b37c0896900c27aae
parentfe3fd5fb4aa6327256dfaf731914dc4f79b0d44e
mon: do not use the keyring if auth = none

The Monitor::is_keyring_required() predicate is defined to be used in
the mkfs code path and not require the keyring to be set unless it is
actually going to be used.

If authentication is turned on later on existing monitors, the keyring
files will have to be set by an external tool in the mon data directory
and the mon restarted.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/mon/AuthMonitor.cc
src/mon/Monitor.cc
src/mon/Monitor.h