2589 Commits

Author SHA1 Message Date
Dominik Csapak
290a3751af 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
cb38d277de 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
6fb47ebac9 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
013cc4d6c2 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
fe4f00adc9 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
b2f9a9e411 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
ee34f6e207 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
a98d034850 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
1d654cfe40 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
1e4a853c1e 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
9d5fbfc74a bump version to 4.3-10 2016-10-29 15:12:20 +02:00
Dietmar Maurer
92b5029f60 LXC GUI: Wizard now uses new 'cores' option instead of cpulimit 2016-10-29 11:05:16 +02:00
Dominik Csapak
1f8ff8418a 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
50a1eb7d40 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
cf8b372acc 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
23b126b2ba 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
0b659b8ef9 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
a3a29cc8d2 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
f36edd909a 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
cd81cc2a8e 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
eb2ecb5b8f bump version to 4.3-9 2016-10-29 07:52:58 +02:00
Dietmar Maurer
ccfff9204e use new CpuSet::max_cpuid() helper 2016-10-28 17:51:59 +02:00
Emmanuel Kasper
470c35151c 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
d0cbdb2beb 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
ce11a8afd0 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
6553249512 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
2b2fe160f5 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
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
Dietmar Maurer
8b750abc3e 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
dfed0ae09a bump version to 4.3-8 2016-10-27 12:34:03 +02:00
Dietmar Maurer
2499255bb9 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
09fee7559b rebalance_lxc_containers: use cores instead of cpulimit 2016-10-27 09:08:38 +02:00
Dietmar Maurer
780fbb4b2a pvestatd: log warnings to syslog 2016-10-26 15:58:23 +02:00
Dietmar Maurer
e0dc09ad0f 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
07f9595f80 rebalance_lxc_containers: use persistent container ordering 2016-10-26 12:55:58 +02:00
Dietmar Maurer
41db757b13 pvestatd: add simple container cpuset balancing 2016-10-26 12:00:13 +02:00
Fabian Grünbichler
11b450e73d bump version to 4.3-7 2016-10-21 12:44:43 +02:00
Fabian Grünbichler
f2fc3937b8 bump version to 4.3-6 2016-10-21 08:47:45 +02:00
Dominik Csapak
f02c063d42 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
41d895b892 Add onlineHelp 2016-10-19 17:25:53 +02:00
Emmanuel Kasper
cc73255676 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
390b85553a 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
aeae272a86 Move out custom css style for hints in css class and use it 2016-10-19 17:24:28 +02:00
Dominik Csapak
bab64974a5 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
c15c61d3e8 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
Emmanuel Kasper
9fa2e36d3a Turn PVE.Utils into a singleton
This will allow us to add contructed values ( regexp a = stringA + stringB )
into the constructor.
Access to the PVE.Utils properties and methods stays the same.
2016-10-18 12:40:28 +02:00
Fabian Grünbichler
f0bbc08419 restrict vzdump cron options
modeled after the VZDump API path, but since we are
restricted to Sys.Modify users already, we only need to
restrict these three options.
2016-10-17 10:36:06 +02:00
Dietmar Maurer
92b8e1f05f bump version to 4.3-5 2016-10-14 09:02:07 +02:00
Dietmar Maurer
4ea55500a4 pveversion: add smartmontools 2016-10-14 08:59:24 +02:00