]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd,mds,mgr: do not dereference null rotating_keys
authorSage Weil <sage@redhat.com>
Thu, 20 Jul 2017 17:07:32 +0000 (13:07 -0400)
committerSage Weil <sage@redhat.com>
Thu, 20 Jul 2017 17:07:32 +0000 (13:07 -0400)
commitf159a093ecab4aa53693ec106c00d5ecb383c467
tree103ac97473dd2bc3ef530f26db4d754187b3b988
parent94b02a69d40d06353dc059e655af587c608f8ef5
osd,mds,mgr: do not dereference null rotating_keys

Immediately after we bind to a port, but before we have set up our
auth infrastructure, we may get incoming connections.  Deny them.  Since
we are not yet advertising ourselves these are peers trying to connect
to old instances of daemons, not us.

This triggers now because of bf4938567943c80345966f9c5a3bdc75a913175b.
Previously, the peer would see we were a different addr and drop the
connection.  Now, it continues.

Fixes: http://tracker.ceph.com/issues/20667
Signed-off-by: Sage Weil <sage@redhat.com>
src/mds/MDSDaemon.cc
src/mgr/DaemonServer.cc
src/osd/OSD.cc