[pve-devel] applied: [PATCH proxmox-perl-rs] common: d/control: break/replace libpve-rs-perl (<< 0.6.0)

2022-05-09 Thread Thomas Lamprecht
Am 5/9/22 um 12:17 schrieb Stoiko Ivanov: > libproxmox-rs-perl ships /usr/share/perl5/PVE/RS/CalendarEvent.pm, > which was also present in libpve-rs-perl until version 0.5.1 > > This can lead to a (racy) issue while upgrading - depending > on which of libproxmox-rs-perl or libpve-rs-perl gets unpa

Re: [pve-devel] [PATCH v4 qemu-server 1/6] cloudinit: add cloudinit section for current generated config.

2022-05-09 Thread DERUMIER, Alexandre
Thanks for the review fabian, I'll read your comments and work on it tomorrow. Le vendredi 06 mai 2022 à 12:20 +0200, Fabian Ebner a écrit : > Am 27.04.22 um 16:05 schrieb Alexandre Derumier: > > Instead using vm pending options for pending cloudinit generated > > config, > > > > write current g

Re: [pve-devel] [PATCH v2 manager 1/2] GUI: HDEdit: check iothread by default

2022-05-09 Thread Daniel Tschlatscher
I applied this patch in a few virtualized Proxmox instances. Existing VM disk and controller settings were correctly applied, adding new disks worked as expected. I tried to find some settings combinations in the Editor panel that would be wrong or nonsensical. Though, I couldn't find any problems

Re: [pve-devel] [PATCH proxmox-perl-rs] common: d/control: break/replace libpve-rs-perl (<< 0.6.0)

2022-05-09 Thread Fabian Grünbichler
On May 9, 2022 12:17 pm, Stoiko Ivanov wrote: > libproxmox-rs-perl ships /usr/share/perl5/PVE/RS/CalendarEvent.pm, > which was also present in libpve-rs-perl until version 0.5.1 > > This can lead to a (racy) issue while upgrading - depending > on which of libproxmox-rs-perl or libpve-rs-perl gets

Re: [pve-devel] [PATCH manager 2/2] configs: vzdump: add notes-template default

2022-05-09 Thread Thomas Lamprecht
On 09/05/2022 09:17, Fabian Ebner wrote: > so users can see that it can be configured here. > > Signed-off-by: Fabian Ebner > --- > > Causes a "configuration changed by distributor" dialogue when > upgrading the package. > > configs/vzdump.conf | 1 + > 1 file changed, 1 insertion(+) > > diff

[pve-devel] [PATCH v4 manager 1/6] vzdump: verify parameters: properly verify notes-template

