Re: [pve-devel] [PATCH] Add API for VM import

2021-04-22 Thread Thomas Lamprecht
On 12.04.21 12:08, Dominic Jäger wrote: > Extend qm importdisk/importovf functionality to the API. > > Co-authored-by: Fabian Grünbichler > Signed-off-by: Dominic Jäger > --- > v8: > - Fabian moved the import functions into the existing create_vm / > update_vm_api > - Dropped the separate API e

Re: [pve-devel] [RFC PATCH qemu-server] fix bootdisk_size for new bootorder config scheme

2021-04-22 Thread Thomas Lamprecht
On 08.03.21 14:43, Dominik Csapak wrote: > Previously, we ever only had a single boot *disk*, while possibly > having multiple cdroms/nics in the boot order > > e.g. the config: > > boot: dnc > bootdisk: scsi0 > ide0: media=cdrom,none > scsi0: xxx > net0: ... > > would return the size of sc

[pve-devel] applied: [PATCH v2 storage] pbs: allow setting up a master key

2021-04-22 Thread Thomas Lamprecht
On 08.02.21 14:08, Fabian Grünbichler wrote: > similar to the existing encryption key handling, but without > auto-generation since we only have the public part here. > > Signed-off-by: Fabian Grünbichler > --- > > Notes: > v2: only use master key for backup command > > PVE/API2/Storage/Co

[pve-devel] applied: [PATCH cluster] pvecm: fix typo in description for 'updatecerts'

2021-04-22 Thread Thomas Lamprecht
On 01.02.21 15:47, Oguz Bektas wrote: > Signed-off-by: Oguz Bektas > --- > data/PVE/CLI/pvecm.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > applied, thanks! ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmo

[pve-devel] applied: [PATCH v2 pve-access-control] resource pools: add resource pool cli commands

2021-04-22 Thread Thomas Lamprecht
On 29.01.21 08:54, Dylan Whyte wrote: > Add commands for creating, modifying, listing, and deleting resource > pools. > > Signed-off-by: Dylan Whyte > --- > v1->v2: remove command aliases > > PVE/CLI/pveum.pm | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > applied, thanks!

Re: [pve-devel] [PATCH cluster 0/3] logging improvements

2021-04-22 Thread Thomas Lamprecht
On 01.10.20 10:53, Fabian Grünbichler wrote: > noticed while debugging the (as it turns out) missing lock issue that > qb_log is not thread-safe by default, this patch series switches to > threaded, non-blocking logging. > > Fabian Grünbichler (3): > pmxcfs: switch log domain to enum > pmxcfs:

[pve-devel] applied-series: [PATCH V5 pve-cluster 0/5] sdn : add subnets management

2021-04-22 Thread Thomas Lamprecht
On 28.09.20 10:33, Alexandre Derumier wrote: > Following pve-network > > > Alexandre Derumier (5): > add sdn/subnets.cfg > add sdn/ipams.cfg > add priv/ipam.db > add sdn/dns.cfg > rename sdn/.version to sdn/.running-config > > data/PVE/Cluster.pm | 6 +- > data/src/status.c | 6

[pve-devel] applied: [PATCH manager] api: network: fix #3385 check for used ports before writing

2021-04-22 Thread Thomas Lamprecht
On 19.04.21 20:11, Stoiko Ivanov wrote: > Currently the check for used ports for bonds and bridges happens while > rendering '/etc/network/interfaces.new' in PVE::Inotify (pve-common). > However at that stage the new/updated interface is already merged with > the old settings, making it impossible

[pve-devel] applied: [PATCH manager] ui: firewall: rule: maxlength for source and dest

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 14:30, Aaron Lauterer wrote: > Limiting the length of the source and dest paramters helps to avoid > problems with iptables-restore which would not apply a rule if a > parameter is larger than the parameter buffer (1024)[0]. As the API is > already limiting this, we should also reflect

