Default true, but allow users (or tests) to turn this warning off.
Signed-off-by: Sage Weil <sage@redhat.com>
.add_service("mon")
.set_description("allow use of MDS daemons in standby-replay as replacements"),
+ Option("mon_warn_on_msgr2_not_enabled", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
+ .set_default(true)
+ .add_service("mon")
+ .set_description("issue MON_MSGR2_NOT_ENABLED health warning if monitors are all running Nautilus but not all binding to a msgr2 port")
+ .add_see_also("ms_bind_msgr2"),
+
Option("mon_warn_on_legacy_crush_tunables", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
.set_default(true)
.add_service("mgr")
// MON_MSGR2_NOT_ENABLED
if (g_conf().get_val<bool>("ms_bind_msgr2") &&
+ g_conf().get_val<bool>("mon_warn_on_msgr2_not_enabled") &&
mon->monmap->get_required_features().contains_all(
ceph::features::mon::FEATURE_NAUTILUS)) {
list<string> details;