2836 Commits

Author SHA1 Message Date
Dominik Csapak
86c4c1e18c fix #1208: add ballooning checkbox to memory edit
when using fixed memory size, we implicitly deleted shares and
ballon, which removed a (manually) set balloon: 0,

to be able to set this via the gui, we add a checkbox to the fixed
memory edit (using variable memory always needs ballooning)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 16:39:12 +01:00
Dominik Csapak
f5096e8e39 check for array in disallowednodes filter
extjs throws an error if disallowednodes is not an array,
so we need to check this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 16:38:29 +01:00
Dominik Csapak
c764a82620 add new ceph dashboard
this patch changes the ceph dashboard

now we show the information in a more graphical way, namely:

the overall status is displayed by a big icon (+health)
the warnings/errors are in a list (with severity)

we show more detailed information about monitors, osds, and pgs

we show the usage of the cluster as a gauge graph, and
the reads, writes and iops as running charts (the last 5 minutes)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 16:38:11 +01:00
Dominik Csapak
4ded5a5c6a 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
Dominik Csapak
fea2fbae48 add runningchart widget
this adds a new component 'runningchart', which is a simple linegraph

you define a timeFrame (default 5*60 seconds), and you regularly add
datapoints to it, and the graph shows the last timeFrame seconds of it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 16:37:24 +01:00
Dominik Csapak
5e2627d3bd refactor health status widget and ceph status data
this adds a new component health widget, used for cluster and ceph
status

also refactor ceph error levels and ceph status data into PVE.Utils

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 16:37:09 +01:00
Dominik Csapak
7d2c8e49dd refactor health icons
instead of setting them manually every time, factor them out in a
get_health_icon function

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 16:36:46 +01:00
Dominik Csapak
a0db524cbe improve green and red colors
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 16:36:16 +01:00
Dominik Csapak
9eb1d8ee70 change the ha resources columns
rename Request State to State, and add the request_state and crm_state
as hidden columns (so that the user can display them if they want)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 12:30:36 +01:00
Dominik Csapak
fba0a1d89e merge ha resources into the ha status panel
this changes the ha status view and ha resources view, so that they take
an rstore and use that instead of a new one

we do this, so that we can display the status and the resources grid
with one api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 12:30:05 +01:00
Dominik Csapak
12613b2e62 add the haStatus panel
for the new status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 12:29:09 +01:00
Dominik Csapak
aa16b83f62 add new fields to ha models
to be prepared for the new ha status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-22 12:28:28 +01:00
Dietmar Maurer
75424963d6 ConfigPanel: automatically expand node in selectById()
This is only used for automated tests.
2016-11-21 13:02:01 +01:00
Dietmar Maurer
0ebabc3c5b Resources.js: s/enabled/started/ 2016-11-19 10:38:04 +01:00
Thomas Lamprecht
130668cfb5 ha resource edit: adapt to new service state
Add the new stopped state to the ResourceEdit panel.
Rename enabled state to started as done in ha-manager.

As 'enabled' is now the wrong label use the more correct label
'Request state', for both the resource edit window and the grid
column.

Do this by replacing the checkbox with a KVCombogrid.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-19 10:20:04 +01:00
Thomas Lamprecht
6f7ca2f310 do not show current node in migration window
As we cannot migrate to the source node do not show it in the
migration window's node selector.

Fixes #1049 partly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-19 09:51:48 +01:00
Thomas Lamprecht
b6eb65687b NodeSelector: add disallowedNodes configuration property
This can be used to mask out some nodes from the node selector.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-19 09:51:14 +01:00
Dominik Csapak
a7c2cda748 add kvcombobox validator
this enables validation of all kvcomboboxes, including
multiselect

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-18 10:30:08 +01:00
Dominik Csapak
5ae11b3b8d make pool members grid stateful
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-18 10:21:37 +01:00
Fabian Grünbichler
333dd203d5 enable certificate pinning for proxied requests
when forwarding an API request to the responsible node,
only accept the certificate that this node should have
according to the contents of the cluster file system.

