]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/DaemonServer: fetch metadata for new daemons (e.g., mons) 34266/head
authorSage Weil <sage@redhat.com>
Sat, 28 Mar 2020 21:22:27 +0000 (16:22 -0500)
committerSage Weil <sage@redhat.com>
Sat, 28 Mar 2020 21:56:22 +0000 (16:56 -0500)
commitea274a1988a0fb777d31316561cdcbf96e96b565
treebac84457f2e0734eb03ee91b1bf4912da0541df4
parent7dc02fd0ad5a870be6e5b39a6e490b508f45c8a2
mgr/DaemonServer: fetch metadata for new daemons (e.g., mons)

We fetch metadata for mon/osd/mds daemons on startup.  If a new one comes
along *after* we start up, we need to fetch it on demand.  Otherwise,
notably, we will ignore any new mons added to the cluster:

- mon.a starts
- mgr starts, fetchs a's metadata
- mon.b added
- mon.b tries top open mgr connection, and is rejected each time

This can lead to follow-on badness when the mon tries to proxy mgr
commands or do other things.

Fix by fetching metadata on demand, like we already do in the report
path.

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