[pve-devel] applied: [PATCH manager] certs: early renew long-lived certificates

2020-04-27 Thread Thomas Lamprecht
On 4/23/20 12:20 PM, Fabian Grünbichler wrote: > if our self-signed certificate expires in more than 825 days, but was > created after July 2019 it won't be accepted by modern Apple devices. we > fixed the issuance to generate shorter-lived certificates in November > 2019, this cleans up the existi

[pve-devel] [PATCH manager v2] ui: dc/Auth: add sync button

2020-04-27 Thread Dominik Csapak
opens a window with the parameters for the sync and two buttons: 'preview' and 'sync' both open the taskviewer, but the 'preview' one sets the 'no-write' parameter so that it does not get written out to the user.cfg loads the realm config and prefills the selection with values from the config Si

[pve-devel] [PATCH widget-toolkit] window/LanguageEdit: make window non-resizable

2020-04-27 Thread Dominik Csapak
Signed-off-by: Dominik Csapak --- window/LanguageEdit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/window/LanguageEdit.js b/window/LanguageEdit.js index dd7393c..9176cfd 100644 --- a/window/LanguageEdit.js +++ b/window/LanguageEdit.js @@ -30,6 +30,7 @@ Ext.define('Proxmox.window.Languag

Re: [pve-devel] [PATCH guest-common 1/3] snapshot_rollback: flock earlier

2020-04-27 Thread Fabian Grünbichler
On April 27, 2020 1:08 pm, Fabian Ebner wrote: > One not-patch-related observation inline. > > On 27.04.20 10:24, Fabian Grünbichler wrote: >> to protect checks against concurrent modifications >> >> Signed-off-by: Fabian Grünbichler >> --- >> >> Notes: >> bested viewed with --patience -w

[pve-devel] [PATCH manager 2/2] vzdump: test: add first tests to the guest include logic

2020-04-27 Thread Aaron Lauterer
Signed-off-by: Aaron Lauterer --- test/vzdump_guest_included_test.pl | 190 + 1 file changed, 190 insertions(+) create mode 100755 test/vzdump_guest_included_test.pl diff --git a/test/vzdump_guest_included_test.pl b/test/vzdump_guest_included_test.pl new file mode 1

[pve-devel] [PATCH manager 1/2] vzdump: make guest include logic testable

2020-04-27 Thread Aaron Lauterer
As a first step to make the whole guest include logic more testable the part from the API endpoint has been moved to its own method with as little changes as possible. Everything concerning `all` and `exclude` logic, and in some conditions, node limits, is still in the PVE::VZDump->exec_backup() m

Re: [pve-devel] [PATCH common] print_text_table: sort by leftmost column with no undefined value

2020-04-27 Thread Fabian Ebner
On 27.04.20 13:27, Thomas Lamprecht wrote: On 4/27/20 11:41 AM, Fabian Ebner wrote: This restores the behavior for sort_key as it's described in the comment for print_text_table. Fixes warnings, e.g. pvesh get /nodes//network would print "use of uninitialized"-warnings if there are inactive net

Re: [pve-devel] [PATCH common] print_text_table: sort by leftmost column with no undefined value

2020-04-27 Thread Thomas Lamprecht
On 4/27/20 11:41 AM, Fabian Ebner wrote: > This restores the behavior for sort_key as it's described in the > comment for print_text_table. > > Fixes warnings, e.g. > pvesh get /nodes//network > would print "use of uninitialized"-warnings if there are inactive > network interfaces, because for tho

[pve-devel] applied-series: [PATCH qemu-server 1/4] tests: print more info when ovmf parsing fails

2020-04-27 Thread Thomas Lamprecht
On 4/23/20 12:46 PM, Dominik Csapak wrote: > when one of the ovmf tests fails to parse at all, > we just get the 'die' message of the failing component, but not which > file actually failed to parse > > to get better output, convert the parsing also to a test > and ok() and fail() respectively and

Re: [pve-devel] [PATCH guest-common 1/3] snapshot_rollback: flock earlier

2020-04-27 Thread Fabian Ebner
One not-patch-related observation inline. On 27.04.20 10:24, Fabian Grünbichler wrote: to protect checks against concurrent modifications Signed-off-by: Fabian Grünbichler --- Notes: bested viewed with --patience -w PVE/AbstractConfig.pm | 45 +-

Re: [pve-devel] [PATCH v2 manager] HDEdit: warn when IO threads are enabled with incompatible controller

2020-04-27 Thread Dominik Csapak
looks mostly fine, one comment though: i would put the hint either in advancedColumnB so that the text spans the complete width of the window (looks weird crammed to the left) or even at the very top? if i have iothread on but the advanced checkbox off, i do not see the hint ... (ok this is prob

Re: [pve-devel] [PATCH manager 6/6] ui: dc/Auth: add sync button

2020-04-27 Thread Thomas Lamprecht
On 4/27/20 12:29 PM, Dominik Csapak wrote: > > > On 4/27/20 12:15 PM, Thomas Lamprecht wrote: >> On 4/9/20 4:10 PM, Dominik Csapak wrote: >>> opens a window with the parameters for the sync and two buttons: >>> 'preview' and 'sync' >>> >>> both open the taskviewer, but the 'preview' one sets the

Re: [pve-devel] [PATCH manager 6/6] ui: dc/Auth: add sync button

2020-04-27 Thread Dominik Csapak
On 4/27/20 12:15 PM, Thomas Lamprecht wrote: On 4/9/20 4:10 PM, Dominik Csapak wrote: opens a window with the parameters for the sync and two buttons: 'preview' and 'sync' both open the taskviewer, but the 'preview' one sets the 'no-write' parameter so that it does not get written out to the

[pve-devel] applied: [PATCH manager 5/6] ui: dc/AuthEdit: add sync tab for ldap/ad realms

2020-04-27 Thread Thomas Lamprecht
On 4/9/20 4:10 PM, Dominik Csapak wrote: > this modifies AuthEditBase so that if there is a sync inputpanel specified, > we display it in a second tab (we need to modify the bodyPadding here, > else the whole window has too much padding) > > we use the same panel for both ldap/ad, since the most o

Re: [pve-devel] [PATCH manager 6/6] ui: dc/Auth: add sync button

2020-04-27 Thread Thomas Lamprecht
On 4/9/20 4:10 PM, Dominik Csapak wrote: > opens a window with the parameters for the sync and two buttons: > 'preview' and 'sync' > > both open the taskviewer, but the 'preview' one sets the 'no-write' > parameter so that it does not get written out to the user.cfg > > Signed-off-by: Dominik Csa

[pve-devel] [PATCH common] print_text_table: sort by leftmost column with no undefined value

2020-04-27 Thread Fabian Ebner
This restores the behavior for sort_key as it's described in the comment for print_text_table. Fixes warnings, e.g. pvesh get /nodes//network would print "use of uninitialized"-warnings if there are inactive network interfaces, because for those, 'active' is undef. Signed-off-by: Fabian Ebner --

[pve-devel] [PATCH v2 manager] HDEdit: warn when IO threads are enabled with incompatible controller

2020-04-27 Thread Stefan Reiter
The only warning displayed before was in the "VM Start" task log, rather hidden. In the wizard we already auto-selected the correct controller, but not when modifying a disk on an existing VM. Don't break existing behaviour (to allow users to disable IO threads for VMs that currently have it set b

[pve-devel] [PATCH guest-common 3/3] lock_config: rename lock_config_mode -> lock_config_shared

2020-04-27 Thread Fabian Grünbichler
and pull the actual lock_file_full handling into a helper, to make the public interface clearer: lock_config -> standard exclusive lock with 10s timeout lock_config_full -> exclusive lock with configurable timeout lock_config_shared -> shared lock with configurable timeout the latter only has a s

[pve-devel] [PATCH container 2/2] api/destroy: repeat early checks after locking

2020-04-27 Thread Fabian Grünbichler
and check_lock before forking as well Signed-off-by: Fabian Grünbichler --- Notes: bested viewed with -w --patience src/PVE/API2/LXC.pm | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 148b

[pve-devel] [PATCH qemu-server 1/3] QemuServer: drop unused imported locking functions

2020-04-27 Thread Fabian Grünbichler
lock_file is used by PVE::QemuServer::Memory, but it does properly 'use PVE::Tools ...' itself so we can drop them in the main module. Signed-off-by: Fabian Grünbichler --- PVE/QemuServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServe

[pve-devel] [PATCH qemu-server 2/3] api/destroy: repeat early checks after lock

2020-04-27 Thread Fabian Grünbichler
to protect against concurrent changes Signed-off-by: Fabian Grünbichler --- best viewed with --patience -w PVE/API2/Qemu.pm | 40 +++- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index ec4c18c..f6a98f0 1

[pve-devel] [PATCH guest-common 2/3] snapshot_delete: check for concurrent modifications at each step

2020-04-27 Thread Fabian Grünbichler
Signed-off-by: Fabian Grünbichler --- PVE/AbstractConfig.pm | 14 ++ 1 file changed, 14 insertions(+) diff --git a/PVE/AbstractConfig.pm b/PVE/AbstractConfig.pm index 70311df..8ec27a6 100644 --- a/PVE/AbstractConfig.pm +++ b/PVE/AbstractConfig.pm @@ -823,6 +823,15 @@ sub snapshot_del

[pve-devel] [PATCH container 1/2] LXC: drop unused imported locking functions

2020-04-27 Thread Fabian Grünbichler
Signed-off-by: Fabian Grünbichler --- src/PVE/LXC.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index fbe736e..651ec08 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -20,8 +20,8 @@ use PVE::SafeSyslog; use PVE::INotify; use PVE::

[pve-devel] [PATCH qemu-server 3/3] clone: use new config_lock_shared

2020-04-27 Thread Fabian Grünbichler
and move the lock call and decision logic closer together Signed-off-by: Fabian Grünbichler --- Notes: needs libpve-guest-common-perl with new lock_config_shared possibly better to postpone since it does not fix an actual issue but just improves the readability PVE/API2/Qemu.pm | 1

[pve-devel] [PATCH guest-common 1/3] snapshot_rollback: flock earlier

2020-04-27 Thread Fabian Grünbichler
to protect checks against concurrent modifications Signed-off-by: Fabian Grünbichler --- Notes: bested viewed with --patience -w PVE/AbstractConfig.pm | 45 +-- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/PVE/AbstractConfig.pm b/P

[pve-devel] [PATCH qemu-server] api/resume: make nocheck root-only

2020-04-27 Thread Fabian Grünbichler
this is only used for migration via 'qm mtunnel', regular users should never need to resume a VM that does not logically belong to the node it is running on Signed-off-by: Fabian Grünbichler --- PVE/API2/Qemu.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qe