]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
7 years agorefactor health icons
Dominik Csapak [Tue, 22 Nov 2016 11:32:10 +0000 (12:32 +0100)]
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>
7 years agoimprove green and red colors
Dominik Csapak [Tue, 22 Nov 2016 11:32:09 +0000 (12:32 +0100)]
improve green and red colors

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agochange the ha resources columns
Dominik Csapak [Tue, 22 Nov 2016 11:07:31 +0000 (12:07 +0100)]
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>
7 years agomerge ha resources into the ha status panel
Dominik Csapak [Tue, 22 Nov 2016 11:07:30 +0000 (12:07 +0100)]
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>
7 years agoadd the haStatus panel
Dominik Csapak [Tue, 22 Nov 2016 11:07:29 +0000 (12:07 +0100)]
add the haStatus panel

for the new status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd new fields to ha models
Dominik Csapak [Tue, 22 Nov 2016 11:07:28 +0000 (12:07 +0100)]
add new fields to ha models

to be prepared for the new ha status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoConfigPanel: automatically expand node in selectById()
Dietmar Maurer [Mon, 21 Nov 2016 12:02:01 +0000 (13:02 +0100)]
ConfigPanel: automatically expand node in selectById()

This is only used for automated tests.

7 years agoResources.js: s/enabled/started/
Dietmar Maurer [Sat, 19 Nov 2016 09:38:04 +0000 (10:38 +0100)]
Resources.js: s/enabled/started/

7 years agoha resource edit: adapt to new service state
Thomas Lamprecht [Fri, 18 Nov 2016 16:14:34 +0000 (17:14 +0100)]
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>
7 years agodo not show current node in migration window
Thomas Lamprecht [Thu, 17 Nov 2016 14:00:40 +0000 (15:00 +0100)]
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>
7 years agoNodeSelector: add disallowedNodes configuration property
Thomas Lamprecht [Thu, 17 Nov 2016 15:49:54 +0000 (16:49 +0100)]
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>
7 years agoadd kvcombobox validator
Dominik Csapak [Fri, 18 Nov 2016 09:13:37 +0000 (10:13 +0100)]
add kvcombobox validator

this enables validation of all kvcomboboxes, including
multiselect

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake pool members grid stateful
Dominik Csapak [Tue, 8 Nov 2016 09:50:51 +0000 (10:50 +0100)]
make pool members grid stateful

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoenable certificate pinning for proxied requests
Fabian Grünbichler [Thu, 17 Nov 2016 10:36:32 +0000 (11:36 +0100)]
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).

7 years agopass proxied to node to proxy_request
Fabian Grünbichler [Wed, 16 Nov 2016 13:24:14 +0000 (14:24 +0100)]
pass proxied to node to proxy_request

in addition to proxied to IP

7 years agocheck for lxc instead of openvz in the backup window
Dominik Csapak [Thu, 17 Nov 2016 14:44:03 +0000 (15:44 +0100)]
check for lxc instead of openvz in the backup window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomove onlineHelp from FirewallAliasEdit to FirewallAliases
Dominik Csapak [Tue, 8 Nov 2016 09:52:26 +0000 (10:52 +0100)]
move onlineHelp from FirewallAliasEdit to FirewallAliases

