From: Sage Weil Date: Thu, 18 May 2017 17:57:58 +0000 (-0400) Subject: mon/PGMonitor: disable when REQUIRE_LUMINOUS is set X-Git-Tag: ses5-milestone6~8^2~19^2~76 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=58bf4a88fa5f6655f7742f8fd3c8707fd8cb4dae;p=ceph.git mon/PGMonitor: disable when REQUIRE_LUMINOUS is set Signed-off-by: Sage Weil --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 05199dd2a295..042662d19ad3 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -73,12 +73,17 @@ void PGMonitor::on_active() update_logger(); - if (mon->is_leader()) + if (mon->is_leader() && + mon->osdmon()->osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) { mon->clog->info() << "pgmap " << pg_map; + } } void PGMonitor::update_logger() { + if (mon->osdmon()->osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) { + return; + } dout(10) << "update_logger" << dendl; mon->cluster_logger->set(l_cluster_osd_bytes, pg_map.osd_sum.kb * 1024ull); @@ -116,6 +121,9 @@ void PGMonitor::update_logger() void PGMonitor::tick() { if (!is_active()) return; + if (mon->osdmon()->osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) { + return; + } handle_osd_timeouts(); @@ -510,6 +518,10 @@ version_t PGMonitor::get_trim_to() bool PGMonitor::preprocess_query(MonOpRequestRef op) { + if (mon->osdmon()->osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) { + return false; + } + op->mark_pgmon_event(__func__); PaxosServiceMessage *m = static_cast(op->get_req()); dout(10) << "preprocess_query " << *m << " from " << m->get_orig_source_inst() << dendl; @@ -536,6 +548,10 @@ bool PGMonitor::preprocess_query(MonOpRequestRef op) bool PGMonitor::prepare_update(MonOpRequestRef op) { + if (mon->osdmon()->osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) { + return false; + } + op->mark_pgmon_event(__func__); PaxosServiceMessage *m = static_cast(op->get_req()); dout(10) << "prepare_update " << *m << " from " << m->get_orig_source_inst() << dendl; @@ -1127,8 +1143,8 @@ void PGMonitor::get_health(list >& summary, HEALTH_ERR); check_full_osd_health(summary, detail, pg_map.nearfull_osds, "near full", HEALTH_WARN); + pg_map.get_health(cct, mon->osdmon()->osdmap, summary, detail); } - pg_map.get_health(cct, mon->osdmon()->osdmap, summary, detail); } void PGMonitor::check_full_osd_health(list >& summary, @@ -1154,6 +1170,10 @@ void PGMonitor::check_full_osd_health(list >& summa void PGMonitor::check_subs() { + if (mon->osdmon()->osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) { + return; + } + dout(10) << __func__ << dendl; const string type = "osd_pg_creates";