[pve-devel] [PATCH qemu-server v4 2/6] expose VM start timeout config setting in API

2023-01-05 Thread Daniel Tschlatscher
ich is one day. The minimum value is 0, which disables the timeout. Signed-off-by: Daniel Tschlatscher --- No changes from v3 PVE/API2/Qemu.pm | 2 ++ PVE/QemuServer.pm | 1 + PVE/QemuServer/Helpers.pm | 4 3 files changed, 7 insertions(+) diff --git a/PVE/API2/Qemu.pm

[pve-devel] [PATCH common v4 1/6] VM start timeout config parameter in backend

2023-01-05 Thread Daniel Tschlatscher
This allows setting the 'startoptions' property string in the config. For now this only implements the 'timeout' parameter but should be rather easily extensible and allow related VM start config options to be also configurable here. Signed-off-by: Daniel Tschlatscher --- C

[pve-devel] [PATCH qemu-server v4 5/6] make the timeout value editable when the VM is locked

2023-01-05 Thread Daniel Tschlatscher
config) To avoid unwanted side effects, it is possible to change the value for the new 'startoptions' parameter, only if the VM is currently locked with lock 'suspended'. Signed-off-by: Daniel Tschlatscher --- No changes from v3 PVE/API2/Qemu.pm | 25 +

[pve-devel] [PATCH common/qemu-server/manager v4] fix #3502: VM start timeout config parameter

2023-01-05 Thread Daniel Tschlatscher
nfigurable with it. Changes from v3 * Minor code cleanup * Addressed an edge case concerning the killing of a lingering VM to not accidentally kill an unrelated process Thanks to Fabian for the review and suggestions! pve-common: Daniel Tschlatscher (1): VM start timeout config parameter

[pve-devel] [PATCH qemu-server v4 4/6] re-check if VM is running and PID for KILL after timeout

2023-01-05 Thread Daniel Tschlatscher
This avoids accidentally killing a potentially completely unrelated process that was spawned in an edge case between the last check in the timeout loop and the kill command. Signed-off-by: Daniel Tschlatscher --- Changes from v3: * New patch PVE/QemuServer.pm | 2 +- 1 file changed, 1

[pve-devel] [PATCH manager v4 6/6] VM start Timeout "Options" parameter in the GUI

2023-01-05 Thread Daniel Tschlatscher
parameters. Signed-off-by: Daniel Tschlatscher --- No changes from v3: www/manager6/qemu/Options.js | 31 +++ 1 file changed, 31 insertions(+) diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js index 7b112400..7f148e18 100644 --- a/www/manager6/qemu/

[pve-devel] [PATCH qemu-server v4 3/6] await and kill lingering KVM thread when VM start reaches timeout

2023-01-05 Thread Daniel Tschlatscher
get around this, this patch intercepts the error, looks whether a corresponding KVM thread is still running, and waits for/kills it, before continuing. Signed-off-by: Daniel Tschlatscher --- Changes from v3: * Minor code clean up concerning the usage of "$pid" in ifs according t

[pve-devel] [PATCH widget-toolkit v6 2/3] Source file download in new Utils function

2023-01-04 Thread Daniel Tschlatscher
Adds a function for downloading a file from a remote URL in the Utils class and uses it to revise one similar usage in FileBrowser.js Signed-off-by: Daniel Tschlatscher --- No changes from v5 (was last included in v2) src/Utils.js | 13 + src/window/FileBrowser.js | 11

[pve-devel] [PATCH widget-toolkit v6 3/3] add task log download button in TaskViewer

2023-01-04 Thread Daniel Tschlatscher
Adds a download button in the TaskViewer. Uses the newly created downloadAsFile() method in the Utils class. Signed-off-by: Daniel Tschlatscher --- Changes from v5 * Last version erroneously used "limit=0" instead of the download parameter in the download URL src/window/TaskView

[pve-devel] [PATCH manager/widget-toolkit v6] fix: #3971 Tasklog download button

2023-01-04 Thread Daniel Tschlatscher
VE and the GUI patches in the widget-toolkit for the button in the TaskViewer. Changes from v5: * The last version used parameter 'limit=0' instead of 'download=1' for the download URL. * Cleaned up one NIT in manager. Thanks to sterzy for the review! pve-manager: Daniel T

[pve-devel] [PATCH manager v6 1/3] make task log downloadable in the PVE manager backend

2023-01-04 Thread Daniel Tschlatscher
The read_tasklog API call now stream the whole log file if the query parameter 'download' is set to true. This is done in preparation for the task log download button to be added in the TaskViewer. Signed-off-by: Daniel Tschlatscher --- Changes from v5: * Made the if check for w

Re: [pve-devel] [PATCH qemu-server v3 3/5] await and kill lingering KVM thread when VM start reaches timeout