since the first is a window, not the grid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove border from ceph crushmap/config panel
Dominik Csapak [Tue, 8 Nov 2016 09:52:25 +0000 (10:52 +0100)]
remove border from ceph crushmap/config panel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake storage/template grid stateful
Dominik Csapak [Tue, 8 Nov 2016 09:50:50 +0000 (10:50 +0100)]
make storage/template grid stateful

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake lxc/qemu snapshot/network grids stateful
Dominik Csapak [Tue, 8 Nov 2016 09:50:49 +0000 (10:50 +0100)]
make lxc/qemu snapshot/network grids stateful

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake backupview stateful
Dominik Csapak [Tue, 8 Nov 2016 09:50:48 +0000 (10:50 +0100)]
make backupview stateful

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake ceph panels/grids stateful
Dominik Csapak [Tue, 8 Nov 2016 09:50:47 +0000 (10:50 +0100)]
make ceph panels/grids stateful

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake update/disk/network and task grid stateful
Dominik Csapak [Tue, 8 Nov 2016 09:50:46 +0000 (10:50 +0100)]
make update/disk/network and task grid stateful

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake user/acl/auth grids stateful
Dominik Csapak [Tue, 8 Nov 2016 09:50:45 +0000 (10:50 +0100)]
make user/acl/auth grids stateful

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake firewall panels/grids stateful
Dominik Csapak [Tue, 8 Nov 2016 09:50:44 +0000 (10:50 +0100)]
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>
7 years agomake backup/storage/ha resources/ha groups grid stateful
Dominik Csapak [Tue, 8 Nov 2016 09:50:43 +0000 (10:50 +0100)]
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>
7 years agoremove reset columns button from resource grid
Dominik Csapak [Tue, 8 Nov 2016 09:50:42 +0000 (10:50 +0100)]
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>
7 years agoVZDump: die with error if plugin loading fails
Stefan Priebe [Wed, 16 Nov 2016 19:08:28 +0000 (20:08 +0100)]
VZDump: die with error if plugin loading fails

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
7 years agoadd sheepdog and gluster to pveproxy.service
Fabian Grünbichler [Tue, 15 Nov 2016 09:26:39 +0000 (10:26 +0100)]
add sheepdog and gluster to pveproxy.service

this ensures proper ordering for starting on boot and
stopping on shutdown.

7 years agoAPI2Client: allow to set ssl options
Dietmar Maurer [Sun, 13 Nov 2016 08:51:57 +0000 (09:51 +0100)]
API2Client: allow to set ssl options

and use /etc/pve/pve-root-ca.pem as default CA.

7 years agoAPI2Client: avoid perl warning
Dietmar Maurer [Sun, 13 Nov 2016 08:24:31 +0000 (09:24 +0100)]
API2Client: avoid perl warning

7 years agonew helper call_menu_handler
Dietmar Maurer [Sat, 12 Nov 2016 11:45:21 +0000 (12:45 +0100)]
new helper call_menu_handler

7 years agoConfigPanel: added helper selectById()
Dietmar Maurer [Fri, 11 Nov 2016 16:11:19 +0000 (17:11 +0100)]
ConfigPanel: added helper selectById()

for test automation

7 years agoResourceTree.js: return value in selectById
Dietmar Maurer [Fri, 11 Nov 2016 14:52:52 +0000 (15:52 +0100)]
ResourceTree.js: return value in selectById

So that automation tools can see success.

7 years agolxc: don't show an empty ssh-public-key field in summary
Dietmar Maurer [Thu, 10 Nov 2016 15:15:32 +0000 (16:15 +0100)]
lxc: don't show an empty ssh-public-key field in summary

7 years agoadd activeTitle helper
Dietmar Maurer [Thu, 10 Nov 2016 10:33:00 +0000 (11:33 +0100)]
add activeTitle helper

7 years agofix #1196: make restriced/nofailback boolean in gui
Dominik Csapak [Mon, 7 Nov 2016 11:05:06 +0000 (12:05 +0100)]
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>
7 years agodisable rules copy button if not 'in' or 'out' rule
Dominik Csapak [Thu, 6 Oct 2016 12:55:57 +0000 (14:55 +0200)]
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>
7 years agoBackupEdit, cleanup: remove insideUpdate construct
Thomas Lamprecht [Wed, 5 Oct 2016 09:34:17 +0000 (11:34 +0200)]
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>
7 years agoAdd ECDH curves to use with modern ciphers
Jos Ewert [Wed, 2 Nov 2016 23:18:37 +0000 (00:18 +0100)]
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
7 years agoonly allow integers in memoryfield
Dominik Csapak [Wed, 2 Nov 2016 15:57:13 +0000 (16:57 +0100)]
only allow integers in memoryfield

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd pveIntegerField and use it
Dominik Csapak [Wed, 2 Nov 2016 15:57:12 +0000 (16:57 +0100)]
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>
7 years agoremove unnecessary onlineHelp property
Dominik Csapak [Wed, 2 Nov 2016 15:57:11 +0000 (16:57 +0100)]
remove unnecessary onlineHelp property

