From: Gu Zhongyan Date: Mon, 5 Feb 2018 10:45:54 +0000 (+0800) Subject: osd/OSDMap: misleading message in print_oneline_summary() X-Git-Tag: v12.2.13~82^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=25da46af896f4f0b8a778864cf7898b4caed7f3d;p=ceph.git osd/OSDMap: misleading message in print_oneline_summary() The output scared people as showing so many osds were full/nearfull Improve the output to make the message clearer Fixes: http://tracker.ceph.com/issues/22350 Signed-off-by: Gu Zhongyan (cherry picked from commit 7004b35f71a657a0d9479b7cc46acc210de303d4) --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index ed2e36f37e1..d7aff21fbee 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -3502,9 +3502,9 @@ void OSDMap::print_oneline_summary(ostream& out) const << get_num_up_osds() << " up, " << get_num_in_osds() << " in"; if (test_flag(CEPH_OSDMAP_FULL)) - out << " full"; + out << "; full flag set"; else if (test_flag(CEPH_OSDMAP_NEARFULL)) - out << " nearfull"; + out << "; nearfull flag set"; } bool OSDMap::crush_rule_in_use(int rule_id) const