]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
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

7 years agoFix jslint warning: 'sortedList' is already defined
Emmanuel Kasper [Mon, 10 Oct 2016 12:32:51 +0000 (14:32 +0200)]
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

7 years agoMove bus priority list to OSDefaults
Emmanuel Kasper [Mon, 10 Oct 2016 12:32:50 +0000 (14:32 +0200)]
Move bus priority list to OSDefaults

So a field container does not need to know if Linux likes SCSI.

7 years agomake Win XP and Win 2003 use the same defaults as Win 2000
Emmanuel Kasper [Mon, 10 Oct 2016 08:13:25 +0000 (10:13 +0200)]
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.

7 years agobump version to 4.3-3
Dietmar Maurer [Fri, 7 Oct 2016 09:46:40 +0000 (11:46 +0200)]
bump version to 4.3-3

7 years agoHA/Groups: add onlineHelp button to edit window
Thomas Lamprecht [Thu, 6 Oct 2016 12:07:23 +0000 (14:07 +0200)]
HA/Groups: add onlineHelp button to edit window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agogrid/FirewallRules.js jslint fixes
Dominik Csapak [Thu, 6 Oct 2016 10:10:28 +0000 (12:10 +0200)]
grid/FirewallRules.js jslint fixes

trailing commas are bad

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomove DocsPages from global to PVE.Utils namespace
Dominik Csapak [Thu, 6 Oct 2016 10:10:27 +0000 (12:10 +0200)]
move DocsPages from global to PVE.Utils namespace

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agocorrectly reset value of combobox
Dominik Csapak [Thu, 6 Oct 2016 10:10:26 +0000 (12:10 +0200)]
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>
7 years agoha/groups: allow editing node priorities through UI
Thomas Lamprecht [Thu, 6 Oct 2016 09:52:52 +0000 (11:52 +0200)]
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>
7 years agoadd getNodes function to PVEResource store
Thomas Lamprecht [Thu, 6 Oct 2016 09:52:51 +0000 (11:52 +0200)]
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>
7 years agosimplify code, improve sort order
Dietmar Maurer [Fri, 7 Oct 2016 06:12:52 +0000 (08:12 +0200)]
simplify code, improve sort order

7 years agoWhen adding a new hard disk, use the most used controller as suggested value
Emmanuel Kasper [Thu, 6 Oct 2016 09:01:26 +0000 (11:01 +0200)]
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.

7 years agoAdd regexp to match a bus entry in a VM config
Emmanuel Kasper [Thu, 6 Oct 2016 09:01:25 +0000 (11:01 +0200)]
Add regexp to match a bus entry in a VM config

7 years agoremove debugging code from postrm
Dietmar Maurer [Thu, 6 Oct 2016 14:45:51 +0000 (16:45 +0200)]
remove debugging code from postrm

7 years agouse correct info on disks in destroyosd and skip smart
Dominik Csapak [Wed, 5 Oct 2016 13:32:40 +0000 (15:32 +0200)]
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>
7 years agofix #1099: get correct info on disks in createosd
Dominik Csapak [Wed, 5 Oct 2016 13:32:39 +0000 (15:32 +0200)]
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>
7 years agodo not get smart data for ceph disk list
Dominik Csapak [Wed, 5 Oct 2016 13:32:38 +0000 (15:32 +0200)]
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>
7 years agoSort all lists in the storage what we load dynamically.
Wolfgang Link [Wed, 5 Oct 2016 12:27:56 +0000 (14:27 +0200)]
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.

7 years agobump version to 4.3-2
Dietmar Maurer [Wed, 5 Oct 2016 05:11:31 +0000 (07:11 +0200)]
bump version to 4.3-2

7 years agofix #1108: add copy firewall rule to GUI
Wolfgang Link [Thu, 22 Sep 2016 09:03:25 +0000 (11:03 +0200)]
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.

7 years agofix #1116: center modal windows on browser resize
Dominik Csapak [Tue, 4 Oct 2016 14:29:23 +0000 (16:29 +0200)]
fix #1116: center modal windows on browser resize

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse new statusview for storage
Dominik Csapak [Tue, 4 Oct 2016 14:29:22 +0000 (16:29 +0200)]
use new statusview for storage

to better fit with the rest

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomove rrd legend to the bottom, make it toggleable
Dominik Csapak [Tue, 4 Oct 2016 14:29:21 +0000 (16:29 +0200)]
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>
7 years agofix width of panels in statusviews
Dominik Csapak [Tue, 4 Oct 2016 14:29:20 +0000 (16:29 +0200)]
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>
7 years agoshow smart text if disk type is not ATA
Dominik Csapak [Tue, 4 Oct 2016 11:39:37 +0000 (13:39 +0200)]
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>
7 years agoadd loadMask to Disk and SMART grid
Dominik Csapak [Tue, 4 Oct 2016 11:39:36 +0000 (13:39 +0200)]
add loadMask to Disk and SMART grid

