]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Diagnostic logging for upmap cleaning 32666/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 15 Jan 2020 21:48:01 +0000 (21:48 +0000)
committerDavid Zafman <dzafman@redhat.com>
Wed, 15 Jan 2020 23:06:36 +0000 (23:06 +0000)
Fixes: https://tracker.ceph.com/issues/41016
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit b8746e5e851f0f0d6415d0261fa401ffac51a902)

src/osd/OSDMap.cc

index f3b49cd861a787b485ed39f0797dd5eca901748f..852040b091a87bb09f39bb9f79b1e86faa1ac161 100644 (file)
@@ -1670,13 +1670,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;
       }