2640 Commits

Author SHA1 Message Date
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
Dominik Csapak
bbe1f86af3 fix jslint errors in ha resources
also the correct value for haGroupSelector is [] not '',
with this, the reset button works correctly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 16:44:03 +01:00
Dominik Csapak
91c191fb2d add lxc cpu and memory onlineHelp ids
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 16:41:34 +01:00
Dominik Csapak
9dfb0757f8 correctly hide helpButton in wizard
the property is "listenToGlobalEvent" not "listenGlobalEvent"

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 16:40:50 +01:00
Thomas Lamprecht
d30840d838 forbid decimals and exponent in HA resource edit numberfields
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-02 11:10:58 +01:00
Thomas Lamprecht
6643f07956 add 'delete_if_default' helper and use it
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-02 11:00:16 +01:00
Thomas Lamprecht
db0c652e1b add 'max_{relocate, restart}' fields to UI
The 'max_reloacte' and 'max_restart' properties can be set via CLI
and API for about a year, expose them to the user alsow via web
interface

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-10-31 16:36:05 +01:00
Thomas Lamprecht
b4167ff221 remove unnecessary trigraph
values['delete'] is always empty here, plus the code was buggy for
the case that it wasn't:

values['delete'] = values['delete'] ? ',group' : 'group';
                ^^^
         always overwrites values['delete'], even if not empty

So just drop it here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-10-31 16:34:53 +01:00
Dominik Csapak
52f2453864 change ceph diskselector field to devpath
in the field 'devpath' we get the correct path of the device from
udevadm, so use it here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-31 16:23:14 +01:00
Dominik Csapak
9897f8b642 forbid decimals and exponent in lxc cores field
because we only accept integers here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-31 16:17:15 +01:00
Dominik Csapak
d575fc9a7e show correct mouse cursor on help and settings button
this patch fixes that moving your mouse over the top help button or the
settings button, does not change your mouse cursor like on every other
link/button/etc

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-31 16:15:10 +01:00
Dietmar Maurer
7230e60f27 bump version to 4.3-10 2016-10-29 15:12:20 +02:00
Dietmar Maurer
318fa927ce LXC GUI: Wizard now uses new 'cores' option instead of cpulimit 2016-10-29 11:05:16 +02:00
Dominik Csapak
c39a3586b5 add cpu/memory usage, uptime to nodeview
this patch adds a custom progressbar widget  which changes color,
depending on the value, and adds cpu/memory usage and uptime as columns
to the nodeview
altough those columns are missing in the model/api call, this works , because we
inject the data in our data collectin loop and having the fields not in
the model, causes the store not to overwrite them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-29 08:46:50 +02:00
Dominik Csapak
2a20616a12 adds the dc health, guest, resources to cluster dashboard
this adds the panels to the cluster dashboard

to get the values, we add a listener to the PVE.data.ResourceStore
and iterate over all elements, collecting the data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-29 08:44:53 +02:00
Dominik Csapak
25838c4a85 change layout of dc summary and nodeview
this patch changes a few things:
 * instead of having the nodeview in full size, it is just a panel in
   the summary, similar to node/qemu/lxc summary
 * creates the store in the summary component, and not in the nodeview,
   because we need it later
 * makes most of the config options of the nodeview declarative, gets
   rid of the initcomponent
 * changes the 'online' yes/no to a check/x
 * makes the panel resizable with tools

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-29 08:43:06 +02:00
Dominik Csapak
0409e6b843 add guests panel
this adds a guests panel which will show the running/stopped/etc. guests
in the cluster dashboard

to update this, we have to call updateValues with the data

we do this, because in the component above, we will collect the data
after a load event of the PVE.data.Resources store, to avoid going
through this (sometimes large) list more than once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-29 08:39:16 +02:00
Dominik Csapak
b0821123ee 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>
2016-10-29 08:38:18 +02:00
Dominik Csapak
688a8c6a09 add some color definitions to css
this will be used throughout the cluster dashboard
for the font-awesome icons

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-29 08:35:08 +02:00
Dominik Csapak
a2cbb1b1fd add gaugeWidget
this adds a gaugeWidget panel, which will be used for the
cluster dashboard

it shows a title, a gauge (a half circle) with the percentage
in the center

over 59% the color is yellow,
over 89% the color is red