2022-12-22 Thread Daniel Tschlatscher
On 12/22/22 14:20, Fabian Grünbichler wrote: > On December 22, 2022 1:58 pm, Daniel Tschlatscher wrote: > >>>> >>>> - my $exitcode = run_command($cmd, %run_params); >>>> - if ($exitcode) { >>>> - if ($tpmpid) { >>

Re: [pve-devel] [PATCH qemu-server v3 3/5] await and kill lingering KVM thread when VM start reaches timeout

2022-12-22 Thread Daniel Tschlatscher
On 12/21/22 12:14, Fabian Grünbichler wrote: > On December 16, 2022 2:36 pm, Daniel Tschlatscher wrote: >> In some cases the VM API start method would return before the detached >> KVM process would have exited. This is especially problematic with HA, >> because the HA manag

[pve-devel] [PATCH qemu-server v3 4/5] make the timeout value editable when the VM is locked

2022-12-16 Thread Daniel Tschlatscher
config) To avoid unwanted side effects, it is possible to change the value for the new 'startoptions' parameter, only if the VM is currently locked with lock 'suspended'. Signed-off-by: Daniel Tschlatscher --- Changes from v2: * Rebased to current master P

[pve-devel] [PATCH manager v3 5/5] VM start Timeout "Options" parameter in the GUI

2022-12-16 Thread Daniel Tschlatscher
parameters. Signed-off-by: Daniel Tschlatscher --- Changes from v2: * No changes www/manager6/qemu/Options.js | 31 +++ 1 file changed, 31 insertions(+) diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js index 7b112400..7f148e18 100644 --- a/www/man

[pve-devel] [PATCH qemu-server v3 2/5] expose VM start timeout config setting in API

2022-12-16 Thread Daniel Tschlatscher
ich is one day. The minimum value is 0, which disables the timeout. Signed-off-by: Daniel Tschlatscher --- Changes from v2: * No changes PVE/API2/Qemu.pm | 2 ++ PVE/QemuServer.pm | 1 + PVE/QemuServer/Helpers.pm | 4 3 files changed, 7 insertions(+) diff --git a/PVE/API2

[pve-devel] [PATCH common v3 1/5] VM start timeout config parameter in backend

2022-12-16 Thread Daniel Tschlatscher
This allows setting the 'startoptions' property string in the config. For now this only implements the 'timeout' parameter but should be rather easily extensible and allow related VM start config options to be also configurable here. Signed-off-by: Daniel Tschlatscher

[pve-devel] [PATCH qemu-server v3 3/5] await and kill lingering KVM thread when VM start reaches timeout

2022-12-16 Thread Daniel Tschlatscher
get around this, this patch intercepts the error, looks whether a corresponding KVM thread is still running, and waits for/kills it, before continuing. Signed-off-by: Daniel Tschlatscher --- Changes from v2: * Rebased to current master * Changed warn to use 'log_warn' instead * Re

[pve-devel] [PATCH common/qemu-server/manager v3] fix #3502: VM start timeout config parameter

2022-12-16 Thread Daniel Tschlatscher
nfigurable with it. Changes from v2 * Rebased to current repository masters * Some minor code cleanups * Reordered the commits and added a cover letter pve-common: Daniel Tschlatscher (1): VM start timeout config parameter src/PVE/JSONSchema.pm | 38 ++ 1 fi

Re: [pve-devel] [PATCH v3 http-server 1/3] multipart upload: fix upload of files starting with newlines

2022-12-12 Thread Daniel Tschlatscher
Testing this series in the Browser, with curl and postman, I couldn't find any issues anymore, more details below. Code looks good to me as well. Tested-by: Daniel Tschlatscher Reviewed-by: Daniel Tschlatscher Browser/GUI: ✅ Uploading files with 0B, 1B, 1kB, 17kB, 1MB, 1GB, 10GB ✅ Uplo

[pve-devel] [PATCH manager v5 1/3] make task log downloadable in the PVE manager backend

2022-12-01 Thread Daniel Tschlatscher
The read_tasklog API call now stream the whole log file if the query parameter 'download' is set to true. This is done in preparation for the task log download button to be added in the TaskViewer. Signed-off-by: Daniel Tschlatscher --- No changes from v4 PVE/API2/Tas

[pve-devel] [PATCH widget-toolkit v5 3/3] add task log download button in TaskViewer

2022-12-01 Thread Daniel Tschlatscher
Adds a download button in the TaskViewer. Uses the newly created downloadAsFile() method in the Utils class. Signed-off-by: Daniel Tschlatscher --- No changes from v4 (was last included in v2) src/window/TaskViewer.js | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions

[pve-devel] [PATCH manager/widget-toolkit v5] fix: #3971 Tasklog download button

2022-12-01 Thread Daniel Tschlatscher
VE and the GUI patches in the widget-toolkit for the button in the TaskViewer. pve-manager: Daniel Tschlatscher (1): make task log downloadable in the PVE manager backend PVE/API2/Tasks.pm | 48 --- 1 file changed, 41 insertions(+), 7 deletions(-

[pve-devel] [PATCH widget-toolkit v5 2/3] Source file download in new Utils function

2022-12-01 Thread Daniel Tschlatscher
Adds a function for downloading a file from a remote URL in the Utils class and uses it to revise one similar usage in FileBrowser.js Signed-off-by: Daniel Tschlatscher --- No changes from v4 (was last included in v2) src/Utils.js | 13 + src/window/FileBrowser.js | 11

[pve-devel] [PATCH container v2 1/2] restore: clean up config when invalid source archive is given

2022-11-29 Thread Daniel Tschlatscher
Before, if a non-existent source archive parameter was passed when restoring a container, the task would fail but leave an empty config file behind. The same with invalid mount point configurations. In both cases, the empty config will now be removed. Signed-off-by: Daniel Tschlatscher

[pve-devel] [PATCH container v2 2/2] restore: also remove firewall config after failed restore

2022-11-29 Thread Daniel Tschlatscher
is. Signed-off-by: Daniel Tschlatscher --- Changes from v1: * Moved into destroy_config_on_error check src/PVE/API2/LXC.pm | 5 + 1 file changed, 5 insertions(+) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index f2113de..50c9eaf 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2

[pve-devel] [PATCH manager] fix typo in user tag access text field

2022-11-25 Thread Daniel Tschlatscher
This text is only displayed when at least one tag is defined in the User Tag Access editor. Signed-off-by: Daniel Tschlatscher --- www/manager6/dc/OptionView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/dc/OptionView.js b/www/manager6/dc/OptionView.js

[pve-devel] [PATCH backup/pmg-api/manager/common v4] fix: #3971 Tasklog download button

2022-11-23 Thread Daniel Tschlatscher
applies. => Thanks to Fabian for the review! changes from v3 * parameter 'download' for downloading the task log * limit=0 now returns the whole log instead * miscellaneous code clean up proxmox-backup: Daniel Tschlatscher (1): make tasklog downloadable i

[pve-devel] [PATCH pmg-api v4] make tasklog downloadable in the PMG backend

2022-11-23 Thread Daniel Tschlatscher
eplaced it with a call to dump_logfile(), akin to how this is handled in pve-manager. Signed-off-by: Daniel Tschlatscher --- Changes from v3: * API parameter 'download' for directly streaming the file * Added missing API parameter descriptions src/PM

[pve-devel] [PATCH backup v4] make tasklog downloadable in the backup server backend

2022-11-23 Thread Daniel Tschlatscher
one of the lower level apimethod types from the proxmox-router. Therefore, the routing declarations and parameter schemas have been changed accordingly. Signed-off-by: Daniel Tschlatscher --- I sent this separately, as the other 3 patches in this version do not concern the backup patch in any way. Ch

[pve-devel] [PATCH manager v4] make task log downloadable in the PVE manager backend

2022-11-23 Thread Daniel Tschlatscher
The read_tasklog API call now stream the whole log file if the query parameter 'download' is set to true. This is done in preparation for the task log download button to be added in the TaskViewer. Signed-off-by: Daniel Tschlatscher --- Changes from v3: * API parameter 'downloa

[pve-devel] [PATCH common v4] return whole log file if limit is 0

2022-11-23 Thread Daniel Tschlatscher
The dump_logfile now returns the whole log file if the limit parameter is set to 0. This must be done explicitely though, as in the case of 'limit' being undefined, the default as before, 50 will be used. Signed-off-by: Daniel Tschlatscher --- Changes from v3: * NEW patch This

Re: [pve-devel] [PATCH i18n] update german translation

2022-11-21 Thread Daniel Tschlatscher
Looks good, 1 suggestions, 2 NITs inline: On 11/21/22 10:49, Stefan Sterz wrote: > Signed-off-by: Stefan Sterz > --- > de.po | 185 +++--- > 1 file changed, 72 insertions(+), 113 deletions(-) > > diff --git a/de.po b/de.po > index ea6f50b..efd

[pve-devel] [PATCH docs] qm: add documentation for vm network MTU setting

2022-11-18 Thread Daniel Tschlatscher
Signed-off-by: Daniel Tschlatscher --- qm.adoc | 5 + 1 file changed, 5 insertions(+) diff --git a/qm.adoc b/qm.adoc index e7d0c07..428d388 100644 --- a/qm.adoc +++ b/qm.adoc @@ -636,6 +636,11 @@ but not via the WebUI. You can also skip adding a network device when creating a VM by

[pve-devel] [PATCH container 1/2] fix: clean up config when invalid ostemplate is given

2022-11-17 Thread Daniel Tschlatscher
Before, if an invalid/non-existant ostemplate parameter was passed, the task would abort, but would leave an empty config file behind. This also applies to errors for invalid mount point configurations. In both cases, the empty config will now be removed. Signed-off-by: Daniel Tschlatscher

[pve-devel] [PATCH container 2/2] fix: also remove firewall config after failed restore

2022-11-17 Thread Daniel Tschlatscher
is. Signed-off-by: Daniel Tschlatscher --- src/PVE/API2/LXC.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 7cc64af..27b63f2 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -505,6 +505,9 @@ __PACKAGE__->register_met

Re: [pve-devel] [PATCH v2 pve-container/qemu-server/pve-docs] Add pre/post-restore hooks

2022-11-11 Thread Daniel Tschlatscher
On 11/11/22 15:02, Stefan Hanreich wrote: > > On 11/11/22 14:58, Daniel Tschlatscher wrote: >> The new hookscript example works nicely out of the box. >> >> I tested restore for both VMs and containers via the GUI, the restore >> and create commands in the respec

Re: [pve-devel] [PATCH v2 pve-container/qemu-server/pve-docs] Add pre/post-restore hooks

2022-11-11 Thread Daniel Tschlatscher
e this is not breaking, it is definitely very unexpected for an unsuspecting user. Otherwise, the core part of the series works as intended, therefore: Tested-by: Daniel Tschlatscher On 11/10/22 16:33, Stefan Hanreich wrote: > This patch adds hooks that run when the user restores a backup

Re: [pve-devel] [PATCH pve-docs 1/1] add pre/post-restore events to example hookscript

2022-11-11 Thread Daniel Tschlatscher
On 11/10/22 16:33, Stefan Hanreich wrote: > Signed-off-by: Stefan Hanreich > --- > examples/guest-example-hookscript.pl | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/examples/guest-example-hookscript.pl > b/examples/guest-example-hookscript.pl > index adeed59..19fe213

Re: [pve-devel] [PATCH pve-guest-common/pve-docs 0/1]

2022-11-11 Thread Daniel Tschlatscher
case, just looking at the task log list, it looks like the task finished without any problems. This would require some changes in 'exec_hookscript' and probably for other 'post-x' hooks as well, though, this is not in the scope of these patches. I just thought to put it somewhere

[pve-devel] [PATCH manager v7] ui: vm network: allow to override MTU for virtio devices

2022-11-09 Thread Daniel Tschlatscher
re visually pleasing. Signed-off-by: Daniel Tschlatscher --- Changes from v6 * The message tooltip is now in the advancedColumnB www/manager6/qemu/NetworkEdit.js | 36 1 file changed, 36 insertions(+) diff --git a/www/manager6/qemu/NetworkEdit.js b/www/manager6

[pve-devel] [PATCH manager] gui: fix firewall security group help button chapter link

2022-11-04 Thread Daniel Tschlatscher
The help button under Datacenter > Firewall > Security Group did not have the proper help chapter link set. First reported here: https://forum.proxmox.com/threads/broken-help-link-in-proxmox-gui.117503/ Signed-off-by: Daniel Tschlatscher --- I noticed that the onlineHelp field for our

[pve-devel] [PATCH manager v2 1/2] fix #3719: gui: expose LXC MTU option in web UI

2022-11-03 Thread Daniel Tschlatscher
The option to set the mtu parameter for lxc containers already exists in the backend. It just has to be exposed in the web UI as well. Signed-off-by: Daniel Tschlatscher --- Changes from v1: * fieldLabel for MTU textfield no longer uses gettext() * text field has an emptyText now * the minimum

[pve-devel] [PATCH container v2] better parsing for lxc networking mtu setting

2022-11-03 Thread Daniel Tschlatscher
This patch reworks some mtu settings for LXC containers in the backend Namely, introducing an absolute maximum for the MTU field of 65535 and asserting that the MTU setting isn't bigger than the bridge's MTU size Signed-off-by: Daniel Tschlatscher --- Changes from v1: * New

[pve-devel] [PATCH manager v2 2/2] gui: move rate limit field to advanced section

2022-11-03 Thread Daniel Tschlatscher
The new MTU field and the rate limit field are now in the advanced section of the NetworkInputPanel to parallel the layout of the NetworkEdit for VMs. Signed-off-by: Daniel Tschlatscher --- Changes from v1 * This patch now only moves the rate limit text field www/manager6/lxc/Network.js | 23

[pve-devel] [PATCH manager 1/2] fix #3719: gui: expose MTU option for containers in web UI

2022-10-17 Thread Daniel Tschlatscher
The option to set the mtu parameter for lxc containers already exists in the backend. It only had to be exposed in the web UI as well. Signed-off-by: Daniel Tschlatscher --- www/manager6/lxc/Network.js | 14 ++ 1 file changed, 14 insertions(+) diff --git a/www/manager6/lxc

[pve-devel] [PATCH manager 2/2] gui: reorder with advanced section

2022-10-17 Thread Daniel Tschlatscher
The new MTU field and the rate limit field are now in the advanced section of the NetworkInputPanel to parallel the layout of the NetworkEdit for VMs. Signed-off-by: Daniel Tschlatscher --- While the layout now is the same as in the VM NetworkEdit, I just feel like the advanced column does not

Re: [pve-devel] [PATCH v6 manager] ui: vm network: allow to override MTU for virtio devices

2022-10-12 Thread Daniel Tschlatscher
This patch still applies well and works as intended. There is one UI suggestion inline. Tested-by: Daniel Tschlatscher On 5/20/22 10:03, Oguz Bektas wrote: > we already have the 'mtu' option in the API, so we can just expose > that option inside the 'Advanced

[pve-devel] [PATCH backup v3] make tasklog downloadable in the backup server backend

2022-10-11 Thread Daniel Tschlatscher
from the proxmox-router. Therefore I also had to change declarations for the API routing and the corresponding Object Schemas. Signed-off-by: Daniel Tschlatscher --- changes from v2 * improved the documentation for the limit parameter * changed the api method name to "read_task_log" src

[pve-devel] [PATCH pmg-api v3] make tasklog downloadable in the PMG backend

2022-10-11 Thread Daniel Tschlatscher
tasklog and replaced it with a call to dump_logfile(), akin to how this is handled in pve-manager. Signed-off-by: Daniel Tschlatscher --- changes from v2 * replaced helper call with inline implementation * changed compression cutoff to 1024 * replaced stat($filename)→size call with "-s&q

[pve-devel] [PATCH manager v3] make task log downloadable in the PVE manager backend

2022-10-11 Thread Daniel Tschlatscher
The read tasklog API call now streams the log file if the limit parameter is set to 0. If not, it should behave the same as before. This is done in preparation for the task log download button to be added in the TaskViewer. Signed-off-by: Daniel Tschlatscher --- changes from v2 * replaced

[pve-devel] [PATCH widget-manager/backup/pmg v3] fix: #3971 Tasklog download button

2022-10-11 Thread Daniel Tschlatscher
eter * minor refactorings Daniel Tschlatscher (1): make tasklog downloadable in the backup server backend src/api2/node/tasks.rs | 161 ++--- 1 file changed, 103 insertions(+), 58 deletions(-) Daniel Tschlatscher (1): make tasklog downloadable in the P

Re: [pve-devel] [PATCH manager v2 4/7] revised task log API call for PVE

2022-10-10 Thread Daniel Tschlatscher
Thanks for the review! On 10/5/22 14:30, Thomas Lamprecht wrote: > Am 07/09/2022 um 10:56 schrieb Daniel Tschlatscher: >> The API call for fetching a tasklog with limit=0 now returns the whole >> log as a file stream rather than reading all lines in memory and then >> tra

Re: [pve-devel] [pmg-devel] [PATCH pmg-api v2 5/7] revised task log download function in the PMG backend

2022-09-08 Thread Daniel Tschlatscher
On 9/8/22 11:36, Stefan Sterz wrote: > On 9/7/22 10:56, Daniel Tschlatscher wrote: >> With the newly added button in the tasklog the implementation for the >> PMG server needs to be adapted. I saw an opportunity here to clear >> some redundant code for displaying the tasklo

[pve-devel] [PATCH proxmox-backup v2 1/7] make tasklog downloadable in the backup server backend

2022-09-07 Thread Daniel Tschlatscher
to change declarations for the API routing and the corresponding Object Schemas. If the parameter 'limit' is not set to 0 the API should behave the same as before. Signed-off-by: Daniel Tschlatscher --- src/api2/node/tasks.rs | 159 ++--- 1 file changed, 1

[pve-devel] [PATCH http/common/manager/wt/backup/pmg v2] fix: #3971 Tasklog download button

2022-09-07 Thread Daniel Tschlatscher
x as far as I could tell. See https://bugs.chromium.org/p/chromium/issues/detail?id=993362 for more information on this. -- Changes from v1 -- * Rewrote commit messages and cover letter * Got rid of some refactoring which were initially included (going to send as own patch series later) *

[pve-devel] [PATCH widget-toolkit v2 6/7] Source file download call in central function

2022-09-07 Thread Daniel Tschlatscher
Adds a function for downloading a file from a remote URL in the Utils class and uses it to revise one similar usage in FileBrowser.js Signed-off-by: Daniel Tschlatscher --- src/Utils.js | 13 + src/window/FileBrowser.js | 11 +-- 2 files changed, 18 insertions

[pve-devel] [PATCH pmg-api v2 5/7] revised task log download function in the PMG backend

2022-09-07 Thread Daniel Tschlatscher
functionality now streams the file by invoking the newly created function in pve-common. Signed-off-by: Daniel Tschlatscher --- src/PMG/API2/Tasks.pm | 34 +++--- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/src/PMG/API2/Tasks.pm b/src/PMG/API2

[pve-devel] [PATCH widget-toolkit v2 7/7] add task log download button in TaskViewer

2022-09-07 Thread Daniel Tschlatscher
Adds a download button in the TaskViewer. Uses the newly created downloadAsFile() method in the Utils class. Signed-off-by: Daniel Tschlatscher --- src/window/TaskViewer.js | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/window/TaskViewer.js b/src

[pve-devel] [PATCH manager v2 4/7] revised task log API call for PVE

2022-09-07 Thread Daniel Tschlatscher
specification. Signed-off-by: Daniel Tschlatscher --- PVE/API2/Tasks.pm | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Tasks.pm b/PVE/API2/Tasks.pm index 9cd1e56b..88762f2f 100644 --- a/PVE/API2/Tasks.pm +++ b/PVE/API2/Tasks.pm @@ -5,6 +5,7 @@ use warnings

[pve-devel] [PATCH http-server v2 2/7] acknowledge content-disposition header

2022-09-07 Thread Daniel Tschlatscher
Acknowledging the Content-Disposition header makes it possible for the backend to tell the browser whether a file should be downloaded, rather than displayed inline, and what it's default name should be. Signed-off-by: Daniel Tschlatscher --- src/PVE/APIServer/AnyEvent.pm | 3 +++ 1

[pve-devel] [PATCH common v2 3/7] stream file method for PMG and PVE

2022-09-07 Thread Daniel Tschlatscher
Creating the filestream for the tasklog download is sourced in its own function to avoid redundant implementations in pmg-api and pve-manager Signed-off-by: Daniel Tschlatscher --- src/PVE/Tools.pm | 28 1 file changed, 28 insertions(+) diff --git a/src/PVE

Re: [pve-devel] [PATCH pve-docs v2] added Memory Encryption documentation

2022-09-02 Thread Daniel Tschlatscher
A few suggestions I would have found helpful when first reading this documentation, inline: On 6/10/22 12:53, Markus Frank wrote: > added AMD SEV documentation for "[PATCH qemu-server] QEMU AMD SEV > enable" > > Signed-off-by: Markus Frank > --- > v2: > * added check if sev is enabled > * added

Re: [pve-devel] [PATCH qemu-server] QEMU AMD SEV enable

2022-09-02 Thread Daniel Tschlatscher
->cgs->ready' failed. I suspect that this feature is simply not supported by my motherboard/BIOS yet, but did not find the actual cause for this problem. I did not test SEV-SNP as it seems to be a 3rd gen Epyc CPU feature. Tested-by: Daniel Tschlatscher Some more comments inline in th

[pve-devel] [PATCH widget-toolkit v2] fix: gui: up/down arrow keys increment/decrement twice in Number field

2022-07-25 Thread Daniel Tschlatscher
spinUpEl and spinDownEl were removed as well. Additionally, the 'mousewheel' event handler, registered in the overwritten (but still executed) parent function, is unregistered now, as it could lead to unintended side effects in browsers which still implement this event. Signed-off-

[pve-devel] [PATCH qemu-server v2 3/4] kill/await lingering KVM thread when VM start reaches timeout

2022-07-22 Thread Daniel Tschlatscher
get around this, this patch intercepts the error, looks whether a corresponding KVM thread is still running, and waits for/kills it, before continuing. Signed-off-by: Daniel Tschlatscher --- Changes from v1: * New patch PVE/QemuServer.pm | 40 +--- 1 file

[pve-devel] [PATCH common v2 1/4] fix #3502: VM start timeout config parameter

2022-07-22 Thread Daniel Tschlatscher
This allows setting the 'startoptions' property string in the config. For now this only implements the 'timeout' parameter but should be rather easily extensible and allow related VM start config options to be also configurable here. Signed-off-by: Daniel Tschlatscher --- Cha

[pve-devel] [PATCH qemu-server v2 2/4] fix #3502: VM start timeout config parameter

2022-07-22 Thread Daniel Tschlatscher
ich is one day. The minimum value is 0, which disables the timeout. Signed-off-by: Daniel Tschlatscher --- Changes from v1: * Now uses the "startoptions" propertystring * Maximum timeout reduced to 86400 PVE/API2/Qemu.pm | 2 ++ PVE/QemuServer.pm | 1 + PVE/QemuS

[pve-devel] [PATCH manager v2 4/4] VM start Timeout "Options" parameter in the GUI

2022-07-22 Thread Daniel Tschlatscher
parameters. Signed-off-by: Daniel Tschlatscher --- Changes from v1: * Now uses a property string to encode the timeout www/manager6/qemu/Options.js | 31 +++ 1 file changed, 31 insertions(+) diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js inde

[pve-devel] [PATCH qemu-server v2 1/1] make the timeout value editable when the VM is locked

2022-07-22 Thread Daniel Tschlatscher
config) To avoid unwanted side effects, it is possible to change the value for the new 'startoptions' parameter, only if the VM is currently locked with lock 'suspended'. Signed-off-by: Daniel Tschlatscher --- Changes from v1: * New patch PVE/API2/Qemu.pm | 25 +

[pve-devel] [PATCH widget-toolkit] fix: gui: up/down arrow keys increment/decrement twice in Number field

2022-07-07 Thread Daniel Tschlatscher
/decrement by step * 2. The problem was an overwrite for the onRender() method of the Spinner class, which caused the callbacks for pressing an arrow key to be registered for a second time. Simply not doing that in the overwritten onRender() method fixes the problem. Signed-off-by: Daniel

Re: [pve-devel] [PATCH v2 http-server 2/2] AnyEvent: Fix #3990 - make small files uploadable

2022-07-06 Thread Daniel Tschlatscher
ver encounter them. However, I feel like that at the very least the basic error message should be revised to no longer return 501 and to include a more descriptive error message than just "upload failed". With no major problems and depending

Re: [pve-devel] [PATCH http/common/manager/wt/proxmox-backup/pmg] Tasklog download button

2022-06-28 Thread Daniel Tschlatscher
ping (And now that I see it, the patches should actually count up to 7, they are not in fact 1/1 standalone patches) On 4/26/22 14:35, Daniel Tschlatscher wrote: > This patch series' aim is to add a download button in the tasklog- > viewer GUI so that users may access all parts of

[pve-devel] [PATCH container v2] fix #3927: no error code when stopping a stopped container

2022-06-24 Thread Daniel Tschlatscher
the next HA check was scheduled, in spite of the expected HA state being 'stopped' This patches fixes this issue and brings it more in line with the expected behaviour. Signed-off-by: Daniel Tschlatscher --- Changes from v2: * This patch no longer includes also changing the return

Re: [pve-devel] [PATCH qemu-server 1/2] fix #3502: VM start timeout config parameter

2022-06-22 Thread Daniel Tschlatscher
On 6/21/22 17:52, Thomas Lamprecht wrote: > fix #3502: add start timeout config parameter > > Am 21/06/2022 um 17:20 schrieb Daniel Tschlatscher: >> It was already possible to set the timeout parameter for the VM config >> via the API. However, the value was not conside

[pve-devel] [PATCH qemu-server 1/2] fix #3502: VM start timeout config parameter

2022-06-21 Thread Daniel Tschlatscher
which nobody should realistically run into. Signed-off-by: Daniel Tschlatscher --- PVE/API2/Qemu.pm | 1 + PVE/QemuServer.pm | 7 +++ PVE/QemuServer/Helpers.pm | 3 +++ 3 files changed, 11 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index a824657..d0a4eaa 1

[pve-devel] [PATCH qemu-server 1/1] make the timeout value editable when the VM is locked

2022-06-21 Thread Daniel Tschlatscher
value manually in the config) Signed-off-by: Daniel Tschlatscher --- To make it possible to change the timeout config value when the VM is locked I created a function to tell whether the config should be editable or not. This reduces clutter in the already rather long invoking function. I also tried

