]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
7 years agoReplicationTestEnv.pm: avoid warning about undefined value
Dietmar Maurer [Tue, 23 May 2017 08:31:18 +0000 (10:31 +0200)]
ReplicationTestEnv.pm: avoid warning about undefined value

7 years agobin/test/Makefile: run all replication tests
Dietmar Maurer [Tue, 23 May 2017 06:15:28 +0000 (08:15 +0200)]
bin/test/Makefile: run all replication tests

7 years agoPVE::Replication::replicate - implement replicate
Dietmar Maurer [Tue, 23 May 2017 05:40:30 +0000 (07:40 +0200)]
PVE::Replication::replicate - implement replicate

The actual volume replication is done in replicate_volume(), which is just
a stub for now.

I also added a regression test replication_test5.pl to verify basic
functions.

7 years agoPVE::Replication::remote_finalize_local_job - new helper
Dietmar Maurer [Tue, 23 May 2017 05:37:39 +0000 (07:37 +0200)]
PVE::Replication::remote_finalize_local_job - new helper

Simple wrapper to call "pvesr finalize-local-job" on a remote
cluster node.

7 years agoPVE::Replication::remote_prepare_local_job - new helper
Dietmar Maurer [Tue, 23 May 2017 05:33:46 +0000 (07:33 +0200)]
PVE::Replication::remote_prepare_local_job - new helper

Simple wrapper to call "pvesr prepare-local-job" on a remote
cluster node.

7 years agopvesr finalize-local-job: add helper to cleanup job
Dietmar Maurer [Tue, 23 May 2017 05:27:57 +0000 (07:27 +0200)]
pvesr finalize-local-job: add helper to cleanup job

This will be called after replication on the target node. For now, this
just removes old snapshots.

7 years agoReplicationTestEnv.pm: mock get_ssh_info and ssh_info_to_command
Dietmar Maurer [Mon, 22 May 2017 10:39:05 +0000 (12:39 +0200)]
ReplicationTestEnv.pm: mock get_ssh_info and ssh_info_to_command

7 years agoReplicationTestEnv.pm: mock storage content methods
Dietmar Maurer [Mon, 22 May 2017 06:26:40 +0000 (08:26 +0200)]
ReplicationTestEnv.pm: mock storage content methods

7 years agopvesr prepare-local-job: new helper
Dietmar Maurer [Mon, 29 May 2017 08:31:04 +0000 (10:31 +0200)]
pvesr prepare-local-job: new helper

Prepare for starting a replication job. This is called on the target
node before replication starts. This call is for internal use, and
return a JSON object on stdout. The method first test if VM <vmid>
reside on the local node. If so, stop immediately. After that the
method scans all volume IDs for snapshots, and removes all replications
snapshots with timestamps different than <last_sync>. It also removes
any unused volumes.

Returns a hash with boolean markers for all volumes with existing
replication snapshots.

7 years agopvesr run: add --verbose flag
Dietmar Maurer [Thu, 18 May 2017 06:11:09 +0000 (08:11 +0200)]
pvesr run: add --verbose flag

We can now pass a $logfunc parameter to replicate() to
produce more verbose logs/output. This is especially useful
for regression testing.

7 years agoreplication_test4.pl: Test replication job failure
Dietmar Maurer [Thu, 18 May 2017 05:46:50 +0000 (07:46 +0200)]
replication_test4.pl: Test replication job failure

7 years agoReplicationTestEnv.pm: add job tracking log
Dietmar Maurer [Thu, 18 May 2017 05:14:42 +0000 (07:14 +0200)]
ReplicationTestEnv.pm: add job tracking log

To generate persistent logs with job state/config changes.

7 years agoreplication_test3.pl: regression test for replication to same node
Dietmar Maurer [Thu, 18 May 2017 04:23:15 +0000 (06:23 +0200)]
replication_test3.pl: regression test for replication to same node

7 years agoPVE::Replication - use new calendar events instead of interval
Dietmar Maurer [Wed, 17 May 2017 10:28:55 +0000 (12:28 +0200)]
PVE::Replication - use new calendar events instead of interval

