Bug #10496
mon counters incorrectly calculated when mon_status is warn
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
see commented code in snippet below.
@classmethod¬ def _calculate_mon_counters(cls, mon_status):¬ mons = mon_status['monmap']['mons']¬ quorum = mon_status['quorum']¬ ok, warn, crit = 0, 0, 0¬ for mon in mons:¬ rank = mon['rank']¬ if rank in quorum:¬ ok += 1¬ # TODO: use 'have we had a salt heartbeat recently' here instead¬ # elif self.try_mon_connect(mon):¬ # warn += 1¬ else:¬ crit += 1¬
This manifests itself as two cards in the UI disagreeing.
host-dash-view.js gets correct data from counting services.
This data is presented in the "Hosts" card on the dashboard
mon-dash-view.js gets incorrect data from the mon counters in the health API endpoint
This data is presented in the "Monitors" card on the dashboard
History
#1 Updated by Dan Mick about 9 years ago
- Status changed from New to 12
- Assignee set to Dan Mick
#2 Updated by Dan Mick over 7 years ago
- Assignee changed from Dan Mick to Christina Meno
#3 Updated by Patrick Donnelly over 4 years ago
- Status changed from 12 to New