]> git.proxmox.com Git - pve-manager-legacy.git/log
pve-manager-legacy.git
7 years agobump version to 5.0-12
Dietmar Maurer [Thu, 22 Jun 2017 07:32:01 +0000 (09:32 +0200)]
bump version to 5.0-12

7 years agoOSD: rename 'remove' to 'destroy'
Thomas Lamprecht [Wed, 17 May 2017 10:40:27 +0000 (12:40 +0200)]
OSD: rename 'remove' to 'destroy'

To have consistency with the CLI tools `pveceph destroyosd` command.
This is also more clear about the resulting action, as 'Remove' could
also just mean 'Remove from Config', for example.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopvereport: improve output and add timeouts to commands
Thomas Lamprecht [Fri, 9 Jun 2017 10:06:12 +0000 (12:06 +0200)]
pvereport: improve output and add timeouts to commands

Each command may not run longer than 10 seconds. This avoids
situations where no output gets generated because of a infinitely
hanging command (e.g. check for dead NFS storage)
Also ensure that commands are separated with a new line from each
other to improve readability.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoPVE/API2/Replication.pm: add $verbose parameter run_jobs()
Dietmar Maurer [Tue, 20 Jun 2017 06:57:40 +0000 (08:57 +0200)]
PVE/API2/Replication.pm: add $verbose parameter run_jobs()

7 years agoFix SafeDestroy when entering a numeric resource ID
Emmanuel Kasper [Wed, 14 Jun 2017 09:22:20 +0000 (11:22 +0200)]
Fix SafeDestroy when entering a numeric resource ID

In a previous commit, the inputField of SafeDestroy.js was converted
from a numberfield to a textfield to allow ceph pools names to be
entered.
This means the type of 'value' changed from number to string and
the strong equal test === was failing against a numeric id.
To solve this, we now always stringify the resource id before comparing.

7 years agoupdate default aplinfo.dat
Dietmar Maurer [Mon, 19 Jun 2017 04:52:52 +0000 (06:52 +0200)]
update default aplinfo.dat

7 years agouse 'any' for build architecture
Thomas Lamprecht [Wed, 14 Jun 2017 12:11:41 +0000 (14:11 +0200)]
use 'any' for build architecture

allows to build this on all architectures without marking it as
architecture independent.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agouse correct vmid for id when in vm replication panel
Dominik Csapak [Wed, 14 Jun 2017 06:52:59 +0000 (08:52 +0200)]
use correct vmid for id when in vm replication panel

values.guest is only available when the field 'guest' is not a
displayfield (e.g. when in vm replication panel), so we have to
use the given vmid first and only when this is not available, fall back
to the value of the field

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #1414: use table layout instead of columns
Dominik Csapak [Wed, 14 Jun 2017 07:22:23 +0000 (09:22 +0200)]
fix #1414: use table layout instead of columns

columns with fixed widths do not resize correctly in chrome when
resizing or having a different dpi scaling

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd replication grid to lxc/qemu/node
Dominik Csapak [Tue, 13 Jun 2017 12:56:06 +0000 (14:56 +0200)]
add replication grid to lxc/qemu/node

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd replication grid in datacenter
Dominik Csapak [Tue, 13 Jun 2017 12:56:05 +0000 (14:56 +0200)]
add replication grid in datacenter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd replication grid
Dominik Csapak [Tue, 13 Jun 2017 12:56:04 +0000 (14:56 +0200)]
add replication grid

this patch adds a replication grid, which shows the status/configuration
for the defined replication jobs, and allow them to be
added/edited/removed

in case the replication grid gets shown in the datacenter, we omit the
status fields, because we only have the configuration there

when opening the grid, we check if there are at least two nodes,
because currently we only allow replication in a cluster environment

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd calendarevent form field
Dominik Csapak [Tue, 13 Jun 2017 12:56:03 +0000 (14:56 +0200)]
add calendarevent form field

this is a freely editable combobox, which shows five usable examples and
their syntax, allowing users to deduct how the syntax works without
reading documentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoport button from proxmox-widget-toolkit
Dominik Csapak [Tue, 13 Jun 2017 12:56:02 +0000 (14:56 +0200)]
port button from proxmox-widget-toolkit

