[pve-devel] [PATCH qemu] fix backup job completion

2019-10-25 Thread Dietmar Maurer
With recent changes, pvebackup_co_run_next_job cancels the job async, so we need to run pvebackup_co_cleanup in the completion handler instead. We call pvebackup_co_run_next as long as there are jobs in the list. Signed-off-by: Dietmar Maurer --- blockdev.c | 9 - 1 file changed, 4 inser

[pve-devel] [PATCH qemu-server 5/7] Remove useless eval

2019-10-25 Thread Dominic Jäger
The destroy_vm in the eval could only die if the VM were a template. This is not possible here. Signed-off-by: Dominic Jäger --- PVE/CLI/qm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index a378d3d..a16033c 100755 --- a/PVE/CLI/qm.pm +++ b

[pve-devel] [PATCH qemu-server 1/7] Move config removal after disk removal

2019-10-25 Thread Dominic Jäger
As mentioned on the mailing list [0] disks owned by the VM and unused disks should be removed before the config file is removed. [0] https://pve.proxmox.com/pipermail/pve-devel/2019-October/039593.html Signed-off-by: Dominic Jäger --- PVE/QemuServer.pm | 12 ++-- 1 file changed, 6 inser

[pve-devel] [PATCH qemu-server 4/7] Remove variable from lock

2019-10-25 Thread Dominic Jäger
The variable was used in one place only. Nesting the code into the lock_config_full makes clear what code is locked. Signed-off-by: Dominic Jäger --- PVE/CLI/qm.pm | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index c93f78d..a378d3d

[pve-devel] [PATCH qemu-server 3/7] Remove redundant locks

2019-10-25 Thread Dominic Jäger
The whole $importfn is executed in a lock_config_full. Consequently, 1. lock_config is redundant 2. it is not possible that a lock has been written in the VM's config file (check_lock) in the meanwhile 3. it is not possible that the VM has been started (check_running) in the meanwhile Signe

[pve-devel] [PATCH qemu-server 6/7] Add skiplock to import

2019-10-25 Thread Dominic Jäger
Functions like importovf can now use a parameter lock in the config. Signed-off-by: Dominic Jäger --- PVE/CLI/qm.pm| 4 ++-- PVE/QemuServer/ImportDisk.pm | 6 -- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index a16033c..97f0f8

[pve-devel] [PATCH qemu-server 7/7] Use parameter lock for importovf

2019-10-25 Thread Dominic Jäger
Previously creating a VM on another node between locking the config with lock_config_full and writing to it for the first time with write_config was possible. Using create_and_lock_config eliminates this possibility. This means that now a parameter lock in the config is used instead of flock only.

[pve-devel] [PATCH qemu-server 0/7] Improve locks and functions for imports

2019-10-25 Thread Dominic Jäger
This series cleans up some redundant locks and functions and sets more appropriate locks instead when importing .ovf and disks. Dominic Jäger (7): Move config removal after disk removal Remove vm_destroy Remove redundant locks Remove variable from lock Remove useless eval Add skiplock

[pve-devel] [PATCH qemu-server 2/7] Remove vm_destroy

2019-10-25 Thread Dominic Jäger
This function has been used in one place only. Removing it avoids confusion between vm_destroy and vm_destroy. Signed-off-by: Dominic Jäger --- I copied all the checks from vm_destroy even if they were useless. Removing those useless functions is a follow up patch.$ PVE/CLI/qm.pm | 11 +

[pve-devel] applied: [PATCH qemu-server 1/7] Move config removal after disk removal

2019-10-25 Thread Thomas Lamprecht
On 10/25/19 11:24 AM, Dominic Jäger wrote: > As mentioned on the mailing list [0] disks owned by the VM and unused > disks should be removed before the config file is removed. > > [0] https://pve.proxmox.com/pipermail/pve-devel/2019-October/039593.html > > Signed-off-by: Dominic Jäger > --- > P

Re: [pve-devel] applied: [PATCH qemu-server 1/7] Move config removal after disk removal

2019-10-25 Thread Dominic Jäger
On Fri, Oct 25, 2019 at 11:49:51AM +0200, Thomas Lamprecht wrote: > On 10/25/19 11:24 AM, Dominic Jäger wrote: > > As mentioned on the mailing list [0] disks owned by the VM and unused > > disks should be removed before the config file is removed. > > > > [0] https://pve.proxmox.com/pipermail/pve-

[pve-devel] [PATCH v2 manager] gui: reset cdimage selector on change

2019-10-25 Thread Tim Marx
to improve UX, disabled child fields shouldn't show validation errors when the parent widget (radiofield) isn't selected anymore. Signed-off-by: Tim Marx --- changes v2: * swapped ternary for if/else * make use of new cdImageField var * adapted commit message www/manager6/qemu/CDEdit.js | 9 +++

