]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon [stretch mode]: support disable_stretch_mode
authorKamoltat Sirivadhna <ksirivad@redhat.com>
Wed, 28 Aug 2024 13:40:59 +0000 (13:40 +0000)
committerKamoltat Sirivadhna <ksirivad@redhat.com>
Wed, 17 Sep 2025 05:36:41 +0000 (05:36 +0000)
commit6f571d38ae1b131d8d18668e8dee243115d1f40c
tree974c217e11f02a5346b4d91e7b122c180b5ed278
parent54ed148c1a9cc415b6ad1853fe4bd80db9a26ece
mon [stretch mode]: support disable_stretch_mode

Problem:

Currently, Ceph lacks the ability
to exit stretch mode and move back
to normal cluster (non-stretched).

Solution:

Provide a command to allow
the user to exit stretch mode gracefully:

`ceph mon disable_stretch_mode <crush_rule> --yes-i-really-mean-it`

User can either specify a crush rule that
they want all pools to move to or not specify
a rule and Ceph will use a default replicated crush rule.

Fixes: https://tracker.ceph.com/issues/67467
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit 78ce68de41b1d5278e14cf56dff7f15394969255)

Conflicts:
src/mon/MonmapMonitor.cc - replace `goto reply` with
`goto reply_no_propose`
src/mon/OSDMonitorcc - replace `rule_valid_for_pool_type`
with `get_rule_type` since
`rule_valid_for_pool_type` is not
backported.
src/mon/MonCommands.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/MonmapMonitor.cc
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h