Commit Graph

2689 Commits

Author SHA1 Message Date
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
Thomas Lamprecht
fe651e6f4a Ceph/Monitor: sort monitors after name
we get the entries random else, which is unintuitive.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-09-28 08:25:15 +02:00
Thomas Lamprecht
8f46103543 Makefile: fix distclean target
As some Makefiles in sub directories do not implement the distclean
target, namely:
PVE/Service/Makefile
PVE/CLI/Makefile

This target is broken.

As all other implementations just redirect to the 'clean' target I
do not implement the missing ones but rather remove all such
targets. Keep it just in the top level directory, for consistence
sake with other pve repos, and redirect it there directly to the
clean target.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-09-28 08:21:48 +02:00
Emmanuel Kasper
8b97744c78 fix #1115 reload storage grid after template download
Refresh the grid after the template has been downloaded, instead
of refreshing after the template has been selected.

this fix a the problem that a newly Turnkey / PVE downloaded template
would not be shown in the storage content grid after closing the task
window
2016-09-27 10:27:42 +02:00
Dietmar Maurer
29d03d47ed prepare version number for new 4.3 release 2016-09-23 08:40:16 +02:00
Dietmar Maurer
e9a891f24f bump version to 4.2-23 2016-09-21 16:17:45 +02:00
Emmanuel Kasper
13a399c456 do not test for the cgmanager package in pveversion fix #1117
the package has been removed from the list of lxcfs dependencies
since 0.12-pve1
2016-09-21 16:16:52 +02:00
Dietmar Maurer
e252cc4ace bump version to 4.2-22 2016-09-20 17:28:38 +02:00
Emmanuel Kasper
d6dfc45b8e add a warning message if the EFI disk is missing fix #1112
do not display an obstrusive popup on top of a modal window,
but display a hint under the combo box
2016-09-20 17:21:50 +02:00
Emmanuel Kasper
2c0e2890e0 fix #1113 use a LSI controller for legacy OSes
instead of setting virtio-scsi for all newly created VMs, pass the
OS Optimal SCSI Controller to pveQemuCreateWizard which will
add it as an hidden paramater just before POSTing the wizard data
to the API.
2016-09-20 17:21:34 +02:00
Emmanuel Kasper
c149681d61 fix #1113: preserve LSI controller for legacy Oses
The SCSI HW type handling will be made in the Wizard class, removing from here.
2016-09-20 17:18:19 +02:00
Dietmar Maurer
2145398fbe bump version to 4.2-21 2016-09-16 08:35:56 +02:00
Dietmar Maurer
60ca33057c code cleanup 2016-09-16 07:38:47 +02:00
Dietmar Maurer
59f2dd3dcf use refresh event instead of datachanged 2016-09-16 07:36:15 +02:00
Fabian Grünbichler
203fd3488f lxc: correctly display cpulimit
the backend defaults to 0 (unlimited), so this should also be the default
in the GUI if nothing is set.
2016-09-16 06:58:27 +02:00