Commit Graph

28 Commits

Author SHA1 Message Date
Dominik Csapak
0c8d740228 fix diffstore issue with clusterlog
extjs cannot "convert" and id from other fields, so the ids in the
diffstore and the realstore are different and we re-add every element on
every update

to mitigate this, we generate the id (which is "uid:hostname") in the
backend, and simply use it in the frontend

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-10 11:09:46 +01:00
Dietmar Maurer
ac04fb558b plug new ClusterConfig API at /cluster/config 2016-11-29 12:08:39 +01:00
Dietmar Maurer
b67dc872ac code cleanup: avoid use of PVE::HA::Env (not necessary) 2016-10-28 09:32:35 +02:00
Dominik Csapak
c6e94f4224 add hastate to /cluster/resources api call
this adds a hastate field to all vms/ct which have ha enabled

we will use this for showing the error state in the tree (in the webgui)
and for the cluster dashboard (to count the error state guests)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-28 09:22:37 +02:00
Wolfgang Bumiller
c37f23f53b fix undefined value warning in resources api call
With the new calculation $pe->{maxcpu} was used before being
initialized to zero. Moving the initialization up.
Additionally setting $pe->{cpu} to $entry->{cpu} if maxcpu
is not set seems pointless as with its factor (maxcpu)
initialized to zero it is cancelled out anyway.
2016-07-07 08:15:15 +02:00
Dominik Csapak
ffe31eeacd fix #1030: calculate correct cpu usage of pools
we only added the % of the vms in a pool
which lead to wrong results
e.g. having a pool with 3 vms with 4 cores each and a
cpu usage of 50% each (2 cores at 100%)
lead to :

vm1	50%
vm2	50%
vm3	50%
pool	150%

instead we new calculate the percentage for the whole pool

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-01 11:10:37 +02:00
Wolfgang Bumiller
5301228562 fix a remote_node_ip calling context
Using remote_node_ip to build a hash needs to explicitly
request a scalar context.
2015-07-30 08:58:04 +02:00
Dietmar Maurer
91d7c7aa00 API change: /cluster/status - do not use clustat 2015-06-02 11:05:30 +02:00
Dietmar Maurer
c608873a5c GUI: add pool view 2014-08-13 08:06:18 +02:00
Dietmar Maurer
4a07fcedb7 depend on pve-firewall, connect firewall API 2014-05-06 12:43:41 +02:00
Dietmar Maurer
10cdf3ae1a fix bug 178: correctly verify if VMID is already used 2012-09-05 09:42:18 +02:00
Dietmar Maurer
16b69b6c3e add subscription status to datacenter summary 2012-03-26 10:39:10 +02:00
Dietmar Maurer
940e4d9ea6 fix pool stats 2012-02-10 08:32:17 +01:00
Dietmar Maurer
449f1b5d2f require Sys.Audit to read cluster status 2012-02-06 11:23:30 +01:00
Dietmar Maurer
a285f01438 add/improve pool permission check 2012-01-31 09:10:35 +01:00
Dietmar Maurer
19a6b9f1ff implement PoolMember GUI 2012-01-30 12:02:56 +01:00
Dietmar Maurer
84916eb2d9 render resource pools 2012-01-30 07:09:47 +01:00
Dietmar Maurer
7d020b4246 implement new check attribute for permissions.
We use a simple prefix notation to express complex expressions.
2012-01-23 12:18:27 +01:00
Dietmar Maurer
e4d554ba9b implement PasswordEdit dialog
And cleanup permission check code.
2012-01-20 12:56:48 +01:00
Dietmar Maurer
a0af013278 add Datacenter summary 2011-12-23 11:23:04 +01:00
Dietmar Maurer
a06a3eacf5 start adding HA Config 2011-12-21 14:36:59 +01:00
Dietmar Maurer
badcb8d162 allow to filter specific resource types 2011-10-25 13:10:54 +02:00
Dietmar Maurer
ac27b58d10 finnish and cleanup vzdump API 2011-10-25 09:28:55 +02:00
Dietmar Maurer
7cdf443cb0 add vzdump cron API 2011-10-24 12:59:31 +02:00
Dietmar Maurer
8835373de1 fix node status when no cluster configured 2011-09-29 07:08:01 +02:00
Dietmar Maurer
bc7bff8e4f check if nodes are online 2011-09-19 13:15:26 +02:00
Dietmar Maurer
4380b8d9ce avoid interger conversion warnings 2011-09-19 11:08:39 +02:00
Dietmar Maurer
beb651ee65 removed automake/autoconf, removed unused files 2011-08-23 16:11:04 +02:00