[pve-devel] [PATCH manager 2/2] VM start Timeout "Options" parameter in the GUI

2022-06-21 Thread Daniel Tschlatscher
The qemu config in the backend already allows specifying a timeout value. This patch introduces a text field in the Options submenu when a VM is selected, through which the VM start timeout can be set in the config. Signed-off-by: Daniel Tschlatscher --- www/manager6/qemu/Options.js | 18

[pve-devel] [PATCH container v2] fix: cloning a locked container creates an empty config

2022-06-17 Thread Daniel Tschlatscher
id similar problems with leftover config files in the future. Signed-off-by: Daniel Tschlatscher --- Changes from v1 Some problems which I was made aware of by Fabian (G) through a quick chat off-list (thanks btw!): * Added a dedicated check to conditionally remove the locks for the new and old co

Re: [pve-devel] [PATCH container] fix: cloning a locked container creates an empty config

2022-06-14 Thread Daniel Tschlatscher
On 6/14/22 14:51, Fabian Grünbichler wrote: > On June 14, 2022 2:22 pm, Daniel Tschlatscher wrote: >> When an attempt was made to clone a locked container the API would >> correctly present the error 'CT is locked (disk)' but create the >> config files for the new

[pve-devel] [PATCH container] fix: cloning a locked container creates an empty config