Re: [pve-devel] [PATCH v2 common 07/13] PBSClient: use crypt params for file 'list' and 'extract'

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 17:34, Stefan Reiter wrote: > Necessary for accessing encrypted backups. > > Signed-off-by: Stefan Reiter > --- > > new in v2 > > src/PVE/PBSClient.pm | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm > index e96f20d..537fd83 10

[pve-devel] applied: [PATCH-SERIES widget-toolkit/manager] Add checkbox for removing unreferenced disks on guest removal

2021-04-22 Thread Thomas Lamprecht
On 19.04.21 15:14, Fabian Ebner wrote: > by allowing generic additional items for the SafeDestroy window in > widget-toolkit and deriving a SafeDestroyGuest child class from it. > > Also switch over the other SafeDestroy users in PVE. > > > proxmox-widget-toolkit: > > Fabian Ebner (2): > safe

[pve-devel] applied: [PATCH v2 proxmox-widget-toolkit 11/13] Utils: add errorCallback to monStoreErrors

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 17:34, Stefan Reiter wrote: > Call a function to decide if we want to mask the component. If the > callback returns true, we assume it has already handled the error (i.e. > shown a messagebox or similar) and skip masking. > > Signed-off-by: Stefan Reiter > --- > > new in v2 > > src

[pve-devel] applied: [PATCH widget-toolkit/pve-manager] move some code to widget-toolkit

2021-04-22 Thread Thomas Lamprecht
On 19.04.21 13:00, Dominik Csapak wrote: > manager needs a depends on a bumped widget-toolkit ofc > > proxmox-widget-toolkit: > > Dominik Csapak (4): > Utils: add several render functions from PVE > bring over some icons from PVE > Utils: refactor updateColumns from pve-manager > panel: a

