]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: avoid spurious TMAP2OMAP warning 1481/head
authorJohn Spray <john.spray@inktank.com>
Mon, 17 Mar 2014 14:48:59 +0000 (14:48 +0000)
committerJohn Spray <john.spray@inktank.com>
Mon, 17 Mar 2014 15:42:38 +0000 (15:42 +0000)
The message "one or more OSDs do not support TMAP2OMAP" was printed
incorrectly when zero OSDs were up (and therefore the feature was
absent).  Don't issue this prompt until at least one OSD is up.

Signed-off-by: John Spray <john.spray@inktank.com>
src/mds/MDS.cc

index 92c08d91f433f1dc6a9013f3b429c811c6bb9c29..6f6dd80d00a8443790beb6e30a4c25f556ce582a 100644 (file)
@@ -494,7 +494,11 @@ int MDS::init(int wanted_state)
     uint64_t osd_features = objecter->osdmap->get_up_osd_features();
     if (osd_features & CEPH_FEATURE_OSD_TMAP2OMAP)
       break;
-    derr << "*** one or more OSDs do not support TMAP2OMAP; upgrade OSDs before starting MDS (or downgrade MDS) ***" << dendl;
+    if (objecter->osdmap->get_num_up_osds() > 0) {
+        derr << "*** one or more OSDs do not support TMAP2OMAP; upgrade OSDs before starting MDS (or downgrade MDS) ***" << dendl;
+    } else {
+        derr << "*** no OSDs are up as of epoch " << objecter->osdmap->get_epoch() << ", waiting" << dendl;
+    }
     sleep(10);
   }