Project

General

Profile

Actions

Bug #22947

closed

Prometheus exporter module fails due to incorrect PG_STATES

Added by Alex Anderson about 6 years ago. Updated about 6 years ago.

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:

  1. Original, broken PG_STATES
    #PG_STATES = ['creating', 'active', 'clean', 'down', 'scrubbing', 'degraded',
  2. 'inconsistent', 'peering', 'repair', 'recovering', 'forced-recovery',
  3. 'backfill', 'forced-backfill', 'wait-backfill', 'backfill-toofull',
  4. 'incomplete', 'stale', 'remapped', 'undersized', 'peered']
  1. 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',
    1. The following states are incorrectly named in the original list
      'forced_recovery',
      'backfilling', 'forced_backfill', 'backfill_wait', 'backfill_toofull',
    1. the following states are missing, but documented on
    2. http://docs.ceph.com/docs/master/rados/operations/pg-states/
      'deep',
    1. The following states are undefined on
    2. http://docs.ceph.com/docs/master/rados/operations/pg-states/
      'recovery_wait'
      ]

Related issues 1 (0 open1 closed)

Is duplicate of mgr - Bug #22116: prometheus module 500 if 'deep' in pg statesResolved11/13/2017

Actions
Actions #1

Updated by Greg Farnum about 6 years ago

  • Project changed from Ceph to mgr
  • Category deleted (common)
Actions #2

Updated by John Spray about 6 years ago

  • Related to Bug #22116: prometheus module 500 if 'deep' in pg states added
Actions #3

Updated by John Spray about 6 years ago

  • Related to deleted (Bug #22116: prometheus module 500 if 'deep' in pg states)
Actions #4

Updated by John Spray about 6 years ago

  • Is duplicate of Bug #22116: prometheus module 500 if 'deep' in pg states added
Actions #5

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

Also available in: Atom PDF