2022-06-14 Thread Daniel Tschlatscher
or the new container. Signed-off-by: Daniel Tschlatscher --- src/PVE/API2/LXC.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 64724cb..e1b4cd3 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -1461,9 +1461,6 @@ _

[pve-devel] [PATCH storage v4 3/4] Switched to using log_warn of PVE::RESTEnvironment

2022-06-14 Thread Daniel Tschlatscher
Signed-off-by: Daniel Tschlatscher Reviewed-by: Fabian Ebner --- Changes from v3 * No fix # in commit title * Added import for PVE::RESTEnvironment to call log_warn directly PVE/Storage.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE

[pve-devel] [PATCH storage v4 2/4] Adapted unlink calls for archive files in case of ENOENT

2022-06-14 Thread Daniel Tschlatscher
This improves handling when two archive remove calls are creating a race condition where one would formerly encounter an error. Now both finish successfully. Signed-off-by: Daniel Tschlatscher Reviewed-by: Fabian Ebner --- Changes from v3 * No fix # in commit title PVE/Storage.pm | 4

[pve-devel] [PATCH storage v4 4/4] Added a LOG_EXT constant as a counterpart to NOTES_EXT

2022-06-14 Thread Daniel Tschlatscher
and refactored usages for .log and .notes with them. At some parts in the test case code I had to source new variables to shorten the line length to not exceed the 100 column line limit. Signed-off-by: Daniel Tschlatscher Reviewed-by: Fabian Ebner --- Changes from v3 * File extension constants