we want the new behaviour of the proxmox button also in pve, but
we do not want to change to proxmox-widget-toolkit yet

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd render_duration
Dominik Csapak [Tue, 13 Jun 2017 12:56:01 +0000 (14:56 +0200)]
add render_duration

for replica interval

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoimplement delete parameter for replicationconfig
Dominik Csapak [Tue, 13 Jun 2017 12:56:00 +0000 (14:56 +0200)]
implement delete parameter for replicationconfig

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoFix #1372: require manually entering the Ceph Pool id before destroying a pool
Emmanuel Kasper [Mon, 12 Jun 2017 14:18:09 +0000 (16:18 +0200)]
Fix #1372: require manually entering the Ceph Pool id before destroying a pool

7 years agoAdapt SafeDestroy component to be able to delete Ceph Pools
Emmanuel Kasper [Mon, 12 Jun 2017 14:18:08 +0000 (16:18 +0200)]
Adapt SafeDestroy component to be able to delete Ceph Pools

7 years agoimplement digest checking for ReplicationConfig update
Dominik Csapak [Mon, 12 Jun 2017 13:01:14 +0000 (15:01 +0200)]
implement digest checking for ReplicationConfig update

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agochange to ReplicaState
Dominik Csapak [Mon, 12 Jun 2017 13:01:13 +0000 (15:01 +0200)]
change to ReplicaState

this function moved, so the call to it has to move too

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agopvesr set_state
Wolfgang Link [Fri, 9 Jun 2017 06:19:49 +0000 (08:19 +0200)]
pvesr set_state

7 years agoui: don't translate NDP
Wolfgang Bumiller [Mon, 12 Jun 2017 08:52:10 +0000 (10:52 +0200)]
ui: don't translate NDP

7 years agogerman translation update
Thomas Lamprecht [Wed, 7 Jun 2017 08:37:48 +0000 (10:37 +0200)]
german translation update

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoitalian translation update
Thomas Lamprecht [Wed, 7 Jun 2017 08:37:47 +0000 (10:37 +0200)]
italian translation update

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
CC: Marco Menardi <mmenaz@mail.com>
7 years agotranslate params in bulk migrate window
Thomas Lamprecht [Wed, 7 Jun 2017 08:37:46 +0000 (10:37 +0200)]
translate params in bulk migrate window

we have translated 'Target Node' already and I add a translation for
german and italian for 'Parallel Jobs' in the next translation update
patches.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agochange to debian font-awesome
Dominik Csapak [Mon, 12 Jun 2017 08:13:24 +0000 (10:13 +0200)]
change to debian font-awesome

instead of having font-awesome copied into the repository,
depend on the debian package 'fonts-font-awesome', which provides all we
need

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomark node shutdown/reboot buttons as dangerous
Thomas Lamprecht [Tue, 6 Jun 2017 13:40:37 +0000 (15:40 +0200)]
mark node shutdown/reboot buttons as dangerous

this has the effect that a warning triangle instead of an "?" symbol
is displayed and that the default focus is on "No"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
7 years agoexplicit set button focus respecting the 'dangerous' option
Thomas Lamprecht [Tue, 6 Jun 2017 13:40:36 +0000 (15:40 +0200)]
explicit set button focus respecting the 'dangerous' option

The line:
 > Ext.MessageBox.defaultButton = me.dangerous ? 2 : 1;
just set the button which should get triggered on an keyboard "Enter"
if no button is focused currently.

But often the 'Yes' buttons is focused so an enter press would
trigger it, even on a as 'dangerous' marked option.

Fix this, as else a to fast "Enter" press can cause more problems
than needed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
7 years agobuildsys: clean: remove .buildinfo and .changes
Wolfgang Bumiller [Mon, 12 Jun 2017 08:20:12 +0000 (10:20 +0200)]
buildsys: clean: remove .buildinfo and .changes

7 years agobuild: whitespace cleanup
Fabian Grünbichler [Mon, 12 Jun 2017 07:34:10 +0000 (09:34 +0200)]
build: whitespace cleanup

7 years agobuild: fakeroot is default anyway
Fabian Grünbichler [Mon, 12 Jun 2017 07:27:23 +0000 (09:27 +0200)]
build: fakeroot is default anyway

7 years agobuild: make control static
Fabian Grünbichler [Mon, 12 Jun 2017 07:26:57 +0000 (09:26 +0200)]
build: make control static