also use the hasMany reference of the model

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd htmlEncode to S.M.A.R.T. Fields
Dominik Csapak [Tue, 4 Oct 2016 11:39:35 +0000 (13:39 +0200)]
add htmlEncode to S.M.A.R.T. Fields

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix jslint error
Dominik Csapak [Tue, 4 Oct 2016 07:59:07 +0000 (09:59 +0200)]
fix jslint error

trailing comma

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoMinor refactor for #1115 (reload grid after template download)
Emmanuel Kasper [Wed, 28 Sep 2016 08:51:57 +0000 (10:51 +0200)]
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

7 years agoCeph/Monitor: set name column witdh to 100px
Thomas Lamprecht [Tue, 27 Sep 2016 13:41:34 +0000 (15:41 +0200)]
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>
7 years agoCeph/Monitor: sort monitors after name
Thomas Lamprecht [Tue, 27 Sep 2016 13:41:33 +0000 (15:41 +0200)]
Ceph/Monitor: sort monitors after name

we get the entries random else, which is unintuitive.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoMakefile: fix distclean target
Thomas Lamprecht [Tue, 27 Sep 2016 13:39:56 +0000 (15:39 +0200)]
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>
7 years agofix #1115 reload storage grid after template download
Emmanuel Kasper [Mon, 26 Sep 2016 14:24:20 +0000 (16:24 +0200)]
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

7 years agoprepare version number for new 4.3 release
Dietmar Maurer [Fri, 23 Sep 2016 06:40:16 +0000 (08:40 +0200)]
prepare version number for new 4.3 release

7 years agobump version to 4.2-23
Dietmar Maurer [Wed, 21 Sep 2016 14:17:45 +0000 (16:17 +0200)]
bump version to 4.2-23

7 years agodo not test for the cgmanager package in pveversion fix #1117
Emmanuel Kasper [Wed, 21 Sep 2016 13:37:09 +0000 (15:37 +0200)]
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

7 years agobump version to 4.2-22
Dietmar Maurer [Tue, 20 Sep 2016 15:28:38 +0000 (17:28 +0200)]
bump version to 4.2-22

7 years agoadd a warning message if the EFI disk is missing fix #1112
Emmanuel Kasper [Tue, 20 Sep 2016 13:19:25 +0000 (15:19 +0200)]
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

7 years agofix #1113 use a LSI controller for legacy OSes
Emmanuel Kasper [Tue, 20 Sep 2016 13:17:40 +0000 (15:17 +0200)]
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.

7 years agofix #1113: preserve LSI controller for legacy Oses
Emmanuel Kasper [Tue, 20 Sep 2016 13:17:39 +0000 (15:17 +0200)]
fix #1113: preserve LSI controller for legacy Oses

The SCSI HW type handling will be made in the Wizard class, removing from here.

7 years agobump version to 4.2-21
Dietmar Maurer [Fri, 16 Sep 2016 06:08:35 +0000 (08:08 +0200)]
bump version to 4.2-21

7 years agocode cleanup
Dietmar Maurer [Fri, 16 Sep 2016 05:38:47 +0000 (07:38 +0200)]
code cleanup

7 years agouse refresh event instead of datachanged
Dietmar Maurer [Fri, 16 Sep 2016 05:36:15 +0000 (07:36 +0200)]
use refresh event instead of datachanged

7 years agolxc: correctly display cpulimit
Fabian Grünbichler [Thu, 15 Sep 2016 12:51:56 +0000 (14:51 +0200)]
lxc: correctly display cpulimit

the backend defaults to 0 (unlimited), so this should also be the default
in the GUI if nothing is set.

7 years agochange overflowhandler of actionmenu to scroller
Dominik Csapak [Thu, 15 Sep 2016 11:17:48 +0000 (13:17 +0200)]
change overflowhandler of actionmenu to scroller

the menu overflowhandler has a few problems
(alignment, no action for some entries)
so we change it to type scroller

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd missing documentation link to firewall log
Dominik Csapak [Thu, 15 Sep 2016 09:41:42 +0000 (11:41 +0200)]
add missing documentation link to firewall log

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd tooltip hashmap/generator for help button
Dominik Csapak [Thu, 15 Sep 2016 09:41:41 +0000 (11:41 +0200)]
add tooltip hashmap/generator for help button

instead of manually setting the onlineHelpTooltip property
we now have a method which maps links to the docs to
titles

for now this uses a static hashmap, but in the future
we want to generate this by the pve-docs package

also most of the subheaders we can generate instead of
saving them because they simply have each word capitalized
(e.g. '_container_network' => 'Container Network')

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoUse SCSI controller as default for l26 guests fix #1105
Emmanuel Kasper [Thu, 15 Sep 2016 07:34:06 +0000 (09:34 +0200)]
Use SCSI controller as default for l26 guests fix #1105

NB: This is only for new created VMs.