From: Greg Farnum Date: Wed, 10 Oct 2018 23:06:55 +0000 (-0700) Subject: mon: consider AUTH_NONE clients which "authenticate" to be finished X-Git-Tag: v14.0.1~49^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24535%2Fhead;p=ceph.git mon: consider AUTH_NONE clients which "authenticate" to be finished We check for AUTH_NONE success by examining the side effect of the caps being filled in with allow_all, and we need that to be "finished" for purposes of replying with a monmap as well. Fixes: http://tracker.ceph.com/issues/36300 Signed-off-by: Greg Farnum --- diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 4bbcf0c4a07f..80b5857948ef 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -644,6 +644,7 @@ bool AuthMonitor::prep_auth(MonOpRequestRef op, bool paxos_writable) if (caps_info.allow_all) { s->caps.set_allow_all(); s->authenticated = true; + finished = true; } } else { // request