check_ceph_status raised exception

Bug #1893273 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Monitor Charm
New
Undecided
Unassigned

Bug Description

    check_ceph_status raised unknown exception '<class 'json.decoder.JSONDecodeError'>'
============================================================
Traceback (most recent call last):
File "/usr/local/lib/nagios/plugins/check_ceph_status.py", line 294, in main
msg = check_ceph_status(args)
File "/usr/local/lib/nagios/plugins/check_ceph_status.py", line 142, in check_ceph_status
status_data = json.loads(tree)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
============================================================

Revision history for this message
Adam Dyess (addyess) wrote :

content of /var/lib/nagios/cat-ceph-status.txt is empty

Revision history for this message
Adam Dyess (addyess) wrote :

running `sudo ceph status` on this node times out eventually because it's split off from the rest of the network -- it may be best to produce 'CRITICAL: cannot read ceph status' or something like that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.