[pve-devel] [PATCH storage v4 1/4] fix #3972: Remove the .notes file when a backup is deleted

2022-06-14 Thread Daniel Tschlatscher
be adapted to expect this new value as the package will not compile otherwise. Signed-off-by: Daniel Tschlatscher Reviewed-by: Fabian Ebner --- Changes from v3 * removed unused variables $logfn and $notesfn PVE/API2/Storage/Content.pm | 5 ++--- PVE/Storage.pm

[pve-devel] [PATCH widget-toolkit] fix #3930: gui: Stop text from overflowing for long words

2022-05-27 Thread Daniel Tschlatscher
or message modals in the PVE, PMG and PBS. Signed-off-by: Daniel Tschlatscher --- src/Toolkit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Toolkit.js b/src/Toolkit.js index a1d291e..450a3bc 100644 --- a/src/Toolkit.js +++ b/src/Toolkit.js @@ -718,6 +718,7 @@ Ext.onRead

Re: [pve-devel] [PATCH storage v3 1/4] fix #3972: Remove the .notes file when a backup is deleted

2022-05-25 Thread Daniel Tschlatscher
On 5/25/22 17:06, Thomas Lamprecht wrote: On 20/05/2022 15:28, Daniel Tschlatscher wrote: When a VM or Container backup was deleted, the .notes file was not removed, therefore, over time the dump folder would get polluted with notes for backups that no longer existed. As backup names contain