And implement retry algorythm after failure:

  $next_sync = $state->{last_try} + 5*60*$fail_count;

and limit to 3 failures.

7 years agoPVE/Replication.pm: save pid/ptime to running job state
Dietmar Maurer [Mon, 15 May 2017 10:28:33 +0000 (12:28 +0200)]
PVE/Replication.pm: save pid/ptime to running job state

So that we can check which job is running.

7 years agoreplication_test2.pl: test replication scheduler
Dietmar Maurer [Mon, 15 May 2017 07:43:15 +0000 (09:43 +0200)]
replication_test2.pl: test replication scheduler

7 years agoadd regression test environment for replication
Dietmar Maurer [Mon, 15 May 2017 07:07:22 +0000 (09:07 +0200)]
add regression test environment for replication

7 years agopvesr: add pve storage replication tool
Dietmar Maurer [Thu, 11 May 2017 07:02:01 +0000 (09:02 +0200)]
pvesr: add pve storage replication tool

Just added code to configure jobs. Replication itself is not
implemented.

7 years agoFix #1386: track postfix daemon status via postfix@-
Emmanuel Kasper [Thu, 18 May 2017 09:10:52 +0000 (11:10 +0200)]
Fix #1386: track postfix daemon status via postfix@-

7 years agooptimize 'text' field in resourcestore
Dominik Csapak [Wed, 3 May 2017 15:04:27 +0000 (17:04 +0200)]
optimize 'text' field in resourcestore

instead of doing a lot of string comparisons, we first check
the type with the most objects (vms/cts) via number operation

and in all other cases, we can simply use the type as property index

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd suspend/resume events to updateTree
Dominik Csapak [Wed, 3 May 2017 15:04:29 +0000 (17:04 +0200)]
add suspend/resume events to updateTree

this makes adding/modifying a large number of items a lot faster

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agooptimize resourcestore field collection
Dominik Csapak [Wed, 3 May 2017 15:04:28 +0000 (17:04 +0200)]
optimize resourcestore field collection

instead of doing weird if/elsif checks with nonsensical logic

we simply check the 3 properties we want (namely convert,calculate and
defaultValue) and add them to our field definition.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agooptimize 'running' field
Dominik Csapak [Wed, 3 May 2017 15:04:26 +0000 (17:04 +0200)]
optimize 'running' field

we do not need to check for qemu/lxc/node because the other types
do not have an uptime value

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoMake a new systemd target.
Wolfgang Link [Thu, 27 Apr 2017 10:02:36 +0000 (12:02 +0200)]
Make a new systemd target.

This will ensure all storages are up before pveproxy is running.

7 years agoceph: init: rename disable-cephx to disable_cephx
Fabian Grünbichler [Wed, 3 May 2017 09:37:06 +0000 (11:37 +0200)]
ceph: init: rename disable-cephx to disable_cephx

for consistency

7 years agoceph: init: add warning to disable-cephx
Fabian Grünbichler [Wed, 3 May 2017 08:25:24 +0000 (10:25 +0200)]
ceph: init: add warning to disable-cephx

7 years agoceph: init: add optional disable-cephx option
Alexandre Derumier [Fri, 28 Apr 2017 07:52:59 +0000 (09:52 +0200)]
ceph: init: add optional disable-cephx option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 years agoceph: init: remove filestore xattr use omap
Alexandre Derumier [Fri, 28 Apr 2017 07:52:57 +0000 (09:52 +0200)]
ceph: init: remove filestore xattr use omap

it's not used anymore since emperor

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 years agofix #1359: change to vm when double clicking in pool member view
Dominik Csapak [Thu, 20 Apr 2017 09:18:41 +0000 (11:18 +0200)]
fix #1359: change to vm when double clicking in pool member view

like in the resource grid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 5.0-10
Dietmar Maurer [Mon, 24 Apr 2017 05:46:07 +0000 (07:46 +0200)]
bump version to 5.0-10

