Actions
Bug #22947
closedPrometheus exporter module fails due to incorrect PG_STATES
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
The Prometheus exporter module (ceph: src/pybind/mgr/prometheus/module.py) has a bug where the list of "known" placement group states (PG_STATES) has values that do not entirely match what comes from Ceph.
This may be because the values match an older version of Ceph - I currently don't have visibility of this.
I have been fixing them in a local version to improve monitoring of my cluster, and have thus far have made the following changes:
- Original, broken PG_STATES
#PG_STATES = ['creating', 'active', 'clean', 'down', 'scrubbing', 'degraded', - 'inconsistent', 'peering', 'repair', 'recovering', 'forced-recovery',
- 'backfill', 'forced-backfill', 'wait-backfill', 'backfill-toofull',
- 'incomplete', 'stale', 'remapped', 'undersized', 'peered']
- PG_STATES, adjusted as new issues are found
PG_STATES = ['creating', 'active', 'clean', 'down', 'scrubbing', 'degraded',
'inconsistent', 'peering', 'repair', 'recovering',
'incomplete', 'stale', 'remapped', 'undersized', 'peered',- The following states are incorrectly named in the original list
'forced_recovery',
'backfilling', 'forced_backfill', 'backfill_wait', 'backfill_toofull',
- the following states are missing, but documented on
- http://docs.ceph.com/docs/master/rados/operations/pg-states/
'deep',
- The following states are undefined on
- http://docs.ceph.com/docs/master/rados/operations/pg-states/
'recovery_wait'
]
- The following states are incorrectly named in the original list
Updated by Greg Farnum about 6 years ago
- Project changed from Ceph to mgr
- Category deleted (
common)
Updated by John Spray about 6 years ago
- Related to Bug #22116: prometheus module 500 if 'deep' in pg states added
Updated by John Spray about 6 years ago
- Related to deleted (Bug #22116: prometheus module 500 if 'deep' in pg states)
Updated by John Spray about 6 years ago
- Is duplicate of Bug #22116: prometheus module 500 if 'deep' in pg states added
Updated by John Spray about 6 years ago
- Status changed from New to Duplicate
Thanks for the report: the fix for this will be part of the forthcoming 12.2.3 release.
Actions