Commit Graph

24 Commits

Author SHA1 Message Date
Thomas Lamprecht
17f4e62e32 ui: ceph: status details: eslint fixes and code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-24 19:00:42 +02:00
Thomas Lamprecht
53e3ea8488 ui: eslint: enforce "no-extra-parens" rule
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:42:36 +01:00
Thomas Lamprecht
8058410f40 ui: eslint: fix various spacing related issues
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:39:15 +01:00
Thomas Lamprecht
f6710aac38 ui: eslint: fix trailing comma and comma related whitespaces errors
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:31:03 +01:00
Thomas Lamprecht
953f6e9bb3 ui: ceph: downgrade remapped from error to warning/working
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-02 18:36:46 +02:00
Thomas Lamprecht
45221aae94 ui: ceph/StatusDetail: cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-03 15:25:39 +02:00
Alwin Antreich
e25dda254c Make PVE6 compatible with supported ceph versions
Luminous, Nautilus and Octopus. In Octopus the mon_status was dropped.
Also the ceph status was cleaned up and doesn't provide the mgrmap and
monmap.

The rados queries used in the ceph status API endpoints (cluster / node)
were factored out and merged to one place.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
2020-06-03 14:23:38 +02:00
Thomas Lamprecht
fcb30b4941 ceph: just use "0" as initial value for ceph version
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-31 16:31:02 +02:00
Dominik Csapak
4f71a0ff0a gui: ceph: fix version comparison
'>' on strings is not numeric, so we use our compare_ceph_versions helper

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-31 15:46:01 +02:00
Dominik Csapak
c0c2e40161 gui: ceph: hide outdated osd line if possible
when no osd is outdated, hide the line with 'outdated osts' in the
dashboard

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-31 15:45:54 +02:00
Dominik Csapak
27b9127534 gui: ceph: tweak heights
so that it uses the space better in 1-column and 2-column mode

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-27 16:17:29 +02:00
Dominik Csapak
f73a2d361d gui: ceph: add pg pie chart
similar to what the ceph mgr dashboard shows, gives a rough
overview to pg state

also make the pg list scrollable to avoid to big panels
and show the state color with the pg category

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-27 16:17:29 +02:00
Dominik Csapak
7f58689dd2 gui: ceph: add metadata api call to dashboard
and use it for displaying outdated osds

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-27 16:17:29 +02:00
Dominik Csapak
0bf3c58193 gui: ceph: prepare statusdetail for metadata
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-27 16:17:29 +02:00
Dominik Csapak
28786da66f gui: ceph: remove mon specific code from StatusDetail
will be handled in ceph/Services.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-27 16:17:29 +02:00
Emmanuel Kasper
838258a3ee Do not translate Ceph specific terms
Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
2017-11-28 11:24:52 +01:00
Dominik Csapak
37f01f69da ceph dashboard: add missing summary/message access level
in luminous, the output of the status/health has changed (again),
so we have to access the correct properties

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-08-25 13:27:09 +02:00
Dominik Csapak
4a0bb01712 adapt ceph status detail to luminous and make it more robust
they restructured the json interface
(e.g. they removed the timechecks from ceph status)

so we have to generate those differently

also make the whole thing more robust to changes,
as in do not bail out if one thing is missing, but check the needed
data only when we need it and omit that part

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-24 16:10:24 +02:00
Dominik Csapak
d18bf116a3 rename 'monitors' to 'states' in pg list
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-24 16:10:24 +02:00
Dominik Csapak
60a14a047d fix wrong osd calculation in ceph dashboard
in luminous, the error message is not
'x/y in osds are down' anymore, but
'x osds down'

so we need to adapt the parsing, and it means we cannot check
the number of in osds there anymore (was never really needed, so
we can simply omit it)

when an osd is down but marked as out, those errors disappear

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-13 06:36:34 +02:00
Dominik Csapak
f3f73cde3b check general health for ceph monitors, not only time
we did not check the healthservices array for the monitor widget,
this patch does that, and takes the worst health state

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 13:03:04 +01:00
Dominik Csapak
bd8950b0ea fix #1247: disregard timecheck for one monitor
if we only have one monitor, set the timecheck to HEALTH_OK
(since we get none)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 13:02:17 +01:00
Dominik Csapak
5c38487d83 fix missing mons array in ceph status output
on setups with 1 monitor, timechecks has no monitor array

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-23 11:39:58 +01:00
Dominik Csapak
195c7c8cbe add ceph statudetail panel
this adds a the component ceph statusdetail,
it displays the monitors (+status)
the osd as a table (in/out,up/down)
and the pg states as a list (+number)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 16:37:44 +01:00