7 years agoPVE/APLInfo.pm: avoid locale specific time stamps
Dietmar Maurer [Mon, 24 Apr 2017 05:24:12 +0000 (07:24 +0200)]
PVE/APLInfo.pm: avoid locale specific time stamps

7 years agovzdump: do not generate locale specific time stamps
Dietmar Maurer [Mon, 24 Apr 2017 05:15:01 +0000 (07:15 +0200)]
vzdump: do not generate locale specific time stamps

Avoid perl warning: Wide character in print

7 years agobump version to 5.0-9
Wolfgang Bumiller [Thu, 20 Apr 2017 10:27:34 +0000 (12:27 +0200)]
bump version to 5.0-9

7 years agostatd: rebalance: don't use CpuSet::max_cpuids
Wolfgang Bumiller [Thu, 20 Apr 2017 08:47:41 +0000 (10:47 +0200)]
statd: rebalance: don't use CpuSet::max_cpuids

We're already limiting CPUs to lxc/cpuset.effective_cpus,
so let's use the highest cpuid from that set as a maximum to
initialize the container count array.

7 years agobump version to 5.0-8
Dietmar Maurer [Thu, 20 Apr 2017 04:25:43 +0000 (06:25 +0200)]
bump version to 5.0-8

7 years agofilter templates in bulk start/stop
Dominik Csapak [Wed, 19 Apr 2017 12:45:22 +0000 (14:45 +0200)]
filter templates in bulk start/stop

because we cannot start/stop templates

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd skylake to cpu types
Dominik Csapak [Wed, 19 Apr 2017 12:43:55 +0000 (14:43 +0200)]
add skylake to cpu types

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoset default focus and default button for edit window
Dominik Csapak [Tue, 18 Apr 2017 14:55:49 +0000 (16:55 +0200)]
set default focus and default button for edit window

this patch sets following defaults for the edit window:

defaultFocus: 'field'

sets the focus on the first field it finds in its child items,
works for most edit windows, so that the cursor stands in a
textfield, or on a checkbox

defaultButton: 'submitbutton'

so that when someone presses enter, we submit the form

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 5.0-7
Dietmar Maurer [Fri, 14 Apr 2017 13:20:33 +0000 (15:20 +0200)]
bump version to 5.0-7

7 years agohighlight errors in grids
Dominik Csapak [Fri, 14 Apr 2017 08:09:24 +0000 (10:09 +0200)]
highlight errors in grids

we gave erroneous entries in grids the class .x-form-invalid-field
but since we changed to the "crisp" theme, this class did not have any
highlighting

so instead we use our own "pve-invalid-row" class
and give it a light red background

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd right-click menu for nodes
Dominik Csapak [Fri, 14 Apr 2017 08:09:23 +0000 (10:09 +0200)]
add right-click menu for nodes

to easier reach the bulk actions, create wizards, and shell

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse nodename parameter to preselect the node in the wizard
Dominik Csapak [Fri, 14 Apr 2017 08:09:22 +0000 (10:09 +0200)]
use nodename parameter to preselect the node in the wizard

this will be used for the ndoe right-click-menu

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd a 'convert to template' in the vm action bar
Dominik Csapak [Fri, 14 Apr 2017 08:09:21 +0000 (10:09 +0200)]
add a 'convert to template' in the vm action bar

this was only available on right clicking a vm, now it is also available
in the action bar

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomove qemu reset button into shutdown menu
Dominik Csapak [Fri, 14 Apr 2017 08:09:20 +0000 (10:09 +0200)]
move qemu reset button into shutdown menu

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 5.0-6
Fabian Grünbichler [Mon, 10 Apr 2017 14:25:10 +0000 (16:25 +0200)]
bump version to 5.0-6

7 years agoCeph: allow bigger size and min_size in API
Fabian Grünbichler [Mon, 3 Apr 2017 10:06:55 +0000 (12:06 +0200)]
Ceph: allow bigger size and min_size in API