to limit performance issues, cache certificate fingerprint
on first request for each node, and only regenerate cache
(at most once per minute) if the actual encountered
fingerprint does not match or every 30 minutes (to clear out
old entries).
2016-11-17 15:55:17 +01:00
Fabian Grünbichler
b92cdcc9d3 pass proxied to node to proxy_request
in addition to proxied to IP
2016-11-17 15:52:53 +01:00
Dominik Csapak
a833cced4f check for lxc instead of openvz in the backup window
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 15:49:21 +01:00
Dominik Csapak
99dc2644bb move onlineHelp from FirewallAliasEdit to FirewallAliases
since the first is a window, not the grid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:17:38 +01:00
Dominik Csapak
dfdf4e3034 remove border from ceph crushmap/config panel
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:17:31 +01:00
Dominik Csapak
3168bc8278 make storage/template grid stateful
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:17:10 +01:00
Dominik Csapak
7499e27bed make lxc/qemu snapshot/network grids stateful
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:17:02 +01:00
Dominik Csapak
69c9d883d6 make backupview stateful
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:16:52 +01:00
Dominik Csapak
89dc4c3b44 make ceph panels/grids stateful
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:16:44 +01:00
Dominik Csapak
60d337128c make update/disk/network and task grid stateful
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:16:38 +01:00
Dominik Csapak
3190457463 make user/acl/auth grids stateful
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:16:30 +01:00
Dominik Csapak
8504ce2ad9 make firewall panels/grids stateful
to save the columns/layouts in the browsers local storage

also change width to string (or else jslint complains)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:16:23 +01:00
Dominik Csapak
7b5f3d7cfa make backup/storage/ha resources/ha groups grid stateful
so that the column changes are saved in the browsers local storage

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:16:15 +01:00
Dominik Csapak
251ec9cd0b remove reset columns button from resource grid
since we now have the client settings, we do not need this anymore

also rename the stateid to 'grid-resource'
(we want to establish a convention to differentiate between saved local
storage items)

the whole saveCurrentState logic was not really necessary, so we can drop this too

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-17 09:16:07 +01:00
Stefan Priebe
e4fa1887e0 VZDump: die with error if plugin loading fails
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2016-11-17 07:06:38 +01:00
Fabian Grünbichler
66abb41d7b add sheepdog and gluster to pveproxy.service
this ensures proper ordering for starting on boot and
stopping on shutdown.
2016-11-15 12:10:14 +01:00
Dietmar Maurer
63ebc96689 API2Client: allow to set ssl options
and use /etc/pve/pve-root-ca.pem as default CA.
2016-11-13 09:51:57 +01:00
Dietmar Maurer
a494288978 API2Client: avoid perl warning 2016-11-13 09:24:31 +01:00
Dietmar Maurer
297d88015e new helper call_menu_handler 2016-11-12 12:45:21 +01:00
Dietmar Maurer
f71ad9d6f4 ConfigPanel: added helper selectById()
for test automation
2016-11-11 17:11:19 +01:00
Dietmar Maurer
aadd1a1f52 ResourceTree.js: return value in selectById
So that automation tools can see success.
2016-11-11 15:52:52 +01:00
Dietmar Maurer
7a5ada3245 lxc: don't show an empty ssh-public-key field in summary 2016-11-10 16:15:32 +01:00
Dietmar Maurer
d2d65f1d5b add activeTitle helper 2016-11-10 11:33:53 +01:00
Dominik Csapak
ac47b0d215 fix #1196: make restriced/nofailback boolean in gui
since we get the string "0" from the backend if the line is in the
groups.cfg, we have to set the field to type boolean, or the string will
always be interpreted as true

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-10 10:02:11 +01:00
Dominik Csapak
f223afc59a disable rules copy button if not 'in' or 'out' rule
else you could always click the button, but
nothing would happen

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-10 10:01:57 +01:00
Thomas Lamprecht
2ed889126e BackupEdit, cleanup: remove insideUpdate construct
insideUpdate protects for a endless loop which gets caused if the sm
selection change callback updates vmidField which then triggers the
vmidField change callback which updates the selection model again,
and the circle starts again.

As this construct is rather confusing when looking first at the code
replace it with a temporary suspend of the change event during the
vmidField update.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-10 09:56:05 +01:00
Jos Ewert
da356293f7 Add ECDH curves to use with modern ciphers
This patch adds curves to use with TLS_ECDHE_* ciphers
They will automatically be used be the proxy as they are
in the HIGH ciphersuite.

This patch uses the prime256v1 curve, which should be supported
by most clients. openssl 1.0.1 only supports a single curve.

This also forces the use of new DHE and ECDHE keys on every
handshake. This does not seem to have an impact on performance.

Signed-Off-By: Jos Ewert flami@flami.net
2016-11-08 09:32:40 +01:00
Dominik Csapak
e2636c7d0c only allow integers in memoryfield
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 17:14:54 +01:00
Dominik Csapak
9346100128 add pveIntegerField and use it
this adds a subclass of Ext.form.field.Number with the settings for
Integers (allowDecimals: false and allowExponential: false and default
step size 1)

and use it where we only accept integers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 17:14:06 +01:00
Dominik Csapak
2b95d90f66 remove unnecessary onlineHelp property
we already defined it in the inputpanel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 17:13:24 +01:00
Dominik Csapak
d4eb9a856b move onlineHelp into classes from definition
this patch moves the onlineHelp ids into the javascript classes, instead
of defining them where we use the classes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 17:13:12 +01:00