]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: add a STRETCH_MODE feature and check it
authorGreg Farnum <gfarnum@redhat.com>
Thu, 2 Jul 2020 18:52:12 +0000 (18:52 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Mon, 20 Jul 2020 07:08:51 +0000 (07:08 +0000)
commit4cb4f2130bf2e4f28d7b9037d46786999ccd85f3
tree6e4f2b8aefb538874269d861201d44193f1073ca
parente6f7951236d840facb2cc79db344c3ab94b85db9
mon: add a STRETCH_MODE feature and check it

We look at the up OSDs when enabling stretch mode to make sure the running
ones can handle it. OSDs require their peers to support stretch mode
when connecting, via OSDMap::get_features(). Monitors reject booting OSDs
if stretch mode is enabled and the OSD doesn't support it.

The monitors are already validated and gated by having CONNECTIVITY
election mode enabled.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/include/ceph_features.h
src/mon/MonmapMonitor.cc
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h
src/osd/OSDMap.cc
src/osd/OSDMap.h