7 years agoceph/pool: allow bigger size and min_size values
Thomas Lamprecht [Wed, 22 Mar 2017 10:08:02 +0000 (11:08 +0100)]
ceph/pool: allow bigger size and min_size values

Some setups may want to use more replicas as three, while my proposed
maximal 7 replicas is also arbitrary it should cover all normal
usecases (i.e. 5 replicas) and a bit more, just to be sure.

7 years agoceph/pool: change default replica to 3/2
Thomas Lamprecht [Wed, 22 Mar 2017 10:08:01 +0000 (11:08 +0100)]
ceph/pool: change default replica to 3/2

size/min_size 2/1 is unsafe as it can result in split brains, so we
should not recommend it as default.

If the user really wants it he can still set it explicit.

7 years agofix #1317: check wizard form also on validitychange
Dominik Csapak [Fri, 24 Mar 2017 13:19:11 +0000 (14:19 +0100)]
fix #1317: check wizard form also on validitychange

with the commit
    40342aa6c4278497b9ec8c9cce8739f9b29c2e8f
we introduced a validator on the guestidselector, but did not
notice that the wizard checks the validity on the field change event,
but the selector gets valid/invalid in an api callback(so a little later)

with this patch, we now validate the field correctly with validate()
and also listen on the validitychange event to catch it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix start on boot
Fabian Grünbichler [Fri, 24 Mar 2017 07:58:20 +0000 (08:58 +0100)]
fix start on boot

fix the fix for #1024

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agobump version to 5.0-5
Fabian Grünbichler [Wed, 22 Mar 2017 09:52:43 +0000 (10:52 +0100)]
bump version to 5.0-5

7 years agouse new repository URL
Fabian Grünbichler [Wed, 22 Mar 2017 07:23:23 +0000 (08:23 +0100)]
use new repository URL

7 years agobump version to 5.0-4
Fabian Grünbichler [Tue, 21 Mar 2017 12:39:19 +0000 (13:39 +0100)]
bump version to 5.0-4

7 years agofix #1307: dont use language dependent separator in gui
Dominik Csapak [Mon, 20 Mar 2017 15:17:41 +0000 (16:17 +0100)]
fix #1307: dont use language dependent separator in gui

by default, extjs submits the language dependent decimal separator,
e.g. ',' for german and '.' for english

but we always want '.'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd beta text with link to bugtracker
Dominik Csapak [Tue, 21 Mar 2017 11:33:55 +0000 (12:33 +0100)]
add beta text with link to bugtracker

for the 5.0 beta, add a link to the bugtracker

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoceph: create default keys when creating monitor
Fabian Grünbichler [Tue, 21 Mar 2017 12:35:25 +0000 (13:35 +0100)]
ceph: create default keys when creating monitor

this used to be a separate service, but got dropped in
Kraken in favour of calling ceph-create-keys manually when
deploying a node.

7 years agopveceph: use luminous by default
Fabian Grünbichler [Mon, 20 Mar 2017 12:25:11 +0000 (13:25 +0100)]
pveceph: use luminous by default

7 years agobump version to 5.0-3
Dietmar Maurer [Fri, 17 Mar 2017 11:13:13 +0000 (12:13 +0100)]
bump version to 5.0-3

7 years agouse 'U' to encode undefined values for RRD graphs
Dietmar Maurer [Fri, 17 Mar 2017 10:27:18 +0000 (11:27 +0100)]
use 'U' to encode undefined values for RRD graphs

rrdtools 1.5 and newer seems to require this.

7 years agoremove backup locks when starting all VMs on boot
Thomas Lamprecht [Wed, 15 Mar 2017 15:47:42 +0000 (16:47 +0100)]
remove backup locks when starting all VMs on boot

If on bootup one of our VMs is locked by an backup we safely can
assume that this backup job does not run anymore and that the lock
has no reason anymore and just hinders uptime of services.

