Project

General

Profile

Actions

Bug #12402

closed

get pools health'info have error

Added by huanwen ren almost 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
firefly, hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

file:OSDMonitor.cc
function: void OSDMonitor::get_pools_health(
list<pair<health_status_t,string> >& summary,
list<pair<health_status_t,string> > *detail) const
describe:
......
} else if (crit_threshold > 0 &&
sum.num_bytes >= pool.quota_max_bytes*crit_threshold) {
ss << "pool '" << pool_name
<< "' has " << si_t(sum.num_bytes) << " bytes"
<< " (max " << si_t(pool.quota_max_bytes) << ")";
status = HEALTH_ERR;
} else if (warn_threshold > 0 &&
sum.num_bytes >= pool.quota_max_bytes*warn_threshold) {
ss << "pool '" << pool_name
<< "' has " << si_t(sum.num_bytes) << " objects"
<< " (max " << si_t(pool.quota_max_bytes) << ")";
status = HEALTH_WARN;
}
......

I think the "objects" replaced by "bytes"?


Files

OSDMonitor.cc (217 KB) OSDMonitor.cc code file huanwen ren, 07/20/2015 02:27 AM
errors.jpg (96.3 KB) errors.jpg errors.jpg huanwen ren, 07/20/2015 02:27 AM

Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #12497: get pools health'info have errorResolvedNathan Cutler07/20/2015Actions
Copied to Ceph - Backport #12498: get pools health'info have errorResolvedLoïc Dachary07/20/2015Actions
Actions

Also available in: Atom PDF