]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg: set_require_authorizer on messenger, not dispatcher
authorSage Weil <sage@redhat.com>
Sun, 28 Apr 2019 13:43:28 +0000 (08:43 -0500)
committerSage Weil <sage@redhat.com>
Sun, 28 Apr 2019 13:43:28 +0000 (08:43 -0500)
commitf10660e84f85116b977f97aba5d3734233db0345
tree53f1b2ac744364fb1ebd86b81db77027f3c3dc60
parent90e4c5fad569a39504ad3444a41122360cab77bd
msg: set_require_authorizer on messenger, not dispatcher

This flag is used for compatibility with pre-nautilus OSDs, which do not
send authorizers on the OSD heartbeat connections.  However, because the
AuthServer is implemented by MonClient, which is shared across all
OSD messengers, we can't set this to false for the OSD without disabling
all auth.  Instead, make it a Messenger property, and set it only on the
heartbeat server messengers.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc
src/msg/Dispatcher.h
src/msg/Messenger.h
src/osd/OSD.cc
src/test/crimson/perf_async_msgr.cc
src/test/crimson/test_async_echo.cc
src/test/msgr/test_msgr.cc