we already defined it in the inputpanel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomove onlineHelp into classes from definition
Dominik Csapak [Wed, 2 Nov 2016 15:57:10 +0000 (16:57 +0100)]
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>
7 years agofix jslint errors in ha resources
Dominik Csapak [Wed, 2 Nov 2016 11:50:42 +0000 (12:50 +0100)]
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>
7 years agoadd lxc cpu and memory onlineHelp ids
Dominik Csapak [Wed, 2 Nov 2016 11:50:41 +0000 (12:50 +0100)]
add lxc cpu and memory onlineHelp ids

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agocorrectly hide helpButton in wizard
Dominik Csapak [Wed, 2 Nov 2016 11:50:40 +0000 (12:50 +0100)]
correctly hide helpButton in wizard

the property is "listenToGlobalEvent" not "listenGlobalEvent"

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoforbid decimals and exponent in HA resource edit numberfields
Thomas Lamprecht [Wed, 2 Nov 2016 09:31:20 +0000 (10:31 +0100)]
forbid decimals and exponent in HA resource edit numberfields

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoadd 'delete_if_default' helper and use it
Thomas Lamprecht [Wed, 2 Nov 2016 09:31:19 +0000 (10:31 +0100)]
add 'delete_if_default' helper and use it

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoadd 'max_{relocate, restart}' fields to UI
Thomas Lamprecht [Mon, 31 Oct 2016 10:07:00 +0000 (11:07 +0100)]
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>
7 years agoremove unnecessary trigraph
Thomas Lamprecht [Mon, 31 Oct 2016 10:06:59 +0000 (11:06 +0100)]
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>
7 years agochange ceph diskselector field to devpath
Dominik Csapak [Mon, 31 Oct 2016 11:10:11 +0000 (12:10 +0100)]
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>
7 years agoforbid decimals and exponent in lxc cores field
Dominik Csapak [Mon, 31 Oct 2016 11:10:10 +0000 (12:10 +0100)]
forbid decimals and exponent in lxc cores field

because we only accept integers here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoshow correct mouse cursor on help and settings button
Dominik Csapak [Mon, 31 Oct 2016 11:10:09 +0000 (12:10 +0100)]
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>
7 years agobump version to 4.3-10
Dietmar Maurer [Sat, 29 Oct 2016 13:12:20 +0000 (15:12 +0200)]
bump version to 4.3-10

7 years agoLXC GUI: Wizard now uses new 'cores' option instead of cpulimit
Dietmar Maurer [Sat, 29 Oct 2016 09:05:16 +0000 (11:05 +0200)]
LXC GUI: Wizard now uses new 'cores' option instead of cpulimit

7 years agoadd cpu/memory usage, uptime to nodeview
Dominik Csapak [Fri, 28 Oct 2016 11:11:48 +0000 (13:11 +0200)]
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>
7 years agoadds the dc health, guest, resources to cluster dashboard
Dominik Csapak [Fri, 28 Oct 2016 11:11:47 +0000 (13:11 +0200)]
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>
7 years agochange layout of dc summary and nodeview
Dominik Csapak [Fri, 28 Oct 2016 11:11:46 +0000 (13:11 +0200)]
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>
7 years agoadd guests panel
Dominik Csapak [Fri, 28 Oct 2016 11:11:45 +0000 (13:11 +0200)]
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>
7 years agoadd dc health panel
Dominik Csapak [Fri, 28 Oct 2016 11:11:44 +0000 (13:11 +0200)]
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>
7 years agoadd some color definitions to css
Dominik Csapak [Fri, 28 Oct 2016 11:11:43 +0000 (13:11 +0200)]
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>
7 years agoadd gaugeWidget
Dominik Csapak [Fri, 28 Oct 2016 11:11:42 +0000 (13:11 +0200)]
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>
7 years agomove dcNodeView into its own file
Dominik Csapak [Fri, 28 Oct 2016 11:11:41 +0000 (13:11 +0200)]
move dcNodeView into its own file

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 4.3-9
Dietmar Maurer [Sat, 29 Oct 2016 05:52:58 +0000 (07:52 +0200)]
bump version to 4.3-9

