]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
7 years agobump version to 4.4-6
Dietmar Maurer [Thu, 12 Jan 2017 13:24:13 +0000 (14:24 +0100)]
bump version to 4.4-6

7 years agoHTTPServer.pm: factor out code which refers to PVE::Cluster
Dietmar Maurer [Thu, 12 Jan 2017 11:14:53 +0000 (12:14 +0100)]
HTTPServer.pm: factor out code which refers to PVE::Cluster

This will make it easier to move HTTPServer to a separate package.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoadd setup_environment hooks to CLIHandler classes
Dietmar Maurer [Thu, 12 Jan 2017 11:33:31 +0000 (12:33 +0100)]
add setup_environment hooks to CLIHandler classes

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoUse component references via lookupReference()
Emmanuel Kasper [Thu, 12 Jan 2017 11:17:29 +0000 (12:17 +0100)]
Use component references via lookupReference()

This allows to add the components in each column in the order they
appear in the Clone Window.
References from child components are kept in an object in the parent
component so it should be the same performance-wise (contrary to to Ext.ComponentQuery
which is doing DOM parsing)

7 years agoHTTPServer.pm: make split_abs_uri() private
Fabian Grünbichler [Thu, 12 Jan 2017 09:38:12 +0000 (10:38 +0100)]
HTTPServer.pm: make split_abs_uri() private

and rename baseuri to base_uri to be consistent

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoHTTPServer.pm: improve baseuri matching
Dietmar Maurer [Tue, 10 Jan 2017 16:06:07 +0000 (17:06 +0100)]
HTTPServer.pm: improve baseuri matching

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoremove obsolete PVE::REST class
Dietmar Maurer [Tue, 10 Jan 2017 16:06:06 +0000 (17:06 +0100)]
remove obsolete PVE::REST class

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agobin/Makefile: export PERLLIB=.. so that doc generator works correctly
Dietmar Maurer [Tue, 10 Jan 2017 16:06:05 +0000 (17:06 +0100)]
bin/Makefile: export PERLLIB=.. so that doc generator works correctly

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoPVE/API2/Formatter/HTML.pm: avoid use of PVE::REST
Dietmar Maurer [Tue, 10 Jan 2017 16:06:04 +0000 (17:06 +0100)]
PVE/API2/Formatter/HTML.pm: avoid use of PVE::REST

Instead, pass the HTTP server as last argument to the page formater,
so that we can call $server->create_auth_cookie().

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoPVE/Service/pveproxy.pm: avoid using PVE::REST
Dietmar Maurer [Tue, 10 Jan 2017 16:06:03 +0000 (17:06 +0100)]
PVE/Service/pveproxy.pm: avoid using PVE::REST

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: add missing 'use' statements
Dietmar Maurer [Tue, 10 Jan 2017 16:06:02 +0000 (17:06 +0100)]
HTTPServer.pm: add missing 'use' statements

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: add rest_handler method
Dietmar Maurer [Tue, 10 Jan 2017 16:06:01 +0000 (17:06 +0100)]
HTTPServer.pm: add rest_handler method

copied from PVE::REST. We do not need that class anymore.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: allow to set baseuri when creating the class
Dietmar Maurer [Tue, 10 Jan 2017 16:06:00 +0000 (17:06 +0100)]
HTTPServer.pm: allow to set baseuri when creating the class

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: add auth_handler
Dietmar Maurer [Tue, 10 Jan 2017 16:05:59 +0000 (17:05 +0100)]
HTTPServer.pm: add auth_handler

copied from PVE::REST (slightly adopted)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoHTTPServer.pm: add cookie handling methods
Dietmar Maurer [Tue, 10 Jan 2017 16:05:58 +0000 (17:05 +0100)]
HTTPServer.pm: add cookie handling methods

Copied from PVE::REST (I want to get rid of this PVE::REST class).

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoUse qcow2 as default disk format for clones fix: #1144
Emmanuel Kasper [Thu, 12 Jan 2017 09:14:01 +0000 (10:14 +0100)]
Use qcow2 as default disk format for clones fix: #1144

When using a file based storage, qcow2 has more features as raw,
this is why we recommend it for clones, similarly to when adding
new disk images.

7 years agoDo not show a Clone Mode selection Window for non-templates clones
Emmanuel Kasper [Thu, 12 Jan 2017 09:14:00 +0000 (10:14 +0100)]
Do not show a Clone Mode selection Window for non-templates clones

As Non-templates clones are always a full clone.

