Commit Graph

21 Commits

Author SHA1 Message Date
Thomas Lamprecht
2d6c2886a7 fix #4571: ui: ceph: allow adding extra-ID for multiple MDS per node
One MDS can only serve a single CephFS at a time and for redundancy
one wants to have standby's on other nodes.

But with multiple CephFS instances a single MDS per node might not be
enough, e.g., with three FS on a three-node cluster a failure of one
node would mean that on CephFS won't work anymore.

While the API and CLI allowed to set up multiple CephFS per node
already, the UI didn't. Address this by adding an `Extra ID` field
that will be suffixed to the base ID, which always contains the node
as that makes sorting and also associating services to their node
easier.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-17 12:03:37 +01:00
Aaron Lauterer
6242a6009d ui: osd: mon: mds: warn if stop/destroy actions are problematic
Check if stopping of a service (OSD, MON, MDS) will be problematic for
Ceph. The warning still allows the user to proceed.

Ceph also has a check if the destruction of a MON is okay, so let's use
it.

Instead of the common OK button, label it with `Stop OSD` and so forth
to hopefully reduce the "click OK by habit" incidents.

This will not catch it every time as Ceph can need a few moments after a
change to establish its current status. For example, stopping one of 3
MONs and then right away destroying one of the last two running MONs
will most likely not trigger the warning. Doing so after a few seconds
should show the warning though.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2022-11-17 18:27:48 +01:00
Thomas Lamprecht
8ce85523c3 ui: ceph fs: fix overriding renderer in controller
Overriding the controller render_status must be done in an derived
class, not as config for the instantiated object.

While it worked it really isn't idiomatic and ExtJS complained with
an error in debug mode, which broke the whole UI then.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-10 13:24:11 +01:00
Dominik Csapak
999df1c25e ui: ceph/fs: show fs for active mds
so that the user can see which mds is responsible for which cephfs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-11-11 17:52:08 +01:00
Dominik Csapak
89c0472127 ui: ceph/ServiceList: refactor controller out
we want to reuse that controller type by overriding some functionality
in the future, so factor it out.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-11-11 17:52:08 +01:00
Dominik Csapak
7d88e195b2 ui: ceph: catch missing version for service list
when a daemon is stopped, the version here is 'undefined'. catch that
instead of letting the template renderer run into an error.
this fixes the rendering of the grid backgrounds

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-11-11 17:52:08 +01:00
Thomas Lamprecht
fb792310d1 ui: ceph: service list: eslint fixes and code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-24 18:44:39 +02:00
Thomas Lamprecht
13786fb021 ui: ceph: factor out installation mask store monitoring
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-24 18:43:07 +02:00
Thomas Lamprecht
fa8d397162 ui: eslint: some more trailing comma fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:48:50 +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
fde3e23dcd ui: ceph/ServiceList: do not autoLoad the rstore
The 'autoStart' triggers a initial load already

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-02 12:48:15 +02:00
Dominik Csapak
30f63e7df1 ui: ceph/ServiceList: do not autoLoad the updatestore
they load once anyway with 'autoStart'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-02 11:10:51 +02:00
Dominik Csapak
facf9404c5 ui: ceph/ServiceList: stop leaky versionsstores
on the view destroy we have to stop the updatestore again,
they do not get cleaned up by a destroy because until they are stopped
the have a reference on themselves, which prevent a garbage collection

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-02 11:10:48 +02:00
Dominik Csapak
732c147cf9 ui: ceph/ServiceList: correctly set 'mixedversions'
We need to set mixedversions also if
data.version.parts < view.maxversion
so lets do that.

This avoids a bug when the first version in the list already is the
highest one.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-02 09:00:03 +02:00
Dominik Csapak
277d6d15e1 gui: ceph: icons for versions in ServiceList
this makes it closer to the OSD list, using the new 'version-only'
metadata api call

this partially fixes #2468

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-01 17:15:41 +02:00
Thomas Lamprecht
ee099a5fdc ui: ceph/service list: re-do column widths with flex
this way we see thew full status of a MDS, and for our minimal
resolution of 720p and targeted resolution of 1080p it works good.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-11 14:47:10 +02:00
Dominik Csapak
94b79c8e73 gui: ceph: fix syslog resize
makes the logview inside resize with the window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-07-02 13:29:22 +02:00
Thomas Lamprecht
e148c752eb gui: cep service list: generalize emptyText
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-05 14:56:55 +02:00
Thomas Lamprecht
7ce1e64ccf gui: ceph services: adapt create to ID in API path
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-05 12:41:11 +02:00
Dominik Csapak
a6c60aed86 gui: ceph: add ServiceList component and use it
this is an abstraction for listing Ceph Services with a few improvements:
* start/stop/restart buttons for all services (incl. icons)
* a syslog button to view the syslog of that service
* correct reloading behaviour when creating/destroying

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-06-05 12:41:11 +02:00