]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/MgrClient: fix open condition 31256/head
authorSage Weil <sage@redhat.com>
Wed, 30 Oct 2019 14:39:47 +0000 (09:39 -0500)
committerSage Weil <sage@redhat.com>
Thu, 31 Oct 2019 02:23:45 +0000 (21:23 -0500)
commitfc60989bf7a72c35b8f6b8fec2407b3080ad9bbd
treec88534a8c7e0c9486a0848937b6950255914f782
parentf61d002825fdaad11ac373855f25d90ab9bedf13
mgr/MgrClient: fix open condition

Do not open a mgr daemon session if we are a client using a non-client
key to authenticate.  This is a bit of a corner case, but it can
happen when using the mon. key do bootstrap functions.

This aligns the MgrClient condition with the mgr/DaemonServer.cc
handle_report condition, which rejects non-daemon client connections
based on the connection entity type, not the auth identity.

Fixes: https://tracker.ceph.com/issues/42566
Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/MgrClient.cc