Project

General

Profile

Bug #22947

Prometheus exporter module fails due to incorrect PG_STATES

Added by Alex Anderson over 1 year ago. Updated over 1 year ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
02/07/2018
Due date:
% Done:

0%

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

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

Duplicates mgr - Bug #22116: prometheus module 500 if 'deep' in pg states Resolved 11/13/2017

History

#1 Updated by Greg Farnum over 1 year ago

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

#2 Updated by John Spray over 1 year ago

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

#3 Updated by John Spray over 1 year ago

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

#4 Updated by John Spray over 1 year ago

  • Duplicates Bug #22116: prometheus module 500 if 'deep' in pg states added

#5 Updated by John Spray over 1 year 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.

Also available in: Atom PDF