From: David Zafman Date: Wed, 15 Jan 2020 21:48:01 +0000 (+0000) Subject: osd: Diagnostic logging for upmap cleaning X-Git-Tag: v13.2.9~60^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32717%2Fhead;p=ceph.git osd: Diagnostic logging for upmap cleaning Fixes: https://tracker.ceph.com/issues/41016 Signed-off-by: David Zafman (cherry picked from commit b8746e5e851f0f0d6415d0261fa401ffac51a902) --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 67a97b943af1..da8ddae838ce 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -1696,13 +1696,17 @@ bool OSDMap::check_pg_upmaps( for (auto osd : up) { auto it = weight_map.find(osd); if (it == weight_map.end()) { - // osd is gone or has been moved out of the specific crush-tree + ldout(cct, 10) << __func__ << " pg " << pg << ": osd " << osd << " is gone or has " + << "been moved out of the specific crush-tree" + << dendl; to_cancel->push_back(pg); break; } auto adjusted_weight = get_weightf(it->first) * it->second; if (adjusted_weight == 0) { - // osd is out/crush-out + ldout(cct, 10) << __func__ << " pg " << pg << ": osd " << osd + << " is out/crush-out" + << dendl; to_cancel->push_back(pg); break; }