Re: [pve-devel] [PATCH guest-common 1/4] vzdump: loosen mailto pattern to allow whitespaces

2021-02-15 Thread Fabian Ebner
I'm going to try and come up with a v2 that re-uses the more complete 'email' pattern from pve-common. On 12.02.21 13:23, Fabian Ebner wrote: to make it more compatible to what we had previously. In pve-manger, split_list() is called on the parameter, so any whitespaces and even stand-alone ','

Re: [pve-devel] [RFC 2/2 manager] proxy: allow setting BIND_IP for pveproxy

2021-02-15 Thread Oguz Bektas
hi, thanks for responding! On Wed, Feb 10, 2021 at 05:20:59PM +0100, Stoiko Ivanov wrote: > Thanks for looking into this! > > On Wed, 10 Feb 2021 17:01:42 +0100 > Oguz Bektas wrote: > > > default to 0.0.0.0 to preserve backwards behavior > > > > Signed-off-by: Oguz Bektas > > --- > > PVE/Se

[pve-devel] [PATCH v2 common 2/8] register email-or-username format

2021-02-15 Thread Fabian Ebner
To be used for the mailto vzdump parameter. Signed-off-by: Fabian Ebner --- New in v2. src/PVE/JSONSchema.pm | 12 1 file changed, 12 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 5870b69..20d72b3 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/J

[pve-devel] [PATCH v2 guest-common 3/8] vzdump: command line: refactor handling prune-backups

2021-02-15 Thread Fabian Ebner
to re-use a line here and with the next patch. Signed-off-by: Fabian Ebner --- New in v2. PVE/VZDump/Common.pm | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PVE/VZDump/Common.pm b/PVE/VZDump/Common.pm index af141de..eceea7f 100644 --- a/PVE/VZDump/Common.pm +++ b/P

[pve-devel] [PATCH v2 manager 8/8] test: vzdump: rename vzdump_new_retention_test.pl to vzdump_new_test.pl

2021-02-15 Thread Fabian Ebner
as it now also includes tests for new() with non-retention options. Signed-off-by: Fabian Ebner --- No changes from v1. test/Makefile | 8 test/{vzdump_new_retention_test.pl => vzdump_new_test.pl} | 0 2 files changed, 4 insertions(+), 4 del

[pve-devel] [PATCH v2 manager 6/8] vzdump: refactor parsing mailto so it can be mocked

2021-02-15 Thread Fabian Ebner
Signed-off-by: Fabian Ebner --- No changes from v1. PVE/API2/VZDump.pm | 11 +-- PVE/VZDump.pm | 21 + 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/PVE/API2/VZDump.pm b/PVE/API2/VZDump.pm index 806ac7fd..44376106 100644 --- a/PVE/API2/VZDump.

[pve-devel] [PATCH-SERIES v2] loosen up mailto regex for backwards compatibility

2021-02-15 Thread Fabian Ebner
especially regarding the whitespace-agnostic behavior. And while we're at it, also use the more complete email regex from pve-common. Changes from v1: * re-use the email regex from pve-common * improve printing out mailto parameters to the cron file common: Fabian Ebner (2): sendmail:

[pve-devel] [PATCH v2 guest-common 4/8] vzdump: command line: make sure mailto is comma-separated

2021-02-15 Thread Fabian Ebner
In addition to relying on shellquote(), it's still nice to avoid printing out unnecessary whitespaces, especially newlines. Signed-off-by: Fabian Ebner --- New in v2. PVE/VZDump/Common.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/VZDump/Common.pm b/PVE/VZDump/Common.pm index ecee

[pve-devel] [PATCH v2 common 1/8] sendmail: use more complete email regex and shellquote

2021-02-15 Thread Fabian Ebner
Shellquote is needed for '~', and while it doesn't help with '-', there should be no problem, because options are separated from mailto since commit 216a3f4f131693dc4bbad5e06e96a61baef5f5e9. Signed-off-by: Fabian Ebner --- New in v2. Since JSONSchema already uses Tools, the pattern has to live

[pve-devel] [PATCH v2 guest-common 5/8] vzdump: mailto: use email-or-username-list format

2021-02-15 Thread Fabian Ebner
because it is a more complete pattern. Also, 'mailto' was a '-list' format in PVE 6.2 and earlier, so this also fixes whitespace-related backwards compatibility. In particular, this fixes creating a backup job in the GUI without setting an address, which passes along ''. For example, > vzdump 153

[pve-devel] [PATCH v2 manager 7/8] test: vzdump: add tests for mailto

2021-02-15 Thread Fabian Ebner
Re-use the existing code, by allowing special kinds of 'tests' that just set the options that are tested for. Signed-off-by: Fabian Ebner --- No changes from v1. Dependency bump for pve-guest-common is needed. test/vzdump_new_retention_test.pl | 174 +- 1 file chan

Re: [pve-devel] [PATCH v5 series 0/5] disk reassign: add new feature

2021-02-15 Thread Aaron Lauterer
Bump in case this has been missed. :) The patches should still apply fine. (just tested) On 12/15/20 1:48 PM, Aaron Lauterer wrote: This series implements a new feature which allows users to easily reassign disks between VMs. Currently this is only possible with one of the following manual step

[pve-devel] [PATCH v5 series 0/3] Add GUI for disk reassignment

2021-02-15 Thread Aaron Lauterer
This patch series adds the GUI to the recent patch series [0] which enables the reassignment of disks between VMs. For this to work, the backend patch series [0] needs to be applied and installed. v4 -> v5: * rebased * removed whitespace patch as these issues have been addressed in the meantime

[pve-devel] [PATCH v5 manager 2/3] ui: utils: add method to get VM data from resource store

2021-02-15 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- v3 -> v4i -> v5: rebased v2 -> v3: nothing changed v1 -> v2: fixed linter errors www/manager6/Utils.js | 13 + 1 file changed, 13 insertions(+) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index 7a1a7fb6..a298aac0 100644 --- a/www/man

[pve-devel] [PATCH v5 widget-toolkit 1/3] window/edit: add option to disable reset button

2021-02-15 Thread Aaron Lauterer
Sometimes the reset button does not make sense and the isCreate option does not fit as well because with it, the submit button will be enabled right away instead of waiting for the form to be valid. Signed-off-by: Aaron Lauterer --- v1 -> v2 -> v3 -> v4 -> v5: nothing changed This helps to reus

[pve-devel] [PATCH v5 manager 3/3] ui: qemu: Add disk reassign dialog

2021-02-15 Thread Aaron Lauterer
Adds a new button to the hardware panel labeled 'Reassign disk' and enables a user to reassign a disk to another VM. Signed-off-by: Aaron Lauterer --- v4 -> v5: rebased v3 -> v4: * added check to not show template VMs in dropdown * renamed disk parameter to `drive_name` v2 -> v3: * fixed check

[pve-devel] applied: [PATCH zfsonlinux] update submodule and patches to zfs-2.0.3

2021-02-15 Thread Thomas Lamprecht
On 12.02.21 18:28, Stoiko Ivanov wrote: > Signed-off-by: Stoiko Ivanov > --- > did a quick test on my zfs storage-replication testcluster: > * both systems failed to import their zfs pools upon boot (I'm quite sure > it's related to upstream commit 642d86af0d91b2bf88d5ea34cb6888b03c39c459) > * b