7 years agobuild: cleanup control.in
Fabian Grünbichler [Mon, 12 Jun 2017 07:26:22 +0000 (09:26 +0200)]
build: cleanup control.in

7 years agoremoved PVE/Replication.pm (moved to pve-guest-common)
Dietmar Maurer [Mon, 12 Jun 2017 05:04:51 +0000 (07:04 +0200)]
removed PVE/Replication.pm (moved to pve-guest-common)

7 years agouse new replication helpers from pve-guest-common
Dietmar Maurer [Mon, 12 Jun 2017 04:59:21 +0000 (06:59 +0200)]
use new replication helpers from pve-guest-common

7 years agoPVE::Replication - remove dependency to PVE::LXC/PVE::QemuServer
Dietmar Maurer [Fri, 9 Jun 2017 07:45:44 +0000 (09:45 +0200)]
PVE::Replication - remove dependency to PVE::LXC/PVE::QemuServer

So that we can move the whole class to package pve-guest-common.

7 years agoPVE::Replication - pass guest_class to run_replication
Dietmar Maurer [Fri, 9 Jun 2017 06:47:49 +0000 (08:47 +0200)]
PVE::Replication - pass guest_class to run_replication

So that we can (re)use methods from PVE::AbstractConfig.

7 years agodebian: reformat depends in control
Fabian Grünbichler [Fri, 9 Jun 2017 12:32:36 +0000 (14:32 +0200)]
debian: reformat depends in control

7 years agochange from dpkg-deb to dpkg-buildpackage
Dominik Csapak [Fri, 9 Jun 2017 07:55:28 +0000 (09:55 +0200)]
change from dpkg-deb to dpkg-buildpackage

for better building pve-manager

this moves the copyright file to debian/
the debian/changelog.Debian to debian/changelog

we do not need the debian/conffiles anymore (gets autogenerated from
files in ./etc/)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agodo not let www-data own the static js/html files
Dominik Csapak [Fri, 9 Jun 2017 07:55:27 +0000 (09:55 +0200)]
do not let www-data own the static js/html files

this is neither necessary, nor useful
those files are meant to be read only anyway, so there is no gain in
them being owned by www-data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agomake language js files consistent
Dominik Csapak [Fri, 9 Jun 2017 08:54:11 +0000 (10:54 +0200)]
make language js files consistent

else every package we build has different orderings for the translated
strings

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix wrong variable syntax
Dominik Csapak [Fri, 9 Jun 2017 07:55:25 +0000 (09:55 +0200)]
fix wrong variable syntax

{$PACKAGE} expands to '{ACKAGE}', meaning we shipped a dir:
/usr/share/doc/{ACKAGE}/examples

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd SOURCE_DATE_EPOCH to Makefile
Dominik Csapak [Fri, 9 Jun 2017 07:55:24 +0000 (09:55 +0200)]
add SOURCE_DATE_EPOCH to Makefile

to get consistent timestamps for most files in the package

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agotests: override GuestHelper's lockdir
Wolfgang Bumiller [Fri, 9 Jun 2017 07:55:57 +0000 (09:55 +0200)]
tests: override GuestHelper's lockdir