7 years agouse new CpuSet::max_cpuid() helper
Dietmar Maurer [Fri, 28 Oct 2016 15:50:13 +0000 (17:50 +0200)]
use new CpuSet::max_cpuid() helper

7 years agoFix #1186: do not run non installed commands
Emmanuel Kasper [Fri, 28 Oct 2016 08:56:40 +0000 (10:56 +0200)]
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

7 years agoopen my settings directly with click
Dominik Csapak [Fri, 28 Oct 2016 08:05:52 +0000 (10:05 +0200)]
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>
7 years agoadd 'my settings' to top bar
Dominik Csapak [Mon, 24 Oct 2016 11:54:01 +0000 (13:54 +0200)]
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>
7 years agomake login user name saveable
Dominik Csapak [Mon, 24 Oct 2016 11:54:00 +0000 (13:54 +0200)]
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>
7 years agoshow ha error state in tree and resource grid
Dominik Csapak [Tue, 25 Oct 2016 12:12:23 +0000 (14:12 +0200)]
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>
7 years agocode cleanup: avoid use of PVE::HA::Env (not necessary)
Dietmar Maurer [Fri, 28 Oct 2016 07:32:35 +0000 (09:32 +0200)]
code cleanup: avoid use of PVE::HA::Env (not necessary)

7 years agoadd hastate to /cluster/resources api call
Dominik Csapak [Tue, 25 Oct 2016 12:12:22 +0000 (14:12 +0200)]
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>
7 years agorebalance_lxc_containers: nicer logs, improve hotplug
Dietmar Maurer [Fri, 28 Oct 2016 05:09:08 +0000 (07:09 +0200)]
rebalance_lxc_containers: nicer logs, improve hotplug

We also need to handle the case when someone removes the 'cores'
setting from a container.

7 years agobump version to 4.3-8
Dietmar Maurer [Thu, 27 Oct 2016 10:34:03 +0000 (12:34 +0200)]
bump version to 4.3-8

7 years agorebalance_lxc_containers: improve algorithm
Dietmar Maurer [Thu, 27 Oct 2016 10:08:11 +0000 (12:08 +0200)]
rebalance_lxc_containers: improve algorithm

This one avoids unnecessary cpuset changes (for example
when a guest is stopped).

7 years agorebalance_lxc_containers: use cores instead of cpulimit
Dietmar Maurer [Thu, 27 Oct 2016 07:08:38 +0000 (09:08 +0200)]
rebalance_lxc_containers: use cores instead of cpulimit

7 years agopvestatd: log warnings to syslog
Dietmar Maurer [Wed, 26 Oct 2016 13:58:23 +0000 (15:58 +0200)]
pvestatd: log warnings to syslog

7 years agorebalance_lxc_containers: do not use vmstatus, call from updata_status
Dietmar Maurer [Wed, 26 Oct 2016 13:47:08 +0000 (15:47 +0200)]
rebalance_lxc_containers: do not use vmstatus, call from updata_status

Simply use PVE::LXC::config_list() and test if there is a cgroup.

7 years agorebalance_lxc_containers: use persistent container ordering
Dietmar Maurer [Wed, 26 Oct 2016 10:55:58 +0000 (12:55 +0200)]
rebalance_lxc_containers: use persistent container ordering