[pve-devel] [PATCH storage v3 4/4] Added a LOG_EXT constant as a counterpart to NOTES_EXT

2022-05-20 Thread Daniel Tschlatscher
and refactored usages for .log and .notes with them. At some parts in the test case code I had to source new variables to shorten the line length to not exceed the 100 column line limit. Signed-off-by: Daniel Tschlatscher --- PVE/Storage.pm| 4 ++-- PVE/Storage/Plugin.pm | 1

[pve-devel] [PATCH storage v3 2/4] fix #3972: Adapted unlink calls for archive files in case of ENOENT

2022-05-20 Thread Daniel Tschlatscher
This improves handling when two archive remove calls are creating a race condition where one would formerly encounter an error. Now both finish successfully. Signed-off-by: Daniel Tschlatscher --- PVE/Storage.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE

[pve-devel] [PATCH storage v3 1/4] fix #3972: Remove the .notes file when a backup is deleted

2022-05-20 Thread Daniel Tschlatscher
be adapted to expect this new value as the package will not compile otherwise. Signed-off-by: Daniel Tschlatscher --- PVE/API2/Storage/Content.pm | 5 ++--- PVE/Storage.pm | 20 +++- test/archive_info_test.pm | 6 ++ 3 files changed, 23 insertions(+), 8

