]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: consider AUTH_NONE clients which "authenticate" to be finished
authorGreg Farnum <gfarnum@redhat.com>
Wed, 10 Oct 2018 23:06:55 +0000 (16:06 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Thu, 11 Oct 2018 18:08:51 +0000 (11:08 -0700)
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 <gfarnum@redhat.com>
src/mon/AuthMonitor.cc

index 4bbcf0c4a07fe26c4599b6a4b17f2740f5b810ac..80b5857948effb0ac2f25d8bae716182b1e01a02 100644 (file)
@@ -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