[pve-devel] [PATCH widget-toolkit] fix comboBox validation when forceSelection is true

2019-10-25 Thread Tim Marx
Prevent the comboBox from displaying a validation error although forceSelection is true. If you change a valid selection by removing characters manually and click somewhere else, the comboBox restores the selection with the previous value. The validation logic then checked the restored value, but c

[pve-devel] [PATCH qemu-server] fix #2434: extend machine regex

2019-10-25 Thread Dominik Csapak
with qemu 4.0.1, there is now a machine type pc-q35-4.0.1 which does not fit into our regex this broke live migration of q35, as we give the machine type (incl version info) to 'qm start' on the target node, which checks it against the JSONSchema to fix this, extend the regex to allow any number

Re: [pve-devel] [PATCH qemu-server] fix #2434: extend machine regex

2019-10-25 Thread Thomas Lamprecht
On 10/25/19 2:36 PM, Dominik Csapak wrote: > with qemu 4.0.1, there is now a machine type pc-q35-4.0.1 which does not fit > into our regex > > this broke live migration of q35, as we give the machine type (incl version > info) to 'qm start' on the target node, which checks it against the > JSONSch

[pve-devel] [PATCH http-server] Revert "tls: make dh to openssl 1.1 compatible"

2019-10-25 Thread Thomas Lamprecht
The libanyevent-perl version 7.140-3 included a fix for this. It migrated to the then still testing (buster was not yet released) on 07.04.2019, and so we can safely revert this workaround again here. Albeit this was fixed since Buster was officially released, still bump the version dependency to

[pve-devel] applied: [PATCH v5 manager] fix #1291: add purge checkbox to VM/CT destroy dialog

2019-10-25 Thread Thomas Lamprecht
On 10/22/19 4:40 PM, Christian Ebner wrote: > Signed-off-by: Christian Ebner > --- > version 5: >* only show checkbox for CT/VM destroy dialog (as suggested) >* added qtip to checkbox > > www/manager6/window/SafeDestroy.js | 22 ++ > 1 file changed, 22 insertions(+)

[pve-devel] applied: [PATCH v2 manager] gui: reset cdimage selector on change

2019-10-25 Thread Thomas Lamprecht
On 10/25/19 12:47 PM, Tim Marx wrote: > to improve UX, disabled child fields shouldn't show validation errors > when the parent widget (radiofield) isn't selected anymore. > > Signed-off-by: Tim Marx > --- > changes v2: > * swapped ternary for if/else > * make use of new cdImageField var > * adap

Re: [pve-devel] [PATCH widget-toolkit] fix comboBox validation when forceSelection is true

2019-10-25 Thread Thomas Lamprecht
On 10/25/19 1:06 PM, Tim Marx wrote: > Prevent the comboBox from displaying a validation error although > forceSelection is true. If you change a valid selection by removing > characters manually and click somewhere else, the comboBox restores the > selection with the previous value. The validation

Re: [pve-devel] [PATCH qemu-server 2/7] Remove vm_destroy

2019-10-25 Thread Thomas Lamprecht
On 10/25/19 11:24 AM, Dominic Jäger wrote: > This function has been used in one place only. Removing it avoids confusion > between vm_destroy and vm_destroy. > > Signed-off-by: Dominic Jäger > --- > I copied all the checks from vm_destroy even if they were useless. > Removing those useless functi

Re: [pve-devel] [PATCH qemu-server 5/7] Remove useless eval

2019-10-25 Thread Thomas Lamprecht
On 10/25/19 11:24 AM, Dominic Jäger wrote: > The destroy_vm in the eval could only die if the VM were a template. > This is not possible here. > > Signed-off-by: Dominic Jäger > --- > PVE/CLI/qm.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/PVE/CLI/qm.pm b/PVE/CLI/

Re: [pve-devel] [PATCH qemu-server 4/7] Remove variable from lock

2019-10-25 Thread Thomas Lamprecht
"remove variable from lock" is as generic and obscure as it gets, could be anything ^^ Please use a real commit subject.. concise and intended for human digestions (e.g., no full paths, if not an essential part for human understanding) On 10/25/19 11:24 AM, Dominic Jäger wrote: > The variable was

Re: [pve-devel] [PATCH qemu-server 7/7] Use parameter lock for importovf

2019-10-25 Thread Thomas Lamprecht
On 10/25/19 11:24 AM, Dominic Jäger wrote: > Previously creating a VM on another node between locking the config with > lock_config_full and writing to it for the first time with write_config > was possible. > > Using create_and_lock_config eliminates this possibility. This means > that now a par