]> git.proxmox.com Git - pve-manager.git/commit
add dc health panel
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 28 Oct 2016 11:11:44 +0000 (13:11 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 29 Oct 2016 06:38:18 +0000 (08:38 +0200)
commit0b659b8ef9a2982e099fea21a6c1dd57f8c553f9
treef12520df0c92dec9ed25a6e1b31d0d6df50307f5
parenta3a29cc8d24b590c8b410af56ec461c60950f3f1
add dc health panel

this adds a dc health panel which will be used in the cluster dashboard

it shows the overall cluster status (or simply ok if no cluster defined)
with a symbol and text

then it shows the number of online and offline nodes

optionally it shows then the overall ceph health
of the connected node

if the api call for ceph fails 3 times, we stop it
the ceph status is hidden by default

for updating the cluster and node status, we have to call
updateStatus as a callback from a store which
loads the /api2/json/cluster/status call

we do not have our own store for this, because we will be using the store
which handles this in the component above

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/Makefile
www/manager6/dc/Health.js [new file with mode: 0644]