[pve-devel] applied: [PATCH v2 proxmox-widget-toolkit 13/13] FileBrowser: show errors in messagebox and allow expand 'all'

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 17:34, Stefan Reiter wrote: > If an error is received upon expanding a node, chances are the rest of > the tree is still valid (i.e. opening a partition fails because it > doesn't contain a supported filesystem). Only show an error box for the > user, but don't mask the component in tha

[pve-devel] applied: [PATCH v2 proxmox-widget-toolkit 12/13] FileBrowser: support 'virtual'/'v' file type

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 17:34, Stefan Reiter wrote: > Denotes objects like disks ".img.fidx" files, which shouldn't be > downloadable, but should still approximate a directory entry. > > Signed-off-by: Stefan Reiter > --- > > new in v2 > > src/window/FileBrowser.js | 4 > 1 file changed, 4 insertions

[pve-devel] applied: [PATCH widget-toolkit 4/4] panel: add StatusView from PVE

2021-04-22 Thread Thomas Lamprecht
On 19.04.21 13:00, Dominik Csapak wrote: > with 2 minor fixups: > * one lint error > * binding of the 'updateValues' function in the event > (we want to avoid breaking this when used in a context where > a controller exists, in that case using a string will only look in > the controller and n

[pve-devel] applied: [pbs-devel] [PATCH v2 proxmox-backup 03/13] file-restore: support encrypted VM backups

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 17:34, Stefan Reiter wrote: > Signed-off-by: Stefan Reiter > --- > > new in v2 > > src/bin/proxmox-file-restore.rs | 22 +--- > src/bin/proxmox_file_restore/block_driver.rs | 1 + > src/bin/proxmox_file_restore/qemu_helper.rs | 9 ++-- > 3 files c

[pve-devel] applied: [pbs-devel] [PATCH v2 proxmox-backup 02/13] client-tools: add crypto_parameters_keep_fd

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 17:34, Stefan Reiter wrote: > same functionality as crypto_parameters, except it keeps the file > descriptor passed as "keyfd" open (and seeks to the beginning after > reading), if one is given. > > Signed-off-by: Stefan Reiter > --- > > new in v2 > > src/bin/proxmox_client_tools/k

[pve-devel] applied: [pbs-devel] [PATCH v2 proxmox-backup 01/13] file-restore: don't force PBS_FINGERPRINT env var

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 17:34, Stefan Reiter wrote: > It is valid to not set it, in case the server has a valid certificate. > > Signed-off-by: Stefan Reiter > --- > > new in v2 > > src/bin/proxmox_file_restore/qemu_helper.rs | 3 --- > 1 file changed, 3 deletions(-) > > applied, thanks! _

[pve-devel] applied: [PATCH firewall] fix #967: source: dest: limit length

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 14:30, Aaron Lauterer wrote: > iptables-restore has a buffer limit of 1024 for paramters [0]. > > If users end up adding a long list of IPs in the source or dest field > they might reach this limit. The result is that the rule will not be > applied and pve-firewall will show some error

[pve-devel] [PATCH v2 manager 2/2] gui: add task name for 'pbs-download'

2021-04-22 Thread Stefan Reiter
Signed-off-by: Stefan Reiter --- new in v2 www/manager6/Utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index 7fcda854..4b5dc189 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -1791,6 +1791,7 @@ Ext.define('PVE.Utils'

[pve-devel] [PATCH v2 manager 1/2] backupview: add file restore button

2021-04-22 Thread Stefan Reiter
Adds it for both BackupViews, on VM view and storage view. Signed-off-by: Stefan Reiter --- Forgot to resend this one for v2, it didn't change though AFAIR. www/manager6/grid/BackupView.js| 23 +++ www/manager6/storage/BackupView.js | 19 +++ 2 files cha

[pve-devel] [PATCH v2 proxmox-widget-toolkit 11/13] Utils: add errorCallback to monStoreErrors

2021-04-22 Thread Stefan Reiter
Call a function to decide if we want to mask the component. If the callback returns true, we assume it has already handled the error (i.e. shown a messagebox or similar) and skip masking. Signed-off-by: Stefan Reiter --- new in v2 src/Utils.js | 6 -- 1 file changed, 4 insertions(+), 2 del

[pve-devel] [PATCH v2 proxmox-widget-toolkit 12/13] FileBrowser: support 'virtual'/'v' file type

2021-04-22 Thread Stefan Reiter
Denotes objects like disks ".img.fidx" files, which shouldn't be downloadable, but should still approximate a directory entry. Signed-off-by: Stefan Reiter --- new in v2 src/window/FileBrowser.js | 4 1 file changed, 4 insertions(+) diff --git a/src/window/FileBrowser.js b/src/window/Fil

[pve-devel] [PATCH v2 00/13] Single-file-restore GUI for PBS snapshots

2021-04-22 Thread Stefan Reiter
Implements the necessary API for allowing single file restore via the PVE web GUI. This requires some adaptations of the HTTP server, to allow data streaming without buffering - otherwise bigger restores would a) use up too much memory b) get slowed down by the pvedaemon->pveproxy->client return p

[pve-devel] [PATCH v2 common 07/13] PBSClient: use crypt params for file 'list' and 'extract'

2021-04-22 Thread Stefan Reiter
Necessary for accessing encrypted backups. Signed-off-by: Stefan Reiter --- new in v2 src/PVE/PBSClient.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm index e96f20d..537fd83 100644 --- a/src/PVE/PBSClient.pm +++ b/src/PVE/PBSClient.pm @@ -1

[pve-devel] [PATCH v2 proxmox-backup 02/13] client-tools: add crypto_parameters_keep_fd

2021-04-22 Thread Stefan Reiter
same functionality as crypto_parameters, except it keeps the file descriptor passed as "keyfd" open (and seeks to the beginning after reading), if one is given. Signed-off-by: Stefan Reiter --- new in v2 src/bin/proxmox_client_tools/key_source.rs | 17 +++-- 1 file changed, 15 inse

[pve-devel] [PATCH v2 storage 10/13] add FileRestore API for PBS

2021-04-22 Thread Stefan Reiter
Includes list and restore calls. Requires VM.Backup and Datastore.Audit permissions, for the accessed VM/CT and containing datastore respectively. Signed-off-by: Stefan Reiter --- Requires updated pve-common, pve-http-server. v2: * use same permissions as regular backup access, check with chec

[pve-devel] [PATCH v2 proxmox-backup 01/13] file-restore: don't force PBS_FINGERPRINT env var

2021-04-22 Thread Stefan Reiter
It is valid to not set it, in case the server has a valid certificate. Signed-off-by: Stefan Reiter --- new in v2 src/bin/proxmox_file_restore/qemu_helper.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/bin/proxmox_file_restore/qemu_helper.rs b/src/bin/proxmox_file_restore/qemu_h

[pve-devel] [PATCH v2 http-server 08/13] support streaming data form fh to client

2021-04-22 Thread Stefan Reiter
Use an explicit AnyEvent::Handle similar to websocket proxying. Needs some special care to make sure we apply backpressure correctly to avoid caching too much data. Note that because of AnyEvent restrictions, specifying a "fh" to point to a file or a packet-based socket may result in unwanted beha

[pve-devel] [PATCH v2 common 06/13] PBSClient: add file_restore_extract function

2021-04-22 Thread Stefan Reiter
*_prepare creates a fifo for streaming data back to clients directly, filefile_restore_extract blocks and should be called from a background worker - while it is running outcoming data can be read from the FIFO. Signed-off-by: Stefan Reiter --- v2: * don't use "startcmd", just pass "opts" direct

[pve-devel] [PATCH v2 proxmox-widget-toolkit 13/13] FileBrowser: show errors in messagebox and allow expand 'all'

2021-04-22 Thread Stefan Reiter
If an error is received upon expanding a node, chances are the rest of the tree is still valid (i.e. opening a partition fails because it doesn't contain a supported filesystem). Only show an error box for the user, but don't mask the component in that case. Additionally, disable the download butto

[pve-devel] [PATCH v2 http-server 09/13] allow stream download from path and over pvedaemon-proxy

2021-04-22 Thread Stefan Reiter
Allow specifying a filepath for stream=1 instead of either a path or fh with stream=1. With this in place, we can also just return the path to the proxy in case we want to stream a response back, and let it read from the file itself. This way, the pvedaemon is cut out of the transfer pipe. Signed

[pve-devel] [PATCH v2 common 05/13] PBSClient: add file_restore_list command

2021-04-22 Thread Stefan Reiter
Signed-off-by: Stefan Reiter --- v2: * one line per param src/PVE/PBSClient.pm | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm index 16f7765..8e4deca 100644 --- a/src/PVE/PBSClient.pm +++ b/src/PVE/PBSClient.pm @@ -335,4 +335,15 @@ su

[pve-devel] [PATCH v2 common 04/13] PBSClient: adapt error message to include full package names

2021-04-22 Thread Stefan Reiter
More helpful for a user to know what they're missing. Suggested-by: Dominic Jäger Signed-off-by: Stefan Reiter --- new in v2 src/PVE/PBSClient.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm index 857cff0..16f7765 100644 --- a

[pve-devel] [PATCH v2 proxmox-backup 03/13] file-restore: support encrypted VM backups

2021-04-22 Thread Stefan Reiter
Signed-off-by: Stefan Reiter --- new in v2 src/bin/proxmox-file-restore.rs | 22 +--- src/bin/proxmox_file_restore/block_driver.rs | 1 + src/bin/proxmox_file_restore/qemu_helper.rs | 9 ++-- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src

Re: [pve-devel] [PATCH pve-kernel-meta 2/7] proxmox-boot-tool: add status command

2021-04-22 Thread Fabian Grünbichler
On April 22, 2021 1:17 pm, Stoiko Ivanov wrote: > currently simply checking if $ESP_LIST exists, and indicating via > the exit status if proxmox-boot-tool is used for booting the system. > > Signed-off-by: Stoiko Ivanov > --- > bin/proxmox-boot-tool | 20 > 1 file changed, 2

Re: [pve-devel] [PATCH pve-kernel-meta 1/7] proxmox-boot-tool: rename from pve-efiboot-tool

2021-04-22 Thread Fabian Grünbichler
On April 22, 2021 1:17 pm, Stoiko Ivanov wrote: > We will be using the mechanics also for ZFS systems booting with BIOS > legacy boot, and the tool is used also in PMG and PBS. > > A symlink is kept in place for compatibility reasons > > Signed-off-by: Stoiko Ivanov > --- > Makefile

[pve-devel] [PATCH manager] ui: firewall: rule: maxlength for source and dest

2021-04-22 Thread Aaron Lauterer
Limiting the length of the source and dest paramters helps to avoid problems with iptables-restore which would not apply a rule if a parameter is larger than the parameter buffer (1024)[0]. As the API is already limiting this, we should also reflect that in the GUI and give people a hint that IP se

[pve-devel] [PATCH firewall] fix #967: source: dest: limit length

2021-04-22 Thread Aaron Lauterer
iptables-restore has a buffer limit of 1024 for paramters [0]. If users end up adding a long list of IPs in the source or dest field they might reach this limit. The result is that the rule will not be applied and pve-firewall will show some error in the syslog which will be "hidden" for most user

[pve-devel] [PATCH v2 docs 1/2] vzdump: add section about live-restore

2021-04-22 Thread Stefan Reiter
Signed-off-by: Stefan Reiter Reviewed-by: Dylan Whyte --- v2: * Incorporate Dylan's review + R-b Agreed with all suggestions, for both patches :) vzdump.adoc | 28 1 file changed, 28 insertions(+) diff --git a/vzdump.adoc b/vzdump.adoc index 9453684..b8ea081 10064

[pve-devel] [PATCH v2 docs 2/2] vzdump: add section about single file restore

2021-04-22 Thread Stefan Reiter
Signed-off-by: Stefan Reiter Reviewed-by: Dylan Whyte --- v2: * Incorporate Dylan's review + R-b vzdump.adoc | 24 1 file changed, 24 insertions(+) diff --git a/vzdump.adoc b/vzdump.adoc index b8ea081..0937fe2 100644 --- a/vzdump.adoc +++ b/vzdump.adoc @@ -365,6 +365,3

Re: [pve-devel] [PATCH 00/10] Single-file-restore GUI for PBS snapshots

2021-04-22 Thread Stefan Reiter
On 22/04/2021 12:33, Dominic Jäger wrote: On Wed, Apr 21, 2021 at 01:15:29PM +0200, Stefan Reiter wrote: Implements the necessary API for allowing single file restore via the PVE web GUI. Restoring a couple of small text files and folders with textfiles from containers worked really well for m

[pve-devel] [PATCH pve-kernel-meta 6/7] proxmox-boot: add grub.cfg header snippet

2021-04-22 Thread Stoiko Ivanov
If the system seems to be booted using proxmox-boot, write a header at the beginning of the grub.cfg generated when running `update-grub` Additionally print a warning in case the script is run interactively. This is determined by checking for DPKG_VERSION, which is set when running as post-inst ta

[pve-devel] [PATCH pve-kernel-meta 4/7] proxmox-boot: rename uuid list file

2021-04-22 Thread Stoiko Ivanov
in order to be consistent with the renaming of pve-efiboot-tool to proxmox-boot-tool. Sending as separate patch, since it changes and removes a file in '/etc', which could be considered part of the external 'api' of proxmox-boot-tool Signed-off-by: Stoiko Ivanov --- debian/pve-kernel-helper.pos

[pve-devel] [PATCH pve-kernel-meta 1/7] proxmox-boot-tool: rename from pve-efiboot-tool

2021-04-22 Thread Stoiko Ivanov
We will be using the mechanics also for ZFS systems booting with BIOS legacy boot, and the tool is used also in PMG and PBS. A symlink is kept in place for compatibility reasons Signed-off-by: Stoiko Ivanov --- Makefile | 2 +- bin/Makefile

[pve-devel] [PATCH pve-kernel-meta 2/7] proxmox-boot-tool: add status command

2021-04-22 Thread Stoiko Ivanov
currently simply checking if $ESP_LIST exists, and indicating via the exit status if proxmox-boot-tool is used for booting the system. Signed-off-by: Stoiko Ivanov --- bin/proxmox-boot-tool | 20 1 file changed, 20 insertions(+) diff --git a/bin/proxmox-boot-tool b/bin/prox

[pve-devel] [PATCH pve-kernel-meta 5/7] proxmox-boot-tool: handle legacy boot zfs installs

2021-04-22 Thread Stoiko Ivanov
This patch adds support for booting non-uefi/legacy/bios-boot ZFS installs, by using proxmox-boot-tool to copy the kernels to the ESP and then generate a fitting grub config for booting from the vfat ESP: * grub is installed onto the ESP and the MBR points to the ESP * after copying/deleting the k

[pve-devel] [PATCH pve-kernel-meta 7/7] proxmox-boot: add grub-install wrapper

2021-04-22 Thread Stoiko Ivanov
if a (legacy) system is booted with proxmox-boot-tool, running `grub-install` without being aware of the fact can render the system unbootable (e.g. when letting the early stage point to an incompatible zpool instead of the ESP). To prevent this we add a dpkg-diversion [0], which simply checks if

[pve-devel] [PATCH pve-kernel-meta/pve-installer] boot ZFS on legacy BIOS systems from vfat

2021-04-22 Thread Stoiko Ivanov
the pve-kernel-meta patches were prepared on top of the pve-kernel-5.4 branch rfc->v1: * Thanks to Fabian's great feedback this version handles a few cases I did not think of for the RFC (e.g. an update to grub which runs grub-install and removes the core.img/stage0 pointing to the ESP (instead

[pve-devel] [PATCH installer 1/1] always boot zfs with proxmox-boot-tool

2021-04-22 Thread Stoiko Ivanov
proxmox-boot-tool now supports configuring grub to boot from the ESPs the installer creates on all (bootable) disks - use this approach for zfs installs. Signed-off-by: Stoiko Ivanov --- best viewed with `git show -w` proxinstall | 26 +- 1 file changed, 13 insertions(+),

[pve-devel] [PATCH pve-kernel-meta 3/7] proxmox-boot-tool: sort and remove duplicates on clean

2021-04-22 Thread Stoiko Ivanov
This is mostly in preparation for renaming pve-efiboot-uuids into proxmox-boot-uuids, but can help in general (since each duplicate uuid causes excessive disk i/o upon kernel upgrades). Signed-off-by: Stoiko Ivanov --- bin/proxmox-boot-tool | 4 1 file changed, 4 insertions(+) diff --git a

Re: [pve-devel] [PATCH 00/10] Single-file-restore GUI for PBS snapshots

2021-04-22 Thread Dominic Jäger
On Wed, Apr 21, 2021 at 01:15:29PM +0200, Stefan Reiter wrote: > Implements the necessary API for allowing single file restore via the PVE web > GUI. Restoring a couple of small text files and folders with textfiles from containers worked really well for me. For VMs I could also restore some text

Re: [pve-devel] [PATCH docs 2/2] vzdump: add section about single file restore

2021-04-22 Thread Dylan Whyte
Hi, Have even less notes for this one. Just some little things sounded off to me. Reviewed-by: Dylan Whyte On 4/22/21 10:25 AM, Stefan Reiter wrote: Signed-off-by: Stefan Reiter --- vzdump.adoc | 24 1 file changed, 24 insertions(+) diff --git a/vzdump.adoc b/v

Re: [pve-devel] [PATCH docs 1/2] vzdump: add section about live-restore

2021-04-22 Thread Dylan Whyte
Hi, I just made some very minor suggestions inline, but overall it's good (i had to search extra-hard for issues) :) Reviewed-by: Dylan Whyte On 4/22/21 10:25 AM, Stefan Reiter wrote: Signed-off-by: Stefan Reiter --- As discussed off-list, the vzdump section in general seems a bit misorga

[pve-devel] applied: [PATCH manager] ui: Parser: respect mtu in {parse, print}QemuNetwork

2021-04-22 Thread Thomas Lamprecht
On 23.03.21 13:27, Dominik Csapak wrote: > Signed-off-by: Dominik Csapak > --- > www/manager6/Parser.js | 5 + > 1 file changed, 5 insertions(+) > > applied, thanks! ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.co

Re: [pve-devel] [PATCH manager] ui: Parser: respect mtu in {parse, print}QemuNetwork

2021-04-22 Thread Dominik Csapak
On 3/23/21 13:27, Dominik Csapak wrote: Signed-off-by: Dominik Csapak --- www/manager6/Parser.js | 5 + 1 file changed, 5 insertions(+) diff --git a/www/manager6/Parser.js b/www/manager6/Parser.js index b83a5d46..1a5fe1c2 100644 --- a/www/manager6/Parser.js +++ b/www/manager6/Parser.js @

[pve-devel] applied: [PATCH qemu-server] qemu_img_convert: add missing newline for progress output

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 08:57, Fabian Ebner wrote: > which was accidentally removed by b5e9d97bdf8a63a542f8cbb3c1d0821ee731f796. > > Signed-off-by: Fabian Ebner > --- > PVE/QemuServer.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > applied, thanks!

[pve-devel] applied: [PATCH v2 qemu-server] fix #3369: auto-start vm after failed stopmode backup

2021-04-22 Thread Thomas Lamprecht
On 20.04.21 15:14, Dylan Whyte wrote: > Fixes an issue in which a VM/CT fails to automatically restart after a > failed stop-mode backup. > > Also fixes a minor typo in a comment > > Signed-off-by: Dylan Whyte > --- > > Note: > > v1->v2: > - Fix the issue from within PVE::VZDump::QemuServer, r

[pve-devel] applied: [PATCH manager] http-server: fix for api token csrf token check

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 10:46, Lorenz Stechauner wrote: > Do not check any csrf tokens for auth with api tokens. > > Signed-off-by: Lorenz Stechauner > --- > PVE/HTTPServer.pm | 12 +++- > 1 file changed, 7 insertions(+), 5 deletions(-) > > applied, thanks! Added an actual comment explaining this

[pve-devel] [PATCH manager] http-server: fix for api token csrf token check

2021-04-22 Thread Lorenz Stechauner
Do not check any csrf tokens for auth with api tokens. Signed-off-by: Lorenz Stechauner --- PVE/HTTPServer.pm | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm index bfb753eb..7a3bf72b 100755 --- a/PVE/HTTPServer.pm +++ b/PVE/H

Re: [pve-devel] [PATCH v2 qemu-server] fix #3369: auto-start vm after failed stopmode backup

2021-04-22 Thread Fabian Grünbichler
On April 20, 2021 3:14 pm, Dylan Whyte wrote: > Fixes an issue in which a VM/CT fails to automatically restart after a > failed stop-mode backup. > > Also fixes a minor typo in a comment > > Signed-off-by: Dylan Whyte Reviewed-by: Fabian Grünbichler > --- > > Note: > > v1->v2: > - Fix the i

[pve-devel] [PATCH docs 2/2] vzdump: add section about single file restore

2021-04-22 Thread Stefan Reiter
Signed-off-by: Stefan Reiter --- vzdump.adoc | 24 1 file changed, 24 insertions(+) diff --git a/vzdump.adoc b/vzdump.adoc index 0577a97..c6063ad 100644 --- a/vzdump.adoc +++ b/vzdump.adoc @@ -365,6 +365,30 @@ amount of data is required for initial operation, e.g. web s

[pve-devel] [PATCH docs 1/2] vzdump: add section about live-restore

2021-04-22 Thread Stefan Reiter
Signed-off-by: Stefan Reiter --- As discussed off-list, the vzdump section in general seems a bit misorganized, and is certainly missing some references to PBS. Dylan agreed to take a look at it, thanks again for that! vzdump.adoc | 28 1 file changed, 28 insertions

Re: [pve-devel] applied: [PATCH manager v2] ui: Utils: change default Console order for vms

2021-04-22 Thread Dominik Csapak
On 4/22/21 10:02, Thomas Lamprecht wrote: On 22.04.21 08:39, Dominik Csapak wrote: we want to use spice for vms more than xtermjs if both are available (since spice must be chosen as display in that case) so the resulting order of preference for vms is: spice xtermjs novnc since all me

Re: [pve-devel] [PATCH manager] fix #3389: Skip CSRF token check also for API tokens on file upload

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 10:05, Fabian Grünbichler wrote: > On April 21, 2021 1:59 pm, Lorenz Stechauner wrote: >> On file upload, the check for CSRF tokens was already skipped >> when performing user authentication.This now happens for API >> tokens also. >> >> Signed-off-by: Lorenz Stechauner >> --- >> PVE/

[pve-devel] applied-series: [PATCH v3 pve-network 0/6] evpn && bgp improvements

2021-04-22 Thread Thomas Lamprecht
On 21.04.21 23:49, Alexandre Derumier wrote: > - fix broken evpn tests since last commit > https://lists.proxmox.com/pipermail/pve-devel/2021-April/047521.html > > - add ebgp-multihop option > (replace > https://lists.proxmox.com/pipermail/pve-devel/2021-April/047547.html) > > > Changelog

Re: [pve-devel] [PATCH manager] fix #3389: Skip CSRF token check also for API tokens on file upload

2021-04-22 Thread Fabian Grünbichler
On April 21, 2021 1:59 pm, Lorenz Stechauner wrote: > On file upload, the check for CSRF tokens was already skipped > when performing user authentication.This now happens for API > tokens also. > > Signed-off-by: Lorenz Stechauner > --- > PVE/HTTPServer.pm | 34 +-

[pve-devel] applied: [PATCH manager] fix #3389: Skip CSRF token check also for API tokens on file upload

2021-04-22 Thread Thomas Lamprecht
On 21.04.21 13:59, Lorenz Stechauner wrote: > On file upload, the check for CSRF tokens was already skipped > when performing user authentication.This now happens for API > tokens also. > > Signed-off-by: Lorenz Stechauner > --- > PVE/HTTPServer.pm | 34 +- > 1 fi

[pve-devel] applied: [PATCH manager v2] ui: Utils: change default Console order for vms

2021-04-22 Thread Thomas Lamprecht
On 22.04.21 08:39, Dominik Csapak wrote: > we want to use spice for vms more than xtermjs if both are available > (since spice must be chosen as display in that case) > so the resulting order of preference for vms is: > spice > xtermjs > novnc > > since all methods work for containers always

[pve-devel] [PATCH manager] ui: set file name for spice console download in chrome

2021-04-22 Thread Lorenz Stechauner
When the virt-viewer file is downloaded we already set a file name in Android, so the file type may be recognized. Also doing this in Chrome (and Chromium based browsers) allows users to "alyways open files of this type". So the browser automatically opens the console window without user interactio

[pve-devel] [PATCH qemu-server] qemu_img_convert: add missing newline for progress output

2021-04-22 Thread Fabian Ebner
which was accidentally removed by b5e9d97bdf8a63a542f8cbb3c1d0821ee731f796. Signed-off-by: Fabian Ebner --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 8b9c40d..e768072 100644 --- a/PVE/QemuServer.pm +++ b/PVE/