]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: fix tell to hybrid octopus/pre-octopus mons
authorSage Weil <sage@redhat.com>
Thu, 24 Oct 2019 23:56:04 +0000 (18:56 -0500)
committerSage Weil <sage@redhat.com>
Fri, 25 Oct 2019 01:09:05 +0000 (20:09 -0500)
commit7bbf9037cab97f4d8da362e03a1725ee9aba72ec
tree780ad3249f27f8dcbc4b017e3e102fff807ac457
parent458f369f46116cc33e900b2319d741db569c18d8
mon: fix tell to hybrid octopus/pre-octopus mons

We can't decide whether to use the new tell command style based on the
monmap.min_mon_release alone because some mons may be octopus even though
that hasn't updated yet.  The same goes for if we look at the combined
features for the cluster--the underlying problem is the monmap doesn't
tell us which mons are octopus and which ones aren't, so we don't know
how to behave.

Instead, allow octopus+ mons to advertise the converted tell commands
going forward, for compatibility with pre-octopus clients (who do the old
style of tell) and for octopus+ clients talking to a min_mon_release <
octopus cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonCommands.h
src/mon/Monitor.cc