Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1464981

Summary: [RFE]: Sanitized health check format
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: John Spray <john.spray>
Component: RADOSAssignee: John Spray <john.spray>
Status: CLOSED ERRATA QA Contact: shylesh <shmohan>
Severity: urgent Docs Contact: Erin Donnelly <edonnell>
Priority: urgent    
Version: 3.0CC: anharris, ceph-eng-bugs, dzafman, edonnell, hnallurv, jdurgin, john.spray, kchai, kdreyer
Target Milestone: rcKeywords: FutureFeature
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.1.4-1.el7cp Ubuntu: ceph_12.1.4-2redhat1xenial Doc Type: Enhancement
Doc Text:
.Ceph health checks are more easily integrated with external alerting systems Ceph's built-in health checks have been refactored to enable more robust integration with external alerting systems. For each condition that is checked, there is now a unique status code, for example `PG_AVAILABILITY`. NOTE: Any external script that was relying on the JSON syntax of the `ceph status` or `ceph health` command output must be updated for the new format. To ease migration, set the `mon_health_preluminous_compat` parameter to `True` on Monitors to instruct `ceph status` and `ceph health` to generate old-style health output in addition to the new output.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:35:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1494421    

Description John Spray 2017-06-26 11:01:36 UTC
Each possible WRN/ERR health condition gets a unique code.  Active conditions get a metadata map that enables other UIs to display the message in a way of their choosing and link to relevant items (affected pools, osds etc).

These codes can be used to refer to documentation, and simplify handling the health status output in other UIs.

Comment 3 Josh Durgin 2017-07-19 00:17:13 UTC
No work on this upstream yet.

Comment 4 John Spray 2017-07-19 10:52:36 UTC
This is the health check changes that we landed last week.

Comment 7 John Spray 2017-08-16 11:32:03 UTC
Yes, it's in there.  Just bad housekeeping on my part: I've marked the upstream ticket resolved now.

Comment 17 errata-xmlrpc 2017-12-05 23:35:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3387