Commit Graph

2920 Commits

Author SHA1 Message Date
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
Dietmar Maurer
42e237c3c5 pveversion: add pve-docs package 2016-10-14 08:57:51 +02:00
Dietmar Maurer
e1f00bc6e1 bump version to 4.3-4 2016-10-13 11:29:03 +02:00
Dietmar Maurer
c8802a60b7 use auto-generated block IDs to reference online docu. 2016-10-13 11:26:06 +02:00
Dietmar Maurer
3d9a210f55 fix lint error 2016-10-13 09:40:33 +02:00
Fabian Grünbichler
6d0507a87a vzdump: move restricted API parameters check
for better visibility and earlier error detection
2016-10-12 17:30:45 +02:00
Fabian Grünbichler
eb2d6fd390 vzdump: document restricted API parameters 2016-10-12 17:30:26 +02:00
Emmanuel Kasper
88ecfbdbda Fix jslint warning: 'sortedList' is already defined
sortedList was defined twice in the function
remove the declaration at the beginning of function as declaring a var
just before using it is more similar to the rest of code
2016-10-11 07:02:57 +02:00
Emmanuel Kasper
e2d725633e Move bus priority list to OSDefaults
So a field container does not need to know if Linux likes SCSI.
2016-10-11 07:02:33 +02:00
Emmanuel Kasper
78a5e21e4c make Win XP and Win 2003 use the same defaults as Win 2000
(this means: rtl8139 as nic and lsi as hardware controller)

XP & 2003 ISO E1000 drivers are missing or do not work with Qemu
(source: https://pve.proxmox.com/wiki/Windows_2003_guest_best_practices)
(source: https://pve.proxmox.com/wiki/Windows_XP_Guest_Notes)

The lsi SCSI controller was the default SCSI controller until recently and works with Win2003.
(NB: An IDE controller is still selected during installation for these OSes)

The aim is to provide an out-of-the box besser experience when using the Create Wizard.

NB: we have a distinct OS type between wxp and w2k3 in QemuServer.pm but since they
use the same defaults we can still wxp for both of those.
2016-10-11 06:47:40 +02:00
Dietmar Maurer
2b20e2beb6 bump version to 4.3-3 2016-10-07 11:46:40 +02:00
Thomas Lamprecht
2c195fdd99 HA/Groups: add onlineHelp button to edit window
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-10-07 08:36:19 +02:00
Dominik Csapak
5eff07f74c grid/FirewallRules.js jslint fixes
trailing commas are bad

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-07 08:34:41 +02:00
Dominik Csapak
4eb76884a6 move DocsPages from global to PVE.Utils namespace
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-07 08:34:32 +02:00
Dominik Csapak
7be50bef46 correctly reset value of combobox
we have cases, were the original value of a combobox is an array,
but not the current value

on reset, we get an error in Ext.Array.equals, because we
did not check if the current value is also an array

this patch fixes this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-07 08:34:11 +02:00
Thomas Lamprecht
1a4667e6b9 ha/groups: allow editing node priorities through UI
This allows the setting and editing node priorities in HA groups.

Also fixes the bug where the priorities of an existing group (e.g.
set through the CLI) where deleted when editing said group through
the GUI.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-07 08:29:48 +02:00
Thomas Lamprecht
d9e0293926 add getNodes function to PVEResource store
Add the getNodes function to the periodically asynchronous updated
PVEResource store. This allows a component to get the node data
directly, without making an API call and waiting that it's finished,
the data is also up to date.

A usage example would be:

var data = PVE.data.ResourceStore.getNodes();

var store = Ext.create('Ext.data.Store', {
    fields: [ 'node', 'mem', 'cpu', ... ], // or a model
    data: data,
    proxy: {
	type: 'memory',
	reader: {type: 'json'}
    },
    ...
});

I'll use it in a later patch to avoid two asynchrony store loads
where I'd have logic in place for the case that either one finishes
first, this function helps me to avoid such logic while achieving
the same functionallity.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-07 08:29:22 +02:00
Dietmar Maurer
f6735a886a simplify code, improve sort order 2016-10-07 08:12:52 +02:00
Emmanuel Kasper
31345b9c28 When adding a new hard disk, use the most used controller as suggested value
This is a complementary fix for #1105 (Create Linux VM Wizard: use scsi
as default bus/device) and add some logic to the list of controllers
presented in the ControllerSelector combo box

Since we can have IDE, SCSI, Virtio(blk) as a controller during installation,
based on OS detection and personal preferences, we can reasonably assume
on 80 % of cases it will be the same controller we want to use for the
next time we add a hardisk.

This allows backward compatibility for Linux guests which were proposed a
virtio-blk as first choice, and also helps newly created Linux VMs by proposing
SCSI.
2016-10-07 07:05:53 +02:00
Emmanuel Kasper
98a01af2a8 Add regexp to match a bus entry in a VM config 2016-10-07 07:01:36 +02:00