Bug #12402
get pools health'info have error
0%
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"?
Related issues
Associated revisions
Update OSDMonitor.cc
OSDMonitor::get_pools_health(), s/objects/bytes/
Fixes: #12402
Signed-off-by: ren.huanwen@zte.com.cn
Update OSDMonitor.cc
OSDMonitor::get_pools_health(), s/objects/bytes/
Fixes: #12402
Signed-off-by: ren.huanwen@zte.com.cn
(cherry picked from commit 7fc13c9d6b9a4962d7640240416105d8f558d600)
Update OSDMonitor.cc
OSDMonitor::get_pools_health(), s/objects/bytes/
Fixes: #12402
Signed-off-by: ren.huanwen@zte.com.cn
(cherry picked from commit 7fc13c9d6b9a4962d7640240416105d8f558d600)
History
#1 Updated by huang jun over 8 years ago
yes, it's a wrong hints, you can send a pull request in github, or send a patch in mailinglist.
#2 Updated by Kefu Chai over 8 years ago
- Status changed from New to Fix Under Review
- Priority changed from High to Normal
#3 Updated by Kefu Chai over 8 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to firefly, hammer
#4 Updated by Nathan Cutler over 8 years ago
- Status changed from Pending Backport to Resolved