[pve-devel] [PATCH storage v3 3/4] fix #3972: Switched to using log_warn of PVE::RESTEnvironment

2022-05-20 Thread Daniel Tschlatscher
Signed-off-by: Daniel Tschlatscher --- PVE/Storage.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 6f2558f..98ecd60 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1604,7 +1604,8 @@ sub archive_auxiliaries_remove { my

Re: [pve-devel] applied: [PATCH manager v2] fix #3994: Options menu entry in the System menu

2022-05-13 Thread Daniel Tschlatscher
On 5/12/22 17:13, Thomas Lamprecht wrote: Am 5/6/22 um 14:39 schrieb Daniel Tschlatscher: Add the subentry "Options" in the "System" menu to expose some options in the GUI which were not exposed before. Added a new file for displaying and editing the node config options wh

[pve-devel] [PATCH storage v2 2/2] fix #3972: test: Adapt test cases to changes in archive_info

2022-05-12 Thread Daniel Tschlatscher
The archive_info object now returns one more field containing the name of the notes file. The test cases have to be adapted to expect this new value as the package will not compile otherwise. Signed-off-by: Daniel Tschlatscher --- test/archive_info_test.pm | 6 ++ 1 file changed, 6

[pve-devel] [PATCH storage v2 1/2] fix #3972: Remove the .notes file when a backup is deleted

2022-05-12 Thread Daniel Tschlatscher
DRY. I saw this change necessary because archive_remove() does not invoke external plugins, and doing so might have unintended side effects. Signed-off-by: Daniel Tschlatscher --- PVE/API2/Storage/Content.pm | 5 ++--- PVE/Storage.pm | 19 +-- 2 files changed, 19

[pve-devel] [PATCH manager] gui: VM Create wizard - display default scsi controller correctly

2022-05-12 Thread Daniel Tschlatscher
Fixed a cosmetic issue where in the VM creation wizard the SCSI controller would not be displayed correctly if the default value "Default (LSI 53C895A)" was selected. In this case, "__default__" would be printed for the user in the next pane. Signed-off-by: Daniel Tschlatsche

[pve-devel] [PATCH storage] Remove the .notes file when a backup is deleted

2022-05-10 Thread Daniel Tschlatscher
just like we do with the .log file. Signed-off-by: Daniel Tschlatscher --- PVE/API2/Storage/Content.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVE/API2/Storage/Content.pm b/PVE/API2/Storage/Content.pm index 8ff858d..3f9d77f 100644 --- a/PVE/API2/Storage/Content.pm +++ b/PVE/API2

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

2022-05-09 Thread Daniel Tschlatscher
an IO thread. Everything worked as advertised. Tested-by: Daniel Tschlatscher On 4/28/22 10:44, Matthias Heiserer wrote: And move it from the advanced section to the always shown area. Because of the propertyStringSet call in onGetValues, existing VM show the correct iothread value. Especial

[pve-devel] [PATCH manager v2] fix #3994: Options menu entry in the System menu

2022-05-06 Thread Daniel Tschlatscher
artall-on-boot-delay. Edited the Makefile to include the newly created file. Signed-off-by: Daniel Tschlatscher --- Changes from v2: - Moved the file from the widget-toolkit to the pve-manager repository because it implements PVE specific functionality. - I originally rewrote this class to use a

pve-devel@lists.proxmox.com

2022-05-05 Thread Daniel Tschlatscher
Alpine 3.12 VM Everything worked as advertised. Tested-by: Daniel Tschlatscher On 5/3/22 13:18, Markus Frank wrote: Needed for new machine parameter, because parse_property_string checks the parameter with the regex-pattern and therefore the test-cases with somemachine & someothermachine a

[pve-devel] [PATCH i18n] Update German translations

2022-05-02 Thread Daniel Tschlatscher
Signed-off-by: Daniel Tschlatscher --- de.po | 217 +++--- 1 file changed, 84 insertions(+), 133 deletions(-) diff --git a/de.po b/de.po index 5cc8308..d5c4e80 100644 --- a/de.po +++ b/de.po @@ -8,7 +8,7 @@ msgstr "" "Pro

  1   2   >