We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57b9c81 + b9054aa commit e36f4ebCopy full SHA for e36f4eb
app/dashboard/views.py
@@ -114,6 +114,14 @@ def get(self):
114
if 'err' in cluster_status:
115
abort(500, cluster_status['err'])
116
117
+ # ceph >= 15.2.5
118
+ if 'osdmap' not in cluster_status['osdmap']:
119
+ # osdmap has been converted to depth-1 dict
120
+ cluster_status['osdmap']['osdmap'] = cluster_status['osdmap'].copy()
121
+ monitor_status = CephClusterCommand(cluster, prefix='quorum_status', format='json')
122
+ cluster_status['monmap'] = monitor_status['monmap']
123
+
124
125
# check for unhealthy osds and get additional osd infos from cluster
126
total_osds = cluster_status['osdmap']['osdmap']['num_osds']
127
in_osds = cluster_status['osdmap']['osdmap']['num_up_osds']
0 commit comments