Merge pull request #20485 from jcsp/wip-23017

mgr: quieten logging on missing OSD stats

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2018-03-05 17:56:18 +08:00 committed by GitHub
commit a5103b6cad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -953,7 +953,11 @@ int64_t PGMap::get_rule_avail(const OSDMap& osdmap, int ruleno) const
min = proj;
}
} else {
dout(0) << "Cannot get stat of OSD " << p->first << dendl;
if (osdmap.is_up(p->first)) {
// This is a level 4 rather than an error, because we might have
// only just started, and not received the first stats message yet.
dout(4) << "OSD " << p->first << " is up, but has no stats" << dendl;
}
}
}
return min;