From: Vivek Maurya Date: Sun, 8 Feb 2026 16:05:33 +0000 (-0600) Subject: osd: Rephrase unclear OSD_FLAGS warning message X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0709f29a27d266866e586f0dfe11e6164b3dbb9f;p=ceph.git 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 --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 5583369c008..41969c99e24 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -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); }