]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Diagnostic logging for upmap cleaning 32716/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 15 Jan 2020 21:48:01 +0000 (21:48 +0000)
committerNathan Cutler <ncutler@suse.com>
Sat, 18 Jan 2020 10:38:03 +0000 (11:38 +0100)
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 be5d6fcf0deaa5f4683dded065f24e5790b00671..d3b3ea10155613bf5856eb9d398207236d4f1625 100644 (file)
@@ -1842,13 +1842,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;
       }