As at this time we (the node) have quorum so we may safely assume
that we have a consistent view of the cluster and all our VMs really
belong to us. We just need to ensure that we do not run into an
automatic backup jobs, so execute our code with VZDumps lock or
timeout.
Log in the Task and Sys log that we removed the lock, so that an
admin easily sees that there may be need for cleaning leftovers from
an interrupted backup.

Addresses bug #1024

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoget_filtered_vmlist: save VM conf in own subhash
Thomas Lamprecht [Wed, 15 Mar 2017 15:47:41 +0000 (16:47 +0100)]
get_filtered_vmlist: save VM conf in own subhash

small refactoring in get_filtered_vmlist: save a VMs config in its
own subhash to avoid collisions with other data which we want to save
in the vmid list, for now this is only `type` but in the next patch
I want to save also the class

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoinclude also HA VMs if a vm list is explicit specified
Thomas Lamprecht [Wed, 15 Mar 2017 14:46:07 +0000 (15:46 +0100)]
include also HA VMs if a vm list is explicit specified

Else the user would not had specified them explicit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoVMSelctor: add HA state and allow to filter with it
Thomas Lamprecht [Wed, 15 Mar 2017 14:46:06 +0000 (15:46 +0100)]
VMSelctor: add HA state and allow to filter with it

This allows also to filter after HA states, so one may bulk control
HA managed services more easily or do bulk actions just on unmanaged
VMs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoPVEResource store: respect defaulValue of elements
Thomas Lamprecht [Wed, 15 Mar 2017 14:46:05 +0000 (15:46 +0100)]
PVEResource store: respect defaulValue of elements

If we explicitly set a fields defaultValue we really want it in the
Model.

Also needed for a further patch

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoResourceStore: fix typo s/Colum/Columns/
Thomas Lamprecht [Wed, 15 Mar 2017 14:46:04 +0000 (15:46 +0100)]
ResourceStore: fix typo s/Colum/Columns/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoupdate sources.list to stretch
Fabian Grünbichler [Wed, 15 Mar 2017 11:03:00 +0000 (12:03 +0100)]
update sources.list to stretch

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoAPT: update packages and package names
Fabian Grünbichler [Wed, 15 Mar 2017 11:02:59 +0000 (12:02 +0100)]
APT: update packages and package names

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoMakefile: use "ssh -X" for upload
Dietmar Maurer [Tue, 14 Mar 2017 06:59:01 +0000 (07:59 +0100)]
Makefile: use "ssh -X" for upload

7 years agobump version to 5.0-2
Dietmar Maurer [Tue, 14 Mar 2017 06:57:15 +0000 (07:57 +0100)]
bump version to 5.0-2

7 years agocontrol.in: change description to avoid lintian warning
Dietmar Maurer [Tue, 14 Mar 2017 06:34:22 +0000 (07:34 +0100)]
control.in: change description to avoid lintian warning

Avoids warning: description-synopsis-starts-with-article

7 years agodepend on libc6 to avoid lintian error missing-dependency-on-libc
Dietmar Maurer [Tue, 14 Mar 2017 06:29:00 +0000 (07:29 +0100)]
depend on libc6 to avoid lintian error missing-dependency-on-libc

7 years agopveproxy: do not serve /usr/share/vncterm - no longer required
Dietmar Maurer [Tue, 14 Mar 2017 05:56:09 +0000 (06:56 +0100)]
pveproxy: do not serve /usr/share/vncterm - no longer required

Note: We removed the java applet

7 years agoinstall lintian overrides file
Dietmar Maurer [Tue, 14 Mar 2017 05:39:04 +0000 (06:39 +0100)]
install lintian overrides file

7 years agobump version to 5.0-1
Wolfgang Bumiller [Mon, 13 Mar 2017 13:23:52 +0000 (14:23 +0100)]
bump version to 5.0-1

7 years agobump version to 4.4-13
Wolfgang Bumiller [Mon, 13 Mar 2017 12:06:09 +0000 (13:06 +0100)]
bump version to 4.4-13

