]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: do not warn about pgp_num for fake "deleted" pools
authorSage Weil <sage@redhat.com>
Wed, 19 Apr 2017 14:05:48 +0000 (10:05 -0400)
committerSage Weil <sage@redhat.com>
Fri, 5 May 2017 17:39:13 +0000 (13:39 -0400)
This breaks the upgrade test from jewel.  We can probably revert it later.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMonitor.cc

index 537bd5601dcf6ec0a5addb75d7e91eed31735007..151468a58970ce7f03198469e211f1505b0811cc 100644 (file)
@@ -1588,7 +1588,9 @@ void PGMonitor::get_health(list<pair<health_status_t,string> >& summary,
       if (!pi)
        continue;   // in case osdmap changes haven't propagated to PGMap yet
       const string& name = mon->osdmon()->osdmap.get_pool_name(p->first);
-      if (pi->get_pg_num() > pi->get_pgp_num()) {
+      if (pi->get_pg_num() > pi->get_pgp_num() &&
+         !(name.find(".DELETED") != string::npos &&
+           g_conf->mon_fake_pool_delete)) {
        ostringstream ss;
        ss << "pool " << name << " pg_num "
           << pi->get_pg_num() << " > pgp_num " << pi->get_pgp_num();