2022-05-09 Thread Fabian Ebner
instead of just checking for a newline, do a full check already. Also do the check at the beginning of generate_notes() for consistency and remove the check after expansion to avoid failing late for things like '{{cl{{node}}er}}' (which can even expand to a valid variable making the error even mor

[pve-devel] [PATCH v2 manager 6/6] configs: vzdump: add notes-template default

2022-05-09 Thread Fabian Ebner
so users can see that it can be configured here. Signed-off-by: Fabian Ebner --- No changes from v1. Causes a "configuration changed by maintainer dialogue" when upgrading pve-manager configs/vzdump.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/vzdump.conf b/configs/vzdump.

[pve-devel] [PATCH v2 manager 5/6] ui: manual backup: also set notes-template default

2022-05-09 Thread Fabian Ebner
like is done for other vzdump options already. Requested in the community forum: https://forum.proxmox.com/threads/108970/#post-468655 Signed-off-by: Fabian Ebner --- No changes from v1. www/manager6/window/Backup.js | 4 1 file changed, 4 insertions(+) diff --git a/www/manager6/window/

[pve-devel] [PATCH v2 manager 2/6] vzdump: generate notes: initialize potentially undef values

2022-05-09 Thread Fabian Ebner
For VMs, $task->{hostname} might be undef and when running on a stand-alone node, there is no cluster name. Reported-by: Marco Gabriel Signed-off-by: Fabian Ebner --- Changes from v1: * Use 'standalone node' rather than empty string if there is no cluster. PVE/VZDump.pm | 4 ++-- 1

[pve-devel] [PATCH v2 manager 3/6] ui: manual backup: list possible template variables directly

2022-05-09 Thread Fabian Ebner
rather than as a tooltip. Suggested-by: Thomas Lamprecht Signed-off-by: Fabian Ebner --- Re-sent v1. www/manager6/Utils.js | 2 ++ www/manager6/dc/Backup.js | 2 +- www/manager6/window/Backup.js | 16 ++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git

[pve-devel] [PATCH-SERIES v2 manager] notes-template followups

2022-05-09 Thread Fabian Ebner
Decided to collect the patches in a series to make it easier to keep track. Used v2 because everything besides the first patch is. Fabian Ebner (6): vzdump: verify parameters: properly verify notes-template vzdump: generate notes: initialize potentially undef values ui: manual backup: list p

[pve-devel] [PATCH v2 manager 4/6] vzdump: avoid 'requires' constraint when parsing defaults

2022-05-09 Thread Fabian Ebner
to avoid warnings like parse error in '/etc/vzdump.conf' - 'storage': missing property - 'notes-template' requires this property when there is no default for the required property configured. In new(), the defaults are mixed in with the regular CLI/API parameters, so re-check if the required prope

[pve-devel] [PATCH proxmox-perl-rs] common: d/control: break/replace libpve-rs-perl (<< 0.6.0)

2022-05-09 Thread Stoiko Ivanov
libproxmox-rs-perl ships /usr/share/perl5/PVE/RS/CalendarEvent.pm, which was also present in libpve-rs-perl until version 0.5.1 This can lead to a (racy) issue while upgrading - depending on which of libproxmox-rs-perl or libpve-rs-perl gets unpacked first we potentially run into: ``` dpkg: error

Re: [pve-devel] [PATCH manager] vzdump: generate notes: initialize potentially undef values

2022-05-09 Thread Fabian Grünbichler
On May 6, 2022 12:59 pm, Fabian Ebner wrote: > For VMs, $task->{hostname} might be undef and when running on a > stand-alone node, there is no cluster name. > > Reported-by: Marco Gabriel > Signed-off-by: Fabian Ebner > --- > PVE/VZDump.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletion

Re: [pve-devel] [PATCH manager 2/2] configs: vzdump: add notes-template default

2022-05-09 Thread Fabian Ebner
Am 09.05.22 um 09:17 schrieb Fabian Ebner: > so users can see that it can be configured here. > > Signed-off-by: Fabian Ebner > --- > > Causes a "configuration changed by distributor" dialogue when > upgrading the package. > > configs/vzdump.conf | 1 + > 1 file changed, 1 insertion(+) > > di

[pve-devel] [PATCH pve-manager 2/3] remove dependency on Term::ReadLine (see #2077)

2022-05-09 Thread Stefan Hrdlicka
depends on change in pve-common Signed-off-by: Stefan Hrdlicka --- PVE/CLI/pvenode.pm | 12 debian/control | 1 - 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm index acef6c3b..383e1f81 100644 --- a/PVE/CLI/pvenode.pm +++

[pve-devel] [PATCH pve-common 1/3] remove dependency on Term::ReadLine (see #2077)

2022-05-09 Thread Stefan Hrdlicka
Signed-off-by: Stefan Hrdlicka --- README.dev | 2 +- src/PVE/PTY.pm | 21 ++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.dev b/README.dev index cb6bcf8..af17116 100644 --- a/README.dev +++ b/README.dev @@ -62,7 +62,7 @@ libstring-shellquote-perl

[pve-devel] [PATCH qemu-server 3/3] remove dependency on Term::ReadLine (see #2077)

2022-05-09 Thread Stefan Hrdlicka
depends on change in pve-common Signed-off-by: Stefan Hrdlicka --- This wasn't in the ticket but I found the dependency here as well and removed it. PVE/CLI/qm.pm | 4 ++-- debian/control | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index

[pve-devel] [PATCH pve-common 0/3] remove dependency on Term::ReadLine

2022-05-09 Thread Stefan Hrdlicka
This removes the dependency to libterm-readline-gnu-perl for pve-common, pve-manager and qemu-server. This is achived by adding a read function to PVE::PTY. # pve-common Stefan Hrdlicka (1): remove dependency on Term::ReadLine (see #2077) README.dev | 2 +- src/PVE/PTY.pm | 21 +++

[pve-devel] [PATCH manager 2/2] configs: vzdump: add notes-template default

2022-05-09 Thread Fabian Ebner
so users can see that it can be configured here. Signed-off-by: Fabian Ebner --- Causes a "configuration changed by distributor" dialogue when upgrading the package. configs/vzdump.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/vzdump.conf b/configs/vzdump.conf index a0075cfa

[pve-devel] [PATCH manager 1/2] ui: manual backup: also set notes-template default

2022-05-09 Thread Fabian Ebner
like is done for other vzdump options already. Requested in the community forum: https://forum.proxmox.com/threads/108970/#post-468655 Signed-off-by: Fabian Ebner --- www/manager6/window/Backup.js | 4 1 file changed, 4 insertions(+) diff --git a/www/manager6/window/Backup.js b/www/manage