7 years agofix ceph.service for Ceph Jewel >= 10.2.6
Fabian Grünbichler [Thu, 9 Mar 2017 09:34:57 +0000 (10:34 +0100)]
fix ceph.service for Ceph Jewel >= 10.2.6

having our ceph.service pulled in by ceph.target does not
work anymore, because "systemctl start ceph.target" hangs
forever on ceph-common upgrades. multi-user.target seems to
work as well, and we are ordered after pve-cluster anyway.

only replace the old ceph.service if it is an exact match.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agobuildsys: depend on lsb-base
Wolfgang Bumiller [Tue, 7 Feb 2017 14:39:06 +0000 (15:39 +0100)]
buildsys: depend on lsb-base

7 years agobuildsys: make job safety
Wolfgang Bumiller [Tue, 7 Feb 2017 14:38:33 +0000 (15:38 +0100)]
buildsys: make job safety

7 years agoremove space in service file
Wolfgang Bumiller [Tue, 7 Feb 2017 14:38:54 +0000 (15:38 +0100)]
remove space in service file

7 years agofix diffstore issue with clusterlog
Dominik Csapak [Fri, 10 Mar 2017 09:12:25 +0000 (10:12 +0100)]
fix diffstore issue with clusterlog

extjs cannot "convert" and id from other fields, so the ids in the
diffstore and the realstore are different and we re-add every element on
every update

to mitigate this, we generate the id (which is "uid:hostname") in the
backend, and simply use it in the frontend

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse validator for GuestIDSelector and optimize labels
Dominik Csapak [Tue, 21 Feb 2017 09:53:15 +0000 (10:53 +0100)]
use validator for GuestIDSelector and optimize labels

instead of using markInvalid, use a validator, which also marks the
field dirty and marks the form correctly invalid.

also optimize the label/error message assignments

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoshow nodeselector errors only if a node is selected
Dominik Csapak [Wed, 15 Feb 2017 14:00:24 +0000 (15:00 +0100)]
show nodeselector errors only if a node is selected

otherwise we get the error:

'Node seems to be offline'

if we do not have a node selected

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agocheck earlier if the logview is destroyed
Dominik Csapak [Wed, 15 Feb 2017 13:55:50 +0000 (14:55 +0100)]
check earlier if the logview is destroyed

because extjs 6.2 handles destroying of components differently (namely
asynchronous), we have to check earlier if the view is destroyed, else
we get a 'cannot access ~ of undefined' error

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake the ha node priority field explicitly not a form field
Dominik Csapak [Wed, 15 Feb 2017 13:55:49 +0000 (14:55 +0100)]
make the ha node priority field explicitly not a form field

in extjs 6.2 form fields in widgetcolumns get parsed in a form
which is not what we want here, because we have a hidden field, which
gets generated on a change

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove unneeded applyEmptyText
Dominik Csapak [Wed, 15 Feb 2017 13:55:48 +0000 (14:55 +0100)]
remove unneeded applyEmptyText

this was not needed and does not work with extjs 6.2

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #306: add email address field to backup now window
Dominik Csapak [Fri, 17 Feb 2017 14:30:23 +0000 (15:30 +0100)]
fix #306: add email address field to backup now window

to send the backup log when clicking the backup now button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoremove unneeded *Index.pm files
Dominik Csapak [Tue, 7 Mar 2017 10:18:23 +0000 (11:18 +0100)]
remove unneeded *Index.pm files

they are not used anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse Template::Toolkit instead of [ExtJs|Touch|NoVnc]Index.pm
Dominik Csapak [Tue, 7 Mar 2017 10:18:22 +0000 (11:18 +0100)]
use Template::Toolkit instead of [ExtJs|Touch|NoVnc]Index.pm

this makes it easier to change the html if needed and seperates
it from the perl code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd the index.html.tpl files for the default ui and touch
Dominik Csapak [Tue, 7 Mar 2017 10:18:21 +0000 (11:18 +0100)]
add the index.html.tpl files for the default ui and touch