also you can add a text to the bottom

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-29 08:33:13 +02:00
Dominik Csapak
4a39a12b9c move dcNodeView into its own file
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-29 08:31:47 +02:00
Dietmar Maurer
f7c6f0cd55 bump version to 4.3-9 2016-10-29 07:52:58 +02:00
Dietmar Maurer
573af00062 use new CpuSet::max_cpuid() helper 2016-10-28 17:51:59 +02:00
Emmanuel Kasper
51bd9376b2 Fix #1186: do not run non installed commands
Conditionnally add commands which are not:
*  Debian packages whith priority Essential or Important,
* a dependency of pve-manager
2016-10-28 11:54:01 +02:00
Dominik Csapak
1808413c75 open my settings directly with click
instead of having a menu with one entry, directly open the my settings
window. also change the icon from a down caret to a gear, to make it
more visible

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-28 10:47:09 +02:00
Dominik Csapak
f17fb5f1c8 add 'my settings' to top bar
this adds a menu right to the username with an entry 'my settings',
this opens a window with (for now) browser specific settings
and a place to reset them

the plan would be to add password change, 2fa setup etc here

one remark: the reset layout button reloads the window,
to really apply the reset

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-28 09:46:25 +02:00
Dominik Csapak
e789b5f212 make login user name saveable
this patch adds a checkbox to the login window,
which uses the localstorage to save the username

if one is saved, set the textfield and move focus
to the password field

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-28 09:46:11 +02:00
Dominik Csapak
0bbd2ad671 show ha error state in tree and resource grid
with this patch, vms in an ha error state get an icon (reusing the node
offline icon) to indicate the error

in the resource grid, we also add the icon, and have an additional
column where we can display the ha state

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-28 09:35:05 +02:00
Dietmar Maurer
21071bd3ce code cleanup: avoid use of PVE::HA::Env (not necessary) 2016-10-28 09:32:35 +02:00
Dominik Csapak
ffc9000b7d 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
Dietmar Maurer
1e461caeba rebalance_lxc_containers: nicer logs, improve hotplug
We also need to handle the case when someone removes the 'cores'
setting from a container.
2016-10-28 07:09:08 +02:00
Dietmar Maurer
15961f21fb bump version to 4.3-8 2016-10-27 12:34:03 +02:00
Dietmar Maurer
c2f2e7d6a0 rebalance_lxc_containers: improve algorithm
This one avoids unnecessary cpuset changes (for example
when a guest is stopped).
2016-10-27 12:08:11 +02:00
Dietmar Maurer
ca9ef57cfe rebalance_lxc_containers: use cores instead of cpulimit 2016-10-27 09:08:38 +02:00
Dietmar Maurer
27cbe995ae pvestatd: log warnings to syslog 2016-10-26 15:58:23 +02:00
Dietmar Maurer
e3ac548de2 rebalance_lxc_containers: do not use vmstatus, call from updata_status
Simply use PVE::LXC::config_list() and test if there is a cgroup.
2016-10-26 15:47:08 +02:00
Dietmar Maurer
a33a9e5d65 rebalance_lxc_containers: use persistent container ordering 2016-10-26 12:55:58 +02:00
Dietmar Maurer
a642928fbc pvestatd: add simple container cpuset balancing 2016-10-26 12:00:13 +02:00
Fabian Grünbichler
db02a4de7b bump version to 4.3-7 2016-10-21 12:44:43 +02:00
Fabian Grünbichler
460dfe4c57 bump version to 4.3-6 2016-10-21 08:47:45 +02:00
Dominik Csapak
7f1eca8dc2 fix #1175: make error messages more verbose
the error messages for several input fields (e.g. snapshot name)
did not correctly reflect the regex which was checked

this patch adds additional information about the required format

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-20 17:25:57 +02:00
Emmanuel Kasper
ffdef67ce7 Add onlineHelp 2016-10-19 17:25:53 +02:00
Emmanuel Kasper
4aff45544e Use enable as adjective to match the Resource List panel
Since we describe a resource state, an adjective is also here a better match.
2016-10-19 17:25:36 +02:00
Emmanuel Kasper
4772e2a060 Close #1161: add hint when disabling a ha resource
Disabling a HA resource/service means that this
ressource will always be turned off.
However some users though this disabling HA management
for this VM, see
http://pve.proxmox.com/pipermail/pve-user/2016-October/011024.html

so we had a hint after clicking on the 'disable' checkbox, that
the checkbox is meant for shutdown
2016-10-19 17:25:20 +02:00
Emmanuel Kasper
4354e98dea Move out custom css style for hints in css class and use it 2016-10-19 17:24:28 +02:00
Dominik Csapak
be285dea66 fix 'NaN%' when max value is 0
when we get a max value of 0
(for example when a storage is not active)

the render function would show:
'NaN% (0B of 0B)'

because of a division by 0

this patch simply returns 'N/A' because
a max value of 0 should never be valid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-19 12:05:36 +02:00
Emmanuel Kasper
ccba60877b Move globally defined regexpes into PVE.Utils
Those globally defined regexpes were only used in Toolkit.js
2016-10-18 12:40:47 +02:00