Project

General

Profile

Bug #23166

mgr: prometheus: internal server error while new OSDs are being added to the cluster.

Added by Subhachandra Chandra almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
prometheus module
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Found in v12.2.3

When new OSDs are being added to the cluster, the Prometheus endpoint returns the following error:

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in call
self.body = self.oldhandler(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 61, in call
return self.callable(*self.args, **self.kwargs)
File "/usr/lib/ceph/mgr/prometheus/module.py", line 414, in metrics
metrics = global_instance().collect()
File "/usr/lib/ceph/mgr/prometheus/module.py", line 351, in collect
self.get_metadata_and_osd_status()
File "/usr/lib/ceph/mgr/prometheus/module.py", line 307, in get_metadata_and_osd_status
dev_class = next((osd for osd in osd_devices if osd['id'] == id_))
StopIteration


Related issues

Copied to mgr - Backport #23313: luminous: mgr: prometheus: internal server error while new OSDs are being added to the cluster. Resolved

History

#1 Updated by John Spray almost 5 years ago

  • Status changed from New to Fix Under Review
  • Backport set to luminous

#2 Updated by Kefu Chai almost 5 years ago

  • Status changed from Fix Under Review to Pending Backport

#3 Updated by Nathan Cutler almost 5 years ago

  • Copied to Backport #23313: luminous: mgr: prometheus: internal server error while new OSDs are being added to the cluster. added

#4 Updated by Nathan Cutler almost 5 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF