Commit Graph

2703 Commits

Author SHA1 Message Date
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
Dietmar Maurer
5b804fcf24 remove debugging code from postrm 2016-10-06 16:45:51 +02:00
Dominik Csapak
107e872ac7 use correct info on disks in destroyosd and skip smart
instead of using
'/dev/${real_dev}'

we use the devpath property directly

also we skip the smart check in the cleanup

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-06 08:27:46 +02:00
Dominik Csapak
929376d778 fix #1099: get correct info on disks in createosd
instead of getting all disks, only get the info
from the one we get as parameter
and use the 'devname' value for the
ceph commands instead of the parameter itself
(this fixes the cciss!cXdY cciss/cXdY mismatch)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-06 08:26:32 +02:00
Dominik Csapak
5fd5c30db7 do not get smart data for ceph disk list
on the ceph disks call, we do not need the smart
data, so set the nosmart flag

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-06 08:20:42 +02:00
Wolfgang Link
9e9ab96f6d Sort all lists in the storage what we load dynamically.
It locks better if the lists are sorted.
Also if you have long list it makes working easier.
2016-10-06 08:08:51 +02:00
Dietmar Maurer
9b38c8efa0 bump version to 4.3-2 2016-10-05 07:11:31 +02:00
Wolfgang Link
330020d2af fix #1108: add copy firewall rule to GUI
It is now possible to select a firewall rule on the GUI
and copy it as template for the new rule.
2016-10-05 07:06:51 +02:00
Dominik Csapak
6c18be661c fix #1116: center modal windows on browser resize
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-05 07:03:27 +02:00
Dominik Csapak
19e2978be2 use new statusview for storage
to better fit with the rest

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-05 07:00:07 +02:00
Dominik Csapak
ed37370c4a move rrd legend to the bottom, make it toggleable
this is to make up for the lost width,
and to make up for the lost height, you
can now toggle the legend

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-05 06:58:00 +02:00
Dominik Csapak
7ec884caee fix width of panels in statusviews
since we introduced the vertical menus,
each panel is about 30px too wide for having
two side by side with a 1920x1080 resolution

this patch changes, the paddings/sizes so that
this fits again, at the cost of about 30 pixels width
per panel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-05 06:55:33 +02:00
Dominik Csapak
d96ac9736a show smart text if disk type is not ATA
in case the disk is not type ATA (e.g. SAS),
the smartctl output is not well parsable,
so we show the raw text instead

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-05 06:53:57 +02:00
Dominik Csapak
2149db2a21 add loadMask to Disk and SMART grid
also use the hasMany reference of the model

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-05 06:52:25 +02:00
Dominik Csapak
232801847b add htmlEncode to S.M.A.R.T. Fields
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-05 06:48:27 +02:00
Dominik Csapak
6f6bb9c2eb fix jslint error
trailing comma

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-04 10:48:57 +02:00
Emmanuel Kasper
7e06d55dd6 Minor refactor for #1115 (reload grid after template download)
Move the listener to the new window declaration to make it clear
this listener is not bound to the current component
2016-09-28 17:33:29 +02:00
Thomas Lamprecht
4769a80dbd Ceph/Monitor: set name column witdh to 100px
so that we can actually read the monitor name without resizing the
grid every time we visit, there is space enough

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-09-28 08:25:31 +02:00