1
0
mirror of https://github.com/ceph/ceph synced 2025-03-31 16:25:56 +00:00

mon/OSDMonitor: add mon_debug_no_require_luminous

Add debug option not to set the require_luminous osdmap flag on mkfs, for
debugging purposes.

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-02-21 19:13:23 -06:00
parent 25eb40bd4b
commit 38aff741f3
2 changed files with 3 additions and 1 deletions

View File

@ -370,6 +370,7 @@ OPTION(mon_debug_deprecated_as_obsolete, OPT_BOOL, false) // consider deprecated
OPTION(mon_debug_dump_transactions, OPT_BOOL, false)
OPTION(mon_debug_dump_json, OPT_BOOL, false)
OPTION(mon_debug_dump_location, OPT_STR, "/var/log/ceph/$cluster-$name.tdump")
OPTION(mon_debug_no_require_luminous, OPT_BOOL, false)
OPTION(mon_inject_transaction_delay_max, OPT_DOUBLE, 10.0) // seconds
OPTION(mon_inject_transaction_delay_probability, OPT_DOUBLE, 0) // range [0, 1]

View File

@ -159,7 +159,8 @@ void OSDMonitor::create_initial()
// new cluster should require latest by default
newmap.set_flag(CEPH_OSDMAP_REQUIRE_JEWEL);
newmap.set_flag(CEPH_OSDMAP_REQUIRE_KRAKEN);
newmap.set_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS);
if (!g_conf->mon_debug_no_require_luminous)
newmap.set_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS);
newmap.full_ratio = g_conf->mon_osd_full_ratio;
newmap.nearfull_ratio = g_conf->mon_osd_nearfull_ratio;