]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MonClient: finsih authenticate() only after we get monmap; fix 'tell mgr'
authorSage Weil <sage@redhat.com>
Thu, 31 Jan 2019 20:05:37 +0000 (14:05 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 18:10:34 +0000 (12:10 -0600)
commit42b5c4dd8f71a32f1b0ae1bb950f6e690f2c66e1
tree6adb0d9e5041cb1956b96438552c3dc9d5307546
parent574e6bf6ad4aca621b7651889fe852d4f6074dc1
mon/MonClient: finsih authenticate() only after we get monmap; fix 'tell mgr'

We used to get a valid monmap before we finished the MAuth exchange and
returned from authenticate().  Now, we finish authenticating before we even
send or receive a message, so authenticate() returns quickly.  This
confuses many callers, and is probably a bad idea.  So, rejigger the
_finish_auth and _finish_hunting callers so that we finish hunting as soon
as we have picked a mon but don't finish_auth if we have not gotten our
first monmap.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc