]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: wait for ~3 beacons on startup if mons are pre-pacific 40132/head
authorSage Weil <sage@newdream.net>
Fri, 12 Mar 2021 20:21:49 +0000 (15:21 -0500)
committerSage Weil <sage@newdream.net>
Mon, 15 Mar 2021 20:12:52 +0000 (15:12 -0500)
commit78edf7264fba138890aa584a2ab253fd51aa1f15
treec951669bd2c39448cbbdb3ebc4dbceeee28eb918
parent8309c24e54914a874cc0b5f9ecdd3eb09dd938c4
mgr: wait for ~3 beacons on startup if mons are pre-pacific

If we are going active and the mons are pre-pacific, they may have the
bug https://tracker.ceph.com/issues/49778 which prevents our modules
metadata (including options) from being updated (until the next beacon).
Wait a bit (6s by default, 3x the 2s mgr_tick_period) to let this
happen.

This allows us to upgrade from broken pre-pacific mons using cephadm,
which may (if orig cluster is <15.2.5) immediately do a cephadm
migration that relies on the mgr/cephadm/migration_current config
option being present in the mon's mgrmap.

Workaround for https://tracker.ceph.com/issues/49778

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit b356fd0a8c65b4f6dad9e51286df380e6974f842)
src/mgr/Mgr.cc