Otherwise the user running the tests may either create (and
end up being the ownderof) the system wide
/var/lock/pve-manager/* files, or the tests will fail (or
loop endlessly) if the user doesn't have access to them.

7 years agoPVE::API2::ReplicationConfig->delete - use raise_param_exc
Dietmar Maurer [Fri, 9 Jun 2017 04:12:02 +0000 (06:12 +0200)]
PVE::API2::ReplicationConfig->delete - use raise_param_exc

7 years agoAdd force parameter for delete replica job.
Wolfgang Link [Thu, 8 Jun 2017 10:01:50 +0000 (12:01 +0200)]
Add force parameter for delete replica job.

This parameter is helpful if an unsolvable situation occurs or the vmconfig was delete manually.

7 years agofix #1389: vzdump: handle storage failure in new()
Fabian Grünbichler [Mon, 22 May 2017 11:16:48 +0000 (13:16 +0200)]
fix #1389: vzdump: handle storage failure in new()

otherwise the mail notification is not triggered

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoshow hostpci devices in gui
Dominik Csapak [Mon, 29 May 2017 09:10:21 +0000 (11:10 +0200)]
show hostpci devices in gui

so one can see which pci devices are assigned to which vm

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd pci icon/css class
Dominik Csapak [Mon, 29 May 2017 09:10:20 +0000 (11:10 +0200)]
add pci icon/css class

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse usbedit window to add/edit usb devices
Dominik Csapak [Mon, 29 May 2017 08:46:34 +0000 (10:46 +0200)]
use usbedit window to add/edit usb devices

the usb device button gets disabled when there are
already 5 usb devices

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd usbselector and usb edit window for qemu
Dominik Csapak [Mon, 29 May 2017 08:46:33 +0000 (10:46 +0200)]
add usbselector and usb edit window for qemu

the edit window has 3 radiobuttons (spice,device,port)

and a checkbox for usb3 (which gets disabled and checked
if you choose a usb3 device)

also it makes use of the help feature

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoshow usb devices in qemu hardware view
Dominik Csapak [Mon, 29 May 2017 08:46:32 +0000 (10:46 +0200)]
show usb devices in qemu hardware view

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd css and image for usb devices
Dominik Csapak [Mon, 29 May 2017 08:46:31 +0000 (10:46 +0200)]
add css and image for usb devices

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #1385: display no rbd user by default
Dominik Csapak [Thu, 18 May 2017 07:42:17 +0000 (09:42 +0200)]
fix #1385: display no rbd user by default

when having an rbd storage with no user, we displayed 'admin' by default,
this patch sets '' and will be overwritten from the backend if a value is set

when creating a rbd storage, the textfield still has 'admin' in
there by default

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agouse physical NIC regexp
Fabian Grünbichler [Mon, 22 May 2017 07:44:18 +0000 (09:44 +0200)]
use physical NIC regexp

because in >= Stretch, most systems don't have ethX devices any more.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agopvesr: prepare_local_job: fixup
Fabian Grünbichler [Thu, 8 Jun 2017 09:40:03 +0000 (11:40 +0200)]
pvesr: prepare_local_job: fixup

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agopvesr: prepare_local_job: use PVE::replication::prepare
Fabian Grünbichler [Thu, 8 Jun 2017 09:07:35 +0000 (11:07 +0200)]
pvesr: prepare_local_job: use PVE::replication::prepare

to reduce code duplication. this slightly changes behaviour
compared to the previous version:

only disks with the correct prefix are cleaned up, not all
disks with __replication* snapshots.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoReplication::prepare: track cleaned up volumes
Fabian Grünbichler [Thu, 8 Jun 2017 08:17:44 +0000 (10:17 +0200)]
Replication::prepare: track cleaned up volumes

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoFix: list_images returns now a array of hashes so adopt the code.
Wolfgang Link [Thu, 8 Jun 2017 08:08:19 +0000 (10:08 +0200)]
Fix: list_images returns now a array of hashes so adopt the code.

7 years agoPermit set parent_snapname if it is not set.
Wolfgang Link [Thu, 8 Jun 2017 08:08:18 +0000 (10:08 +0200)]
Permit set parent_snapname if it is not set.

7 years agoPVE/API2/ReplicationConfig.pm: add job creation checks
Dietmar Maurer [Thu, 8 Jun 2017 08:01:45 +0000 (10:01 +0200)]
PVE/API2/ReplicationConfig.pm: add job creation checks

Check if the target and guest exists to avoid creation of faulty jobs.

7 years agopvesr: add a message that job removal will take some time
Dietmar Maurer [Thu, 8 Jun 2017 07:42:12 +0000 (09:42 +0200)]
pvesr: add a message that job removal will take some time

7 years agoPVE::Replication::replicate - Set $running to 0 if undef.
Dietmar Maurer [Thu, 8 Jun 2017 07:31:09 +0000 (09:31 +0200)]
PVE::Replication::replicate - Set $running to 0 if undef.

7 years agoPVE::API2::Tasks - remove dead code
Dietmar Maurer [Thu, 8 Jun 2017 06:52:22 +0000 (08:52 +0200)]
PVE::API2::Tasks - remove dead code

7 years agoPVE::API2::Tasks - use PVE::Tools::dump_logfile
Dietmar Maurer [Thu, 8 Jun 2017 05:36:33 +0000 (07:36 +0200)]
PVE::API2::Tasks - use PVE::Tools::dump_logfile

7 years agoPVE::API2::Replication: rework replication status API
Dietmar Maurer [Thu, 8 Jun 2017 05:08:33 +0000 (07:08 +0200)]
PVE::API2::Replication: rework replication status API

/nodes/<node>/replication => list status of all jobs

/nodes/<node>/replication/<id>/status => individual job status

/nodes/<node>/replication/<id>/log => job log

7 years agoreplication: add replication log files
Dietmar Maurer [Wed, 7 Jun 2017 12:24:09 +0000 (14:24 +0200)]
replication: add replication log files

7 years agoreplication: improve stale volume detection, allow sync from parent snapshot
Dietmar Maurer [Wed, 7 Jun 2017 07:30:52 +0000 (09:30 +0200)]
replication: improve stale volume detection, allow sync from parent snapshot

We pass a list of storage to scan for stale volumes to prepare_local_job().
So we make sure that we only activate/scan related storages.

Snapshot rollback may remove local replication shapshots. In that case
we still have the $conf->{parent} snapshot on both sides, so we
can use that as base snapshot.

7 years agoRemove $vmid form ssh prepare and finalize command.
Dietmar Maurer [Wed, 7 Jun 2017 15:20:44 +0000 (17:20 +0200)]
Remove $vmid form ssh prepare and finalize command.

7 years agomobilegui: fix title with perl template
Dominik Csapak [Wed, 7 Jun 2017 14:46:05 +0000 (16:46 +0200)]
mobilegui: fix title with perl template

we forgot to change the title from a perl variable to use the
Perl::Template syntax

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoreplication: save list of used storage IDs
Dietmar Maurer [Tue, 6 Jun 2017 07:54:53 +0000 (09:54 +0200)]
replication: save list of used storage IDs

7 years agoPVE::API2::ReplicationConfig - extract guest ID from job ID
Dietmar Maurer [Tue, 6 Jun 2017 10:43:13 +0000 (12:43 +0200)]
PVE::API2::ReplicationConfig -  extract guest ID from job ID

7 years agouse new PVE::ReplicationState::replication_snapshot_name()
Dietmar Maurer [Tue, 6 Jun 2017 10:02:53 +0000 (12:02 +0200)]
use new PVE::ReplicationState::replication_snapshot_name()

7 years agoreplication: add last_node to replication state
Dietmar Maurer [Tue, 6 Jun 2017 04:49:05 +0000 (06:49 +0200)]
replication: add last_node to replication state

So that we know which node produced the state. This is not always
the local node, because we copy the state on migrate.

7 years agoPVE::Replication - do not pass time to logfunc
Dietmar Maurer [Tue, 6 Jun 2017 04:36:03 +0000 (06:36 +0200)]
PVE::Replication - do not pass time to logfunc

This is simply not neccessary.

7 years agouse correct field for child link
Dominik Csapak [Fri, 2 Jun 2017 12:06:28 +0000 (14:06 +0200)]
use correct field for child link

namely id instead of vmid, so that the child links are working in the
api inspector and pvesh

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoPVE/API2/Replication.pm: change vmid => guest
Dietmar Maurer [Fri, 2 Jun 2017 14:22:46 +0000 (16:22 +0200)]
PVE/API2/Replication.pm: change vmid => guest

7 years agoadd vmid parameter to replication status
Dominik Csapak [Fri, 2 Jun 2017 12:06:27 +0000 (14:06 +0200)]
add vmid parameter to replication status

so that one can limit the status list for one vm/ct

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd defaultButton to loginWindow
Dominik Csapak [Fri, 2 Jun 2017 08:55:18 +0000 (10:55 +0200)]
add defaultButton to loginWindow

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd defaultButton and focus to snapshot window
Dominik Csapak [Fri, 2 Jun 2017 08:55:17 +0000 (10:55 +0200)]
add defaultButton and focus to snapshot window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd override for correct defaultButton behaviour
Dominik Csapak [Fri, 2 Jun 2017 08:55:16 +0000 (10:55 +0200)]
add override for correct defaultButton behaviour

we disable the defaultButton behaviour on textarea and aria-multiline
fields, else we cannot input a newline into a textarea on a form with
a defaultButton defined

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoPVE::Replication - use new PVE::ReplicationState class
Dietmar Maurer [Fri, 2 Jun 2017 08:07:33 +0000 (10:07 +0200)]
PVE::Replication - use new PVE::ReplicationState class

7 years agoPVE::Replication - simplify code
Dietmar Maurer [Fri, 2 Jun 2017 04:36:29 +0000 (06:36 +0200)]
PVE::Replication - simplify code

Move all state writes into run_replication()

7 years agoDo not internationalize 'Pools' when used in Ceph Context
Emmanuel Kasper [Mon, 29 May 2017 09:55:13 +0000 (11:55 +0200)]
Do not internationalize 'Pools' when used in Ceph Context

This is a Ceph domain term and should not be translated like OSD, ...
Galician had "Virtual Groups" for Pools, which does not apply for
Ceph Context.
Also most languages were using 'Pools' anyway.

7 years agoremove "read-only" option from container root disk
Dominik Csapak [Mon, 29 May 2017 08:50:57 +0000 (10:50 +0200)]
remove "read-only" option from container root disk

with root-only enabled, you cannot start the conainer anymore,
so we remove it there entirely

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix #1400: do not use defaultButton in NotesEdit window
Dominik Csapak [Thu, 1 Jun 2017 12:37:35 +0000 (14:37 +0200)]
fix #1400: do not use defaultButton in NotesEdit window

with a defaultButton set, we cannot enter a newline into a textarea

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoallow width and height parameter for vncshell
Dominik Csapak [Wed, 24 May 2017 10:30:47 +0000 (12:30 +0200)]
allow width and height parameter for vncshell

so that novnc can request a different screen size

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoreplication: use a dedicated lock file
Wolfgang Bumiller [Thu, 1 Jun 2017 13:26:01 +0000 (15:26 +0200)]
replication: use a dedicated lock file

Otherwise $update_job_state's file_set_contents() call
drops our lock.

7 years agomake check: run replication_test6.pl
Dietmar Maurer [Wed, 31 May 2017 13:29:53 +0000 (15:29 +0200)]
make check: run replication_test6.pl

7 years agoPVE::Replication::replicate - call get_ssh_info on demand
Dietmar Maurer [Wed, 31 May 2017 13:19:26 +0000 (15:19 +0200)]
PVE::Replication::replicate - call get_ssh_info on demand

Only call get_ssh_info() when needed, and do not pass $migration_network
for a simply remove_job - this produces just overhead and is not required.
If we always call get_ssh_info() we can never delete jobs using non-existing
targets.

7 years agoUntaint the content of pve-replication-state.json.
Wolfgang Link [Wed, 31 May 2017 12:03:34 +0000 (14:03 +0200)]
Untaint the content of pve-replication-state.json.

JSON::decode will not untaint the raw text, so we get problems with the
last_sync, which we use many times in the code with open3.

7 years agoreplication - allow removal of jobs with target on local node
Dietmar Maurer [Wed, 31 May 2017 11:54:40 +0000 (13:54 +0200)]
replication - allow removal of jobs with target on local node

7 years agobump version to 5.0-11
Dietmar Maurer [Wed, 31 May 2017 07:38:42 +0000 (09:38 +0200)]
bump version to 5.0-11

7 years agoreplication_test5.pl: add test for job removal
Dietmar Maurer [Tue, 30 May 2017 12:40:08 +0000 (14:40 +0200)]
replication_test5.pl: add test for job removal

7 years agoPVE::API2::ReplicationConfig - implement delete
Dietmar Maurer [Mon, 29 May 2017 06:37:38 +0000 (08:37 +0200)]
PVE::API2::ReplicationConfig - implement delete

We just set the remove_job property in the configuration. Actual removal
is done asynchronous inside replicate().

7 years agoPVE::API2Tools::resolve_proxyto - new helper
Dietmar Maurer [Mon, 29 May 2017 05:49:17 +0000 (07:49 +0200)]
PVE::API2Tools::resolve_proxyto - new helper

Call proxyto_callback if that method is defined.

7 years agoPVE::Replication - aquire guest_migration_lock during replication
Dietmar Maurer [Wed, 24 May 2017 07:35:01 +0000 (09:35 +0200)]
PVE::Replication - aquire guest_migration_lock during replication

To block guest migration.

7 years agoPVE::Replication - implement replicate_volume()
Dietmar Maurer [Tue, 23 May 2017 08:31:57 +0000 (10:31 +0200)]
PVE::Replication - implement replicate_volume()

Simply call PVE::Storage::storage_migrate()

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