they are mostly copied from ExtJSIndex.pm and TouchIndex.pm, and
they are prepared with the Template::Toolkit syntax

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agospecify basedirs instead of hardcoding them several times
Dominik Csapak [Tue, 7 Mar 2017 10:18:20 +0000 (11:18 +0100)]
specify basedirs instead of hardcoding them several times

using a hash with the directories makes it easier to reuse them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse login instead of bash
Dominik Csapak [Tue, 28 Feb 2017 11:06:45 +0000 (12:06 +0100)]
use login instead of bash

since bash does not play well with utf8 encoded input,
eg. pressing ALTGR + M on an english intl keyboard layout int novnc
does not enter the mu symbol but makes bash think you pressed alt+5,
we should use login without authorization when logging in as root

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agokeep locale for vncshell and spiceshell
Dominik Csapak [Tue, 28 Feb 2017 11:22:56 +0000 (12:22 +0100)]
keep locale for vncshell and spiceshell

use the new keeplocale parameter from run_command and do not delete the
LANG and LANGUAGE variable for the vncshell

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoZFSEdit.js: correctly set 'nowritecache' on zfs plugin
Dietmar Maurer [Wed, 8 Mar 2017 05:39:26 +0000 (06:39 +0100)]
ZFSEdit.js: correctly set 'nowritecache' on zfs plugin

7 years agofix #1299: sort pools in poolselector by default
Dominik Csapak [Fri, 3 Mar 2017 11:20:32 +0000 (12:20 +0100)]
fix #1299: sort pools in poolselector by default

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd css fix for chrome >=56
Dominik Csapak [Fri, 3 Mar 2017 09:17:25 +0000 (10:17 +0100)]
add css fix for chrome >=56

with chrome/chromium version 56, they changed the way how they calculate
height of text in input fields (now it is correct according to the
standard) but extjs up to 6.2.1 has a fix for this in css

this patch reverses the fix in extjs and can be reverted when they
remove the fix upstream

the bug (EXTJS-23628) and the fix are described here:
https://www.sencha.com/forum/showthread.php?335045

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomigrateall: use get_filtered_vmlist
Thomas Lamprecht [Fri, 24 Feb 2017 09:47:03 +0000 (10:47 +0100)]
migrateall: use get_filtered_vmlist

instead of using get_start_stop_list in a rather hacky way use the
new get_filtered_vmlist method and adapt the loop, as now only one
level is required.

most changes  are just an indent shift left as we lost an unnecessary
loop level

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agorefactor get_start_stop_list
Thomas Lamprecht [Fri, 24 Feb 2017 09:47:02 +0000 (10:47 +0100)]
refactor get_start_stop_list

we used get_start_stop_list for assembling a list of VMIDs for
stopall, startall and migrateall.

While get_start_stop_list did already some filtering we did some
more in the specific startall and stopall calls.
Add a new private helper which does all the filtering and just
assemble the startup order in the get_start_stop_list method.

Move the template and ha managed filtering in the new
get_filtered_vmlist method, this allows us to remove the filtering
from the API calls them self and we do not load the vms config twice
(it was cached, but nonetheless unnecessary)

get_filtered_vmlist is also intended to be used by migrateall in a
next patch

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoDo not translate IT terms which should be used 'as is' in every language
Emmanuel Kasper [Wed, 1 Mar 2017 10:34:07 +0000 (11:34 +0100)]
Do not translate IT terms which should be used 'as is' in every language

for 'Initialize GPT' we use the alternate 'Initialize Disk with GPT' string
which was already existing

7 years agoRename 'create' to 'isCreate' in pveWindowEdit and subclasses
Emmanuel Kasper [Tue, 28 Feb 2017 13:26:49 +0000 (14:26 +0100)]
Rename 'create' to 'isCreate' in pveWindowEdit and subclasses

This fixes around 20 jslint type confusion warnings.
Also reduce the scope and document jslint warnings along the way.
No functional changes.

7 years agoIndentation fix
Emmanuel Kasper [Wed, 8 Feb 2017 14:13:19 +0000 (15:13 +0100)]
Indentation fix