Bug #23166
closedmgr: prometheus: internal server error while new OSDs are being added to the cluster.
0%
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
Updated by John Spray about 6 years ago
- Status changed from New to Fix Under Review
- Backport set to luminous
Updated by Kefu Chai about 6 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Nathan Cutler about 6 years ago
- Copied to Backport #23313: luminous: mgr: prometheus: internal server error while new OSDs are being added to the cluster. added
Updated by Nathan Cutler about 6 years ago
- Status changed from Pending Backport to Resolved