check_ceph_num_osds check breaks on Octopus and newer
Bug #1973832 reported by
Paul Goins
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph Monitor Charm |
New
|
Undecided
|
Unassigned |
Bug Description
In newer versions of ceph, the JSON output of ceph status no longer uses a doubly-nested osdmap. This breaks the check_ceph_num_osds NRPE check.
Specifically, this appears to have been introduced in version 15.1.0 of Ceph Octopus.
The check needs to be updated to check these values in either their old or new location. As is, the check fails, returning an UNKNOWN status to Nagios, with the output "check_ceph_status raised unknown exception '<class 'KeyError'>'".
Upstream reference: https:/
Related chatter which lead me to the above: https:/
To post a comment you must log in.
I submitted a PR for this a couple of days ago. /review. opendev. org/c/openstack /charm- ceph-mon/ +/841341
https:/