mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
osd: Rephrase unclear OSD_FLAGS warning message
Setting maintenance mode show below warning,which appears incorrect
or ambiguous.
[WRN] OSD_FLAGS: 1 OSDs or CRUSH {nodes, device-classes}have
{NOUP,NODOWN,NOIN,NOOUT} flags set
Change warning as shown bellow.
[WRN] OSD_FLAGS: 1 OSDs or CRUSH nodes/device-classes have
one or more of these flags set: NOUP, NODOWN, NOIN, NOOUT
Fixes: https://tracker.ceph.com/issues/71716
Signed-off-by: Vivek Maurya <vivek.maurya@ibm.com>
This commit is contained in:
parent
41ab689795
commit
0709f29a27
@ -7770,7 +7770,7 @@ void OSDMap::check_health(CephContext *cct,
|
||||
}
|
||||
if (!detail.empty()) {
|
||||
ostringstream ss;
|
||||
ss << detail.size() << " OSDs or CRUSH {nodes, device-classes} have {NOUP,NODOWN,NOIN,NOOUT} flags set";
|
||||
ss << detail.size() << " OSDs or CRUSH nodes/device-classes have one or more of these flags set: NOUP, NODOWN, NOIN, NOOUT";
|
||||
auto& d = checks->add("OSD_FLAGS", HEALTH_WARN, ss.str(), detail.size());
|
||||
d.detail.swap(detail);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user