7 years agopvestatd: add simple container cpuset balancing
Dietmar Maurer [Wed, 26 Oct 2016 10:00:13 +0000 (12:00 +0200)]
pvestatd: add simple container cpuset balancing

7 years agobump version to 4.3-7
Fabian Grünbichler [Fri, 21 Oct 2016 10:44:43 +0000 (12:44 +0200)]
bump version to 4.3-7

7 years agobump version to 4.3-6
Fabian Grünbichler [Fri, 21 Oct 2016 06:47:45 +0000 (08:47 +0200)]
bump version to 4.3-6

7 years agofix #1175: make error messages more verbose
Dominik Csapak [Thu, 20 Oct 2016 11:51:43 +0000 (13:51 +0200)]
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>
7 years agoAdd onlineHelp
Emmanuel Kasper [Wed, 19 Oct 2016 12:17:45 +0000 (14:17 +0200)]
Add onlineHelp

7 years agoUse enable as adjective to match the Resource List panel
Emmanuel Kasper [Wed, 19 Oct 2016 12:17:44 +0000 (14:17 +0200)]
Use enable as adjective to match the Resource List panel

Since we describe a resource state, an adjective is also here a better match.

7 years agoClose #1161: add hint when disabling a ha resource
Emmanuel Kasper [Wed, 19 Oct 2016 12:17:43 +0000 (14:17 +0200)]
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

7 years agoMove out custom css style for hints in css class and use it
Emmanuel Kasper [Wed, 19 Oct 2016 12:17:42 +0000 (14:17 +0200)]
Move out custom css style for hints in css class and use it

7 years agofix 'NaN%' when max value is 0
Dominik Csapak [Wed, 12 Oct 2016 10:04:36 +0000 (12:04 +0200)]
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>
7 years agoMove globally defined regexpes into PVE.Utils
Emmanuel Kasper [Tue, 18 Oct 2016 10:13:56 +0000 (12:13 +0200)]
Move globally defined regexpes into PVE.Utils

Those globally defined regexpes were only used in Toolkit.js

7 years agoTurn PVE.Utils into a singleton
Emmanuel Kasper [Tue, 18 Oct 2016 10:13:55 +0000 (12:13 +0200)]
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.

7 years agorestrict vzdump cron options
Fabian Grünbichler [Mon, 17 Oct 2016 08:14:22 +0000 (10:14 +0200)]
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.

7 years agobump version to 4.3-5
Dietmar Maurer [Fri, 14 Oct 2016 07:02:07 +0000 (09:02 +0200)]
bump version to 4.3-5

7 years agopveversion: add smartmontools
Dietmar Maurer [Fri, 14 Oct 2016 06:59:24 +0000 (08:59 +0200)]
pveversion: add smartmontools

7 years agopveversion: add pve-docs package
Dietmar Maurer [Fri, 14 Oct 2016 06:57:51 +0000 (08:57 +0200)]
pveversion: add pve-docs package

7 years agobump version to 4.3-4
Dietmar Maurer [Thu, 13 Oct 2016 09:29:03 +0000 (11:29 +0200)]
bump version to 4.3-4

7 years agouse auto-generated block IDs to reference online docu.
Dietmar Maurer [Thu, 13 Oct 2016 09:26:06 +0000 (11:26 +0200)]
use auto-generated block IDs to reference online docu.

7 years agofix lint error
Dietmar Maurer [Thu, 13 Oct 2016 07:40:33 +0000 (09:40 +0200)]
fix lint error

7 years agovzdump: move restricted API parameters check
Fabian Grünbichler [Wed, 12 Oct 2016 13:30:20 +0000 (15:30 +0200)]
vzdump: move restricted API parameters check

for better visibility and earlier error detection

7 years agovzdump: document restricted API parameters
Fabian Grünbichler [Wed, 12 Oct 2016 13:30:19 +0000 (15:30 +0200)]
vzdump: document restricted API parameters