7 years agoGroup the Pool selector combobox to the VM properties
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:58 +0000 (10:13 +0100)]
Group the Pool selector combobox to the VM properties

The pool membership relates here to the VM membership, not
the storage membership, so it makes sense to move it closer
to the VM ID / VM name form fields.

7 years agoMake the Snapshot selector an optional parameter in the Clone Window
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:57 +0000 (10:13 +0100)]
Make the Snapshot selector an optional parameter in the Clone Window

The snapshot selector was known to confuse first time pve users.
Some wondered that they had no snapshot called 'current' in their
snapshot trees, and other thought that snapshots would be included
in the copied image.

So before displaying the Clone Window, do an API call to verify
if the source VM has snapshots.

7 years agoDisable the submit button based on whole form validity
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:56 +0000 (10:13 +0100)]
Disable the submit button based on whole form validity

Until now we disabled the submit button, based on
the feature API call where we tested if the selected VM, and its snapshot
can be used as the source of a clone.

This had the following problems:
 * the feature test for copy clone / linked clone always returned true,
 since the passed paramaters were already filtered before user input
 (ie we only allowed a linked clone to be selected if the source VM is
 a template, or a snasphot to be selected if existed on source VM)
 * the guest ID input field was not validated

With the current patch, the validation is now made on each of the form
fields. verifyFeature() is still used to populate a list of valid nodes
passed to the Node Selector.

7 years agoUse correct parameter for GuestIDSelector
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:55 +0000 (10:13 +0100)]
Use correct parameter for GuestIDSelector

7 years agoBetter naming for kv1 comb box, document the two private functions
Emmanuel Kasper [Thu, 12 Jan 2017 09:13:54 +0000 (10:13 +0100)]
Better naming for kv1 comb box, document the two private functions

7 years agoupdate gettexts to avoid duplicates in po file
Dominik Csapak [Wed, 11 Jan 2017 09:20:00 +0000 (10:20 +0100)]
update gettexts to avoid duplicates in po file

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove obsolete inline documentation
Dietmar Maurer [Wed, 11 Jan 2017 09:54:47 +0000 (10:54 +0100)]
remove obsolete inline documentation

7 years agoadd type column to storage content view
Dominik Csapak [Tue, 10 Jan 2017 14:17:04 +0000 (15:17 +0100)]
add type column to storage content view

and move the grouping feature in the class definition while changing
the text to a generic one

this allows us to group by all columns and still have meaningful
grouping headers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove unnecessary emptyText
Dominik Csapak [Tue, 10 Jan 2017 14:17:03 +0000 (15:17 +0100)]
remove unnecessary emptyText

we already set it statically

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agocheck general health for ceph monitors, not only time
Dominik Csapak [Tue, 10 Jan 2017 11:17:13 +0000 (12:17 +0100)]
check general health for ceph monitors, not only time

we did not check the healthservices array for the monitor widget,
this patch does that, and takes the worst health state

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #1247: disregard timecheck for one monitor
Dominik Csapak [Tue, 10 Jan 2017 11:17:12 +0000 (12:17 +0100)]
fix #1247: disregard timecheck for one monitor

if we only have one monitor, set the timecheck to HEALTH_OK
(since we get none)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix jslint errors
Dominik Csapak [Tue, 10 Jan 2017 09:40:17 +0000 (10:40 +0100)]
fix jslint errors

since the value at the top is now directly a string,
we need the jslint confusion at the number and not for the
string at the bottom anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix gettext strings
Dominik Csapak [Tue, 10 Jan 2017 09:40:16 +0000 (10:40 +0100)]
fix gettext strings

we expect a gettext on a single line and to not contain any
variable/logic, so we remove the long text from it altogether (since we
do not want to translate that at the moment), and we rearrange the code
so that gettext only contains strings

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agodisable submit button in migrate window when not valid
Dominik Csapak [Mon, 9 Jan 2017 14:40:07 +0000 (15:40 +0100)]
disable submit button in migrate window when not valid

when the form is not valid (e.g. an offline or no host selected),
disable the submit button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoshow only relevant vms in bulk action window
Dominik Csapak [Mon, 9 Jan 2017 13:52:57 +0000 (14:52 +0100)]
show only relevant vms in bulk action window

this adds a default filter for bulk start and stop, so that only the
relevant vms are visible (stopped and started respectively)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake filtered columns in grid more prominent
Dominik Csapak [Mon, 9 Jan 2017 13:52:56 +0000 (14:52 +0100)]
make filtered columns in grid more prominent

this makes the column header not only italic but also bold, so that one
can more easily see that the column is filtered

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoReload the grid list of backups after the backup task completion
Emmanuel Kasper [Thu, 5 Jan 2017 14:33:37 +0000 (15:33 +0100)]
Reload the grid list of backups after the backup task completion

This allows visual feedback for first time users doing a backup.

7 years agochange Start/Stop/Migrate all to Bulk actions
Dominik Csapak [Thu, 5 Jan 2017 11:25:03 +0000 (12:25 +0100)]
change Start/Stop/Migrate all to Bulk actions

this uses the new vmselector and the new vmid filter in the backend
to allow starting/stopping/migrating selected vms instead of all

by default all vms are selected to have the same default behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd vmselector form field
Dominik Csapak [Thu, 5 Jan 2017 11:25:02 +0000 (12:25 +0100)]
add vmselector form field

this is a form field which is a grid for selecting vms

if nodename is given, it will filter the vms only to the given node

you can filter the grid with the column header, and only the selected
and visible items are in the value of the field

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd BulkAction window class
Dominik Csapak [Thu, 5 Jan 2017 11:25:01 +0000 (12:25 +0100)]
add BulkAction window class

this is mostly copied from MigrateAll.js, but a more generic way,
to allow startall and stopall to also use it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd vmid filter to (start/stop/migrate)all
Dominik Csapak [Thu, 5 Jan 2017 11:25:00 +0000 (12:25 +0100)]
add vmid filter to (start/stop/migrate)all

this is a simple filter which allows us to limit the actions to specific
vmids

this makes it much simpler to start/stop/migrate a range of vms

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoha: re-add node to service status
Thomas Lamprecht [Thu, 5 Jan 2017 11:23:52 +0000 (12:23 +0100)]
ha: re-add node to service status

On the old HA status we saw where a service was located currently,
this information was lost when we merged the resource and the status
tab.
Add this information again.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoremove not needed vnc code
Dominik Csapak [Thu, 22 Dec 2016 14:09:11 +0000 (15:09 +0100)]
remove not needed vnc code

since we access novnc always with the NoVncIndex.pm and never in extjs
itself, we can delete this code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove vznet.conf
Dietmar Maurer [Wed, 4 Jan 2017 09:43:15 +0000 (10:43 +0100)]
remove vznet.conf

leftover from openvz - not used anymore...

7 years agoReload the Ceph OSDTree afer adding an OSD
Emmanuel Kasper [Tue, 3 Jan 2017 14:39:49 +0000 (15:39 +0100)]
Reload the Ceph OSDTree afer adding an OSD

7 years agoHide the Edit window when we start a background task
Emmanuel Kasper [Tue, 3 Jan 2017 14:39:48 +0000 (15:39 +0100)]
Hide the Edit window when we start a background task

We closed the Edit window too early, so listeners set to
the 'close' event would reload the underlying grid before the action
successfully completed on the server side.

7 years agofix #1230: add blocksize for ZFSPoolPlugin
Fabian Grünbichler [Tue, 3 Jan 2017 11:23:35 +0000 (12:23 +0100)]
fix #1230: add blocksize for ZFSPoolPlugin

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoClone.js: add onlineHelp
Dietmar Maurer [Tue, 3 Jan 2017 11:30:48 +0000 (12:30 +0100)]
Clone.js: add onlineHelp

7 years agoHA: Add a warning/info message for HA setups < 3 votes fix: #1228
Emmanuel Kasper [Thu, 29 Dec 2016 11:04:18 +0000 (12:04 +0100)]
HA: Add a warning/info message for HA setups < 3 votes fix: #1228

7 years agoFix a race conditon provoking the error no such file '/pve-storage-content'
Emmanuel Kasper [Wed, 21 Dec 2016 15:49:08 +0000 (16:49 +0100)]
Fix a race conditon provoking the error no such file '/pve-storage-content'

(NB: the error was only displayed intermittently in the browser console)

The reload call could try a store reload before the store has
a defined url.
The call here is useless since the initial display of
the storage selector compoment will call setStorage() to pass an url
to the store and load it.

Also remove the test on me.store.proxy.url since it was not working
(ExtJS autodefined an URL based on the model name)

7 years agoReplace nested ternary operators with if/else statements
Emmanuel Kasper [Thu, 22 Dec 2016 11:15:23 +0000 (12:15 +0100)]
Replace nested ternary operators with if/else statements

7 years agoperftest2.pl: use -k (keepalive) to show max performance
Dietmar Maurer [Wed, 28 Dec 2016 11:06:27 +0000 (12:06 +0100)]
perftest2.pl: use -k (keepalive) to show max performance

7 years agoremove PVE::API2Client class and related examples
Dietmar Maurer [Wed, 28 Dec 2016 10:41:35 +0000 (11:41 +0100)]
remove PVE::API2Client class and related examples

We now have all API client code in an extra package:

https://git.proxmox.com/?p=pve-apiclient.git;a=summary

7 years agocode cleanup
Dietmar Maurer [Wed, 28 Dec 2016 10:34:01 +0000 (11:34 +0100)]
code cleanup

7 years agobump version to 4.4-5
Dietmar Maurer [Tue, 27 Dec 2016 10:29:45 +0000 (11:29 +0100)]
bump version to 4.4-5

7 years agoadd unpriviledged flag to container restore window.
Dietmar Maurer [Tue, 27 Dec 2016 08:40:29 +0000 (09:40 +0100)]
add unpriviledged flag to container restore window.

7 years agobump version to 4.4
Dietmar Maurer [Thu, 22 Dec 2016 11:28:28 +0000 (12:28 +0100)]
bump version to 4.4

7 years agoChange remove partition order.
Wolfgang Link [Mon, 19 Dec 2016 11:41:27 +0000 (12:41 +0100)]
Change remove partition order.

If we remove first the journal the data partition will automatically mounted
and can't destroy the partition.
This is trigger by the udev ceph rule.

7 years agoFix parsing block device.
Wolfgang Link [Mon, 19 Dec 2016 11:41:26 +0000 (12:41 +0100)]
Fix parsing block device.

Get the partition num and block device from sysfs.
This ensure different block device types will work.

7 years agobump version to 4.4-3
Dietmar Maurer [Thu, 22 Dec 2016 11:02:41 +0000 (12:02 +0100)]
bump version to 4.4-3

7 years agoEnable service for ceph monitor.
Wolfgang Link [Wed, 21 Dec 2016 14:56:16 +0000 (15:56 +0100)]
Enable service for ceph monitor.

We do not use the ceph.service what normally start ceph-mon,
so we have to ensure ceph-mon is enabled.

7 years agoreplace SysV init script with our own service
Fabian Grünbichler [Wed, 21 Dec 2016 14:56:15 +0000 (15:56 +0100)]
replace SysV init script with our own service

for more information see http://tracker.ceph.com/issues/18305 .

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoSet correct permission for ceph user.
Wolfgang Link [Wed, 21 Dec 2016 14:56:14 +0000 (15:56 +0100)]
Set correct permission for ceph user.

We have to set the correct permission,
because ceph greater than infernalis use ceph as daemon user.

7 years agoadd jewel
Wolfgang Link [Wed, 21 Dec 2016 14:56:13 +0000 (15:56 +0100)]
add jewel

7 years agorename pve.conf to ceph-after-pve-cluster.conf
Dietmar Maurer [Thu, 22 Dec 2016 10:47:13 +0000 (11:47 +0100)]
rename pve.conf to ceph-after-pve-cluster.conf

7 years agoadd systemd replacement for ceph init script
Wolfgang Link [Wed, 21 Dec 2016 14:56:12 +0000 (15:56 +0100)]
add systemd replacement for ceph init script

the old sys V init script does a lot of stuff, most of which
is already replaced with the system units since jewel,
except for the OSD activation which is still done by either
udev or the old init script.

include systemd service as drop in replacement for the init
script when using jewel. the service is not enabled by
default (as this would break hammer), but needs to be copied
to /etc/systemd/system on upgrade to (manual) or install of
jewel (automatic).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agodo not hide ceph on dashboard if the api call fails
Dominik Csapak [Wed, 21 Dec 2016 10:48:46 +0000 (11:48 +0100)]
do not hide ceph on dashboard if the api call fails

with this patch, we do not hide the ceph status anymore if the api call
fails (too slow, e.g.) as long as we showed it at least one time

also, we only stop the updates if we never successfully got the status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd filter to dashboard storage graph
Dominik Csapak [Wed, 21 Dec 2016 10:45:10 +0000 (11:45 +0100)]
add filter to dashboard storage graph

with this patch, the storage graph on the dashboard only counts the
storages which are selected in the settings window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd a storage selection in the settings window
Dominik Csapak [Thu, 22 Dec 2016 08:54:06 +0000 (09:54 +0100)]
add a storage selection in the settings window

this will be used to filter the dashboard storage graph to the selected
storages, so that one can choose which storages are relevant

e.g. if you have one nfs server with multiple exports (on the same filesystem),
you only want to count it once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoload the diffstore on init
Dominik Csapak [Wed, 21 Dec 2016 10:45:08 +0000 (11:45 +0100)]
load the diffstore on init

if the rstore in the diffstore is already loaded at the time of
the instantiation, load the data instantly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd an alias to the diffstore
Dominik Csapak [Wed, 21 Dec 2016 10:45:07 +0000 (11:45 +0100)]
add an alias to the diffstore

to use it declarative like this:

store : {
    type: 'diff'
}

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 4.4-2
Dietmar Maurer [Wed, 21 Dec 2016 11:27:01 +0000 (12:27 +0100)]
bump version to 4.4-2

7 years agorebalance_lxc_containers: make it work with old style lxc setups
Dietmar Maurer [Wed, 21 Dec 2016 11:20:40 +0000 (12:20 +0100)]
rebalance_lxc_containers: make it work with old style lxc setups

7 years agorebalance_lxc_containers: avoid repeated warnings if rebalance fails
Dietmar Maurer [Wed, 21 Dec 2016 10:39:46 +0000 (11:39 +0100)]
rebalance_lxc_containers: avoid repeated warnings if rebalance fails

Only warn once.

7 years agorebalance_lxc_containers: fix hotplug
Dietmar Maurer [Wed, 21 Dec 2016 10:13:16 +0000 (11:13 +0100)]
rebalance_lxc_containers: fix hotplug

factor out code to modify cpusets into $modify_cpuset->()

7 years agorebalance_lxc_containers: make it work with new lxc/<ID>/ns subgroup
Dietmar Maurer [Wed, 21 Dec 2016 10:04:33 +0000 (11:04 +0100)]
rebalance_lxc_containers: make it work with new lxc/<ID>/ns subgroup

7 years agoremove debug log statement
Dominik Csapak [Thu, 15 Dec 2016 16:01:22 +0000 (17:01 +0100)]
remove debug log statement

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix typo in ceph jewel iops parsing
Dominik Csapak [Wed, 14 Dec 2016 09:31:47 +0000 (10:31 +0100)]
fix typo in ceph jewel iops parsing

this prevented the write iops performance charts to get any meaningful
data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofilter the local node in the migrateall window
Dominik Csapak [Wed, 7 Dec 2016 10:54:36 +0000 (11:54 +0100)]
filter the local node in the migrateall window

we do this already for single vm migrations, also do it for migrate all

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agovalidate nodeselector after store is loaded
Dominik Csapak [Wed, 7 Dec 2016 10:54:35 +0000 (11:54 +0100)]
validate nodeselector after store is loaded

this shows the validation status immediatly if no node is selected (for
instance because no node is online or you have only one node and open
the migration window)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake date column resizable
Dominik Csapak [Tue, 6 Dec 2016 15:26:42 +0000 (16:26 +0100)]
make date column resizable

this makes the date column in the snapshottree a little bit bigger and
resizable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove obsolete belongsTo
Dominik Csapak [Tue, 6 Dec 2016 15:26:41 +0000 (16:26 +0100)]
remove obsolete belongsTo

this was not needed

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agosnapshottree: remove sorter before saving the state
Dominik Csapak [Tue, 6 Dec 2016 15:26:40 +0000 (16:26 +0100)]
snapshottree: remove sorter before saving the state

extjs saves the state including the sorter, but cannot serialize the
sorter function. when restoring the state, it is not a valid sorter,
so we delete it before saving

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoset fixed height on global search window
Dominik Csapak [Tue, 6 Dec 2016 15:26:39 +0000 (16:26 +0100)]
set fixed height on global search window

the buffered renderer does not work with auto height, and was disabled.
to enable it, we set a fixed height

when nothing is found, display 'none' to indicate nothing was found

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomove chart series initialization into initComponent
Dominik Csapak [Tue, 6 Dec 2016 15:26:38 +0000 (16:26 +0100)]
move chart series initialization into initComponent

with extjs 6.2 the charts are initialized differently, so that we can
not do this in the afterrender event, instead we do it in the
initComponent, after calling callParent

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomove hideHeaders into static configuration
Dominik Csapak [Tue, 6 Dec 2016 15:26:37 +0000 (16:26 +0100)]
move hideHeaders into static configuration

in extjs 6.2, this property will not be set in ApplyIf, so we move it
into the static configuration, so that the headers will not be visible

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoRename filterFn to vmtypeFilter
Emmanuel Kasper [Thu, 15 Dec 2016 15:25:59 +0000 (16:25 +0100)]
Rename filterFn to vmtypeFilter

since we have now two filters defined it makes sense to use
a separate name here

7 years agoFilter by default the displayed guest backups fix #1161
Emmanuel Kasper [Thu, 15 Dec 2016 15:25:58 +0000 (16:25 +0100)]
Filter by default the displayed guest backups fix #1161

This add a default filter which is executed on store initial load,
so we display only the backups matching our ID.

7 years agoreduce scope of jslint warnings to the problematic statement
Emmanuel Kasper [Tue, 13 Dec 2016 09:07:41 +0000 (10:07 +0100)]
reduce scope of jslint warnings to the problematic statement

also remove it from qemu/Clone.js since it validates OK

7 years agoConvert the VMIDSelector to a generic GuestIDSelector
Emmanuel Kasper [Tue, 13 Dec 2016 09:07:40 +0000 (10:07 +0100)]
Convert the VMIDSelector to a generic GuestIDSelector

This allows to display a 'CT', a 'VM', or a 'CT/VM' label
to be displayed, depending on the context.

Currently when restoring a CT backup or creating a CT via the
wizard, we are asked to enter a  *VM* ID, which is confusing.

7 years agobump version to 4.4-1
Dietmar Maurer [Fri, 9 Dec 2016 09:29:35 +0000 (10:29 +0100)]
bump version to 4.4-1

7 years agomake realmselector non-editable
Dominik Csapak [Wed, 7 Dec 2016 14:41:50 +0000 (15:41 +0100)]
make realmselector non-editable

since most people do not have many login realms to choose from, making
this search/editable makes no sense

but by making this non-editable, you can now click anywhere on the text
to open the options, instead of only the little arrow

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #1176: sort user/group/realm selector
Dominik Csapak [Wed, 7 Dec 2016 14:41:49 +0000 (15:41 +0100)]
fix #1176: sort user/group/realm selector

this adds a default sort for the user, group and realmselector
so that the entries are in a consistent order

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoaplinfo.dat: update
Dietmar Maurer [Fri, 9 Dec 2016 09:19:13 +0000 (10:19 +0100)]
aplinfo.dat: update

7 years agofix jslint confusion warning
Emmanuel Kasper [Mon, 5 Dec 2016 13:48:08 +0000 (14:48 +0100)]
fix jslint confusion warning

ExtJS components accept for the items property either a
single component or an array of components which generates
a jslint type confusion warning.

7 years agoAdd online help for start/shutdown for containers
Emmanuel Kasper [Mon, 5 Dec 2016 13:48:07 +0000 (14:48 +0100)]
Add online help for start/shutdown for containers

7 years agoTurn the qemu StartupEdit widget into a generic component
Emmanuel Kasper [Mon, 5 Dec 2016 13:48:06 +0000 (14:48 +0100)]
Turn the qemu StartupEdit widget into a generic component

and use this component for Qemu.

7 years agobump version to 4.3-14
Dietmar Maurer [Mon, 5 Dec 2016 11:33:51 +0000 (12:33 +0100)]
bump version to 4.3-14

7 years agofix typo in vmtype check
Dominik Csapak [Mon, 5 Dec 2016 10:04:11 +0000 (11:04 +0100)]
fix typo in vmtype check

by mistake we checked if me.vtype is 'qemu'
but the property is me.vmtype, so we would always show
restart mode

note that this error was purely cosmetic, behaviour was correct

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 4.3-13
Dietmar Maurer [Fri, 2 Dec 2016 15:39:40 +0000 (16:39 +0100)]
bump version to 4.3-13

7 years agoadds a help button to the migration window
Dominik Csapak [Fri, 2 Dec 2016 13:20:45 +0000 (14:20 +0100)]
adds a help button to the migration window

for now we have to explicitely define the
    onlineHelp: 'blockid'
string, so that the parser picks it up

in the future we should refactor that window, so that we define the
blockid when declaring the component

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agochange lxc migration option to restart mode
Dominik Csapak [Fri, 2 Dec 2016 13:20:44 +0000 (14:20 +0100)]
change lxc migration option to restart mode

since online migration does work at the moment, and with ha we already
have the restart mode

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoRemove last extra comma
Emmanuel Kasper [Thu, 1 Dec 2016 13:16:40 +0000 (14:16 +0100)]
Remove last extra comma

also whitespace / indent cleanup