Re: [pve-devel] [RFC firewall/proxmox{-ve-rs, -firewall, -perl-rs} 00/21] autogenerate ipsets for sdn objects

2024-09-24 Thread Thomas Lamprecht
Am 26/06/2024 um 14:15 schrieb Stefan Hanreich: > The current series generates all those ipsets in the datacenter scope. My > initial approach was to introduce an separate scope (sdn/), but I changed my > mind during the development because that would require non-trivial changes in > pve-firewall,

[pve-devel] applied-series: partially-applied: [PATCH many v9 00/13] notifications: notification metadata matching improvements

2024-09-23 Thread Thomas Lamprecht
Am 23/09/2024 um 13:27 schrieb Lukas Wagner: > pve-manager has been bumped in the meanwhile, I guess we could now merge the > remaining patches for pve-docs and proxmox-widget-toolkit? > They still apply cleanly and a quick test also showed that everything still > works as expected. thanks for the

[pve-devel] applied-series: [PATCH manager 1/2] vzdump jobs: make job ID a standard option

2024-09-20 Thread Thomas Lamprecht
Am 20/09/2024 um 11:05 schrieb Fabian Grünbichler: > and put it into PVE::VZDump because there is a cycle between > > PVE::Jobs::VZDump, PVE::API2::VZDump and PVE::API2::Backups > > that prevents any of those containing it for now. > > Signed-off-by: Fabian Grünbichler > --- > PVE/API2/Backup.

Re: [pve-devel] [PATCH manager] ui: backup job overview: add filter field

2024-09-20 Thread Thomas Lamprecht
Am 20/09/2024 um 08:09 schrieb Dominik Csapak: >> For example, all VMIDs on a node. all VMIDs except the selected. VMIDs in >> resource pools, ... > Fair, as that would "really" fix the bug. Just for the record, I did decide > for a 'front-end' only approach because, > > * less api calls/paramete

Re: [pve-devel] [RFC PATCH pve-cluster] fix #5728: pmxcfs: allow bigger writes than 4k for fuse

2024-09-19 Thread Thomas Lamprecht
Am 19/09/2024 um 14:45 schrieb Dominik Csapak: > On 9/19/24 14:01, Thomas Lamprecht wrote: >> Am 19/09/2024 um 11:52 schrieb Dominik Csapak: >>> by default libfuse2 limits writes to 4k size, which means that on writes >>> bigger than that, we do a whole write cycle f

Re: [pve-devel] [RFC PATCH pve-cluster] fix #5728: pmxcfs: allow bigger writes than 4k for fuse

2024-09-19 Thread Thomas Lamprecht
Am 19/09/2024 um 11:52 schrieb Dominik Csapak: > by default libfuse2 limits writes to 4k size, which means that on writes > bigger than that, we do a whole write cycle for each 4k block that comes > in. To avoid that, add the option 'big_writes' to allow writes bigger > than 4k at once. > > This s

Re: [pve-devel] [RFC qemu/storage/qemu-server/container/manager v2 00/25] backup provider API

2024-09-12 Thread Thomas Lamprecht
Am 12/09/2024 um 14:43 schrieb Fabian Grünbichler: > I do wonder whether we want to support the Borg and Example plugins > though? if not, it might make sense to not ship them (but maybe just > test them?).. FWIW, we could move them to a separate repository named something like "pve-storage-plugin

[pve-devel] Announcing a Public Inbox instance for the Proxmox mailing lists

2024-09-12 Thread Thomas Lamprecht
Hello everyone, For a few weeks now, we have been running https://lore.proxmox.com/ See the new section in our developer docs wiki for a little bit of additional details: https://pve.proxmox.com/wiki/Developer_Documentation#Public_Inbox Best regards, Thomas ___

[pve-devel] applied: [PATCH storage] api: upload: correctly test for result of unlink

2024-09-12 Thread Thomas Lamprecht
Am 29/07/2024 um 16:29 schrieb Fiona Ebner: > It's not enough to check whether $! is set. From "perldoc perlvar": > >> Many system or library calls set "errno" if they fail, to >> indicate the cause of failure. They usually do not set "errno" >> to zero if they succeed and may set "errno" to a non

[pve-devel] applied: [PATCH container] api: autocomplete rootdir storages for create, move-volume and clone

2024-09-10 Thread Thomas Lamprecht
Am 10/09/2024 um 13:23 schrieb Daniel Kral: > Adds a helper subroutine for enumerating storages that are enabled and > have the content type `rootdir` set, therefore supporting container > directories. > > The autocompletion is added to the clone command and changed for the > create and move-volum

[pve-devel] applied: [PATCH container] backup: warn that tar does not honor exclusion pattern with a trailing slash

2024-09-10 Thread Thomas Lamprecht
Am 31/05/2024 um 12:07 schrieb Fiona Ebner: > As reported in the community forum [0], for tar, an exclusion pattern > with a trailing slash will not match a folder with that name. For > rsync and proxmox-backup-client however, such a pattern will exclude > a directory with that name, but not a file

[pve-devel] applied: [PATCH container v3 1/2] add deny-write option for device passthrough

2024-09-10 Thread Thomas Lamprecht
Am 09/09/2024 um 14:50 schrieb Filip Schauer: > Add the deny-write options for device passthrough, to restrict container > access to devices. > > Signed-off-by: Filip Schauer > --- > src/PVE/LXC.pm| 7 ++- > src/PVE/LXC/Config.pm | 6 ++ > 2 files changed, 12 insertions(+), 1 del

Re: [pve-devel] [RFC qemu-server] apt hook: warn against using 'upgrade' command

2024-09-09 Thread Thomas Lamprecht
Am 09/09/2024 um 09:52 schrieb Fiona Ebner: > Am 09.09.24 um 09:48 schrieb Fabian Grünbichler: >> given that I also use `apt upgrade` from time to time (habit from being an >> unstable user ;)), and that it might alienate power users coming from >> Debian, I'd prefer this to be a non-interactive

[pve-devel] applied: [PATCH docs v2] docs: fix typos

2024-09-06 Thread Thomas Lamprecht
Am 25/07/2024 um 10:29 schrieb Maximiliano Sandoval: > Signed-off-by: Maximiliano Sandoval > --- > Differences from v1: > - Remove fixes in automatically generated files > > ha-manager.adoc| 2 +- > notifications.adoc | 12 ++-- > pve-faq.adoc | 2 +- > pve-firewall.adoc |

[pve-devel] applied: [PATCH novnc] fix #5639: prevent browser from trying to save novnc password

2024-09-06 Thread Thomas Lamprecht
Am 27/08/2024 um 15:15 schrieb Dominik Csapak: > by not using the password input at all, but pass the password > to the connect function manually > > this changes the first patch instead of adding another one, since > it only touches code from that. > > Signed-off-by: Dominik Csapak > --- > ...

Re: [pve-devel] orphaned cfs lock when interrupting qm disk import

2024-09-06 Thread Thomas Lamprecht
Hi, Am 26/08/2024 um 22:46 schrieb Joshua Huber: > Say you've just kicked off a long-running "qm disk import ..." command and > notice that an incorrect flag was specified. Ok, cancel the operation with > control-C, fix the flag and re-execute the import command... > > However, when using shared

[pve-devel] applied: [PATCH container] fix #5666: fix quota regression due to device passthrough

2024-09-06 Thread Thomas Lamprecht
Am 27/08/2024 um 13:46 schrieb Filip Schauer: > This commit fixes a regression introduced by > commit ce1976b85361 ("Add device passthrough") > > Prior to the addition of device passthrough, the `lxc-pve-autodev-hook` > would invoke `PVE::LXC::Tools::for_current_devices` only once. If the > device

[pve-devel] applied: [PATCH container] fix #5674: add missing 'proxyto' for LXC interfaces API

2024-09-06 Thread Thomas Lamprecht
Am 02/09/2024 um 14:25 schrieb Fabian Grünbichler: > else this API endpoint would only work when connected to the node where the > container is currently running. > > Signed-off-by: Fabian Grünbichler > --- > src/PVE/API2/LXC.pm | 1 + > 1 file changed, 1 insertion(+) > > applied, thanks! __

[pve-devel] applied: [PATCH storage] base plugin: do not decode the empty string

2024-09-06 Thread Thomas Lamprecht
Am 02/09/2024 um 14:47 schrieb Maximiliano Sandoval: > If the json was empty, for example if the qemu-img command times out, a > message > > warn "could not parse qemu-img info command output for '$filename' - > $err\n"; > > would have been printed. > > This message could lead one to think

[pve-devel] applied: [PATCH storage v4] fix #4272: btrfs: add rename feature

2024-09-06 Thread Thomas Lamprecht
Am 05/07/2024 um 15:10 schrieb Maximiliano Sandoval: > Adds the ability to change the owner of a guest image. > > Btrfs does not need special commands to rename a subvolume and this can > be achieved the same as in Storage/plugin.pm's rename_volume taking > special care of how the directory struct

[pve-devel] applied: [PATCH v3 qemu-server] remote migration: fix online migration via API clients

2024-09-06 Thread Thomas Lamprecht
Am 04/09/2024 um 13:12 schrieb Fiona Ebner: > As reported in the community forum [0], when a remote migration > request comes in via an API client, the -T flag for Perl is set, so an > insecure dependency in a call like unlink() in forward_unix_socket() > will fail with: > >> failed to write forwa

Re: [pve-devel] [PATCH container/manager v2 0/2] add deny read/write options for device passthrough

2024-09-06 Thread Thomas Lamprecht
Am 06/09/2024 um 14:14 schrieb Fiona Ebner: > Am 24.07.24 um 19:18 schrieb Filip Schauer: >> Add the deny_read and deny_write options for device passthrough, to >> restrict container access to devices. >> >> This allows for passing through a device in read-only mode without >> giving the container

Re: [pve-devel] [RFC qemu-server] apt hook: warn against using 'upgrade' command

2024-09-06 Thread Thomas Lamprecht
Am 06/09/2024 um 12:40 schrieb Fiona Ebner: > Many people will use 'upgrade' instead of 'full-upgrade' or > 'dist-upgrade' (e.g. [0][1]) despite the documentation explicitly > mentioning 'dist-upgrade' [3]. Proxmox VE uses different packaging > guarantees than Debian and using 'upgrade' can lead to

Re: [pve-devel] [RFC qemu-server] apt hook: warn against using 'upgrade' command

2024-09-06 Thread Thomas Lamprecht
Am 06/09/2024 um 14:16 schrieb Alexander Zeidler: > On Fri Sep 6, 2024 at 12:40 PM CEST, Fiona Ebner wrote: >> (DPkg::Pre-Invoke is also too late). Since this is just an additional >> safety warning to guide new users, it should still be good enough. > >> + if ($line && $line =~ m/^CommandLine::A

Re: [pve-devel] [RFC qemu-server] apt hook: warn against using 'upgrade' command

2024-09-06 Thread Thomas Lamprecht
Am 06/09/2024 um 13:01 schrieb Dominik Csapak: > just to mention it (i think it's not widely known): > > 'apt upgrade' behaves slightly different than 'apt-get upgrade' > > while the former also installs new packages if necessary, the latter > doesn't, so an 'apt upgrade' will maybe work ok in mo

Re: [pve-devel] [PATCH qemu-server] fix #5284: diallow moving vm disks to storages not meant for images

2024-09-06 Thread Thomas Lamprecht
Am 29/08/2024 um 16:26 schrieb Daniel Kral: > Adds a check if the target storage of a VM disk move between two > different storages supports the content type 'images'. Without the > check, it will move the disk image to storages which do not support VM > images, which causes the VM to fail at start

[pve-devel] applied: [PATCH proxmox-offline-mirror] docs: fix command arguments for syncing a medium

2024-09-06 Thread Thomas Lamprecht
Am 26/08/2024 um 17:11 schrieb Daniel Kral: > Fixes a minor error in the documentation about syncing a medium, where > the id for a medium is falsely provided with a `--id ` argument. > > Signed-off-by: Daniel Kral > --- > docs/offline-media.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deleti

[pve-devel] applied-series: [PATCH storage/esxi-import-tools 0/2] fix #5587: compatibility for flatcased 'filename' property in vmx file

2024-09-06 Thread Thomas Lamprecht
Am 21/08/2024 um 15:57 schrieb Daniel Kral: > Compatibility for an older naming convention of the "fileName" property > of mounted storage device images in vmx configuration files was > requested at [1]. > > Previously, it was only possible to import ESXi VMs, where the mentioned > property name w

[pve-devel] applied-series: [PATCH qemu 1/2] pick up fix for VirtIO PCI regressions

2024-09-06 Thread Thomas Lamprecht
Am 05/09/2024 um 11:49 schrieb Fiona Ebner: > Commit f06b222 ("fixes for QEMU 9.0") included a revert for the QEMU > commit 2ce6cff94d ("virtio-pci: fix use of a released vector"). That > commit caused some regressions which sounded just as bad as the fix. > Those regressions have now been addresse

[pve-devel] applied: [PATCH zfsonlinux 0/2] update ZFS to 2.2.6

2024-09-05 Thread Thomas Lamprecht
Am 05/09/2024 um 11:44 schrieb Stoiko Ivanov: > This patchset updates ZFS to 2.2.6, which was released last night. > It supersedes the update to 2.2.5: > https://lore.proxmox.com/pve-devel/20240820164512.1532793-1-s.iva...@proxmox.com/ > > The usrmerge part of the above series will be resent indep

[pve-devel] applied: [PATCH kernel] add fix for regression causing broken power indicators/LEDs

2024-09-05 Thread Thomas Lamprecht
Am 26/07/2024 um 11:06 schrieb Fiona Ebner: > The issue was reported in the enterprise support. The customer > contacted the ledmon maintainer, who found that it is not an issue > with ledmon, bisected the kernel and came up with this fix. > > Signed-off-by: Fiona Ebner > --- > ...n-Power-Indica

[pve-devel] applied: [PATCH kernel 1/2] cherry-pick fix for NULL pointer dereference in apparmorfs

2024-08-05 Thread Thomas Lamprecht
On 05/08/2024 12:31, Fiona Ebner wrote: > Reported in the community forum: > https://forum.proxmox.com/threads/145760/post-690328 > > Signed-off-by: Fiona Ebner > --- > ...ix-possible-NULL-pointer-dereference.patch | 101 ++ > 1 file changed, 101 insertions(+) > create mode 1006

[pve-devel] applied: [PATCH manager v2] ui: dc summary: fix calculation of storage size

2024-07-31 Thread Thomas Lamprecht
Am 31/07/2024 um 14:14 schrieb Igor Thaller: > The issue is related to the 'Summary' tab under 'Datacenter' inside a > cluster. To get a steady reading of the storage size data, the frontend > requests the '/api2/json/cluster/resources' every three seconds to > retrieve the necessary data to calcul

Re: [pve-devel] [WIP qemu-server 1/3] fix #2255: add support for nvme emulation

2024-07-31 Thread Thomas Lamprecht
Am 31/07/2024 um 15:40 schrieb Aaron Lauterer: > From: Oguz Bektas > > now we can add nvme drives; > > nvme0: local-lvm:vm-103-disk-0,size=32G > > or > > qm set VMID --nvme0 local-lvm:32 > > max number is 8 for now, as most real hardware has 1-3 nvme slots and > can have a few more with pcie.

[pve-devel] applied-series: [PATCH v3 qemu-server 1/2] migration: avoid crash with heavy IO on local VM disk

2024-07-30 Thread Thomas Lamprecht
Am 04/07/2024 um 11:32 schrieb Fiona Ebner: > There is a possibility that the drive-mirror job is not yet done when > the migration wants to inactivate the source's blockdrives: > >> bdrv_co_write_req_prepare: Assertion `!(bs->open_flags & BDRV_O_INACTIVE)' >> failed. > > This can be prevented b

[pve-devel] applied: [PATCH qemu-server] drive mirror: prevent wrongly logging success when completion fails differently

2024-07-30 Thread Thomas Lamprecht
Am 23/07/2024 um 14:07 schrieb Fiona Ebner: > Currently, when completing a drive mirror job, only errors matching > "cannot be completed" will be handled. Other errors are ignored and > a wrong message that the job was completed successfully will be > printed to the log. An instance of this popped

[pve-devel] applied: [PATCH v3 docs] cloudinit: add Windows cloudbase-init section

2024-07-30 Thread Thomas Lamprecht
Am 30/07/2024 um 17:15 schrieb Mira Limbeck: > Signed-off-by: Mira Limbeck > --- > v3: > - fixed list continuity/indentation > v2: > - added metadata_services config option > - added Sysprep section > - fixed typos and clarified some parts > > qm-cloud-init.adoc | 154 +++

[pve-devel] applied: [PATCH v3 qemu-server] fix 4493: cloud-init: fix generated Windows config

2024-07-30 Thread Thomas Lamprecht
Am 30/07/2024 um 17:15 schrieb Mira Limbeck: > Cloudbase-Init, a cloud-init reimplementation for Windows, supports only > a subset of the configuration options of cloud-init. Some features > depend on support by the Metadata Service (ConfigDrive2 here) and have > further limitations [0]. > > To su

[pve-devel] applied: [PATCH pve-manager] sdn: vnets: Hide irrelevant fields depending on zone type

2024-07-30 Thread Thomas Lamprecht
Am 22/12/2023 um 11:43 schrieb Stefan Hanreich: > Not all fields in the VnetEdit dialog are necessary for every zone > type. This lead to confusion for some users. Hide fields in the > VNetEdit dialog depending on which kind of zone is selected in order > to prevent potential confusion. > > Signed

[pve-devel] applied: [PATCH pve-manager] www: backup: clarify experimental change detection modes

2024-07-30 Thread Thomas Lamprecht
Am 26/06/2024 um 09:00 schrieb Christian Ebner: > Currently, the whole mode selector is labeled as experimental, this > does however give the impression that also the default legacy mode is > an experimental mode. > To clarify that only the `data` and `metadata` change detection modes > are experim

[pve-devel] applied: [PATCH qemu-server] d/control: add liburi-perl dependency

2024-07-30 Thread Thomas Lamprecht
Am 30/07/2024 um 16:27 schrieb Mira Limbeck: > URI is used in multiple files: > PVE/API2/Qemu.pm > PVE/CLI/qm.pm > PVE/QemuServer.pm > PVE/QemuServer/Cloudinit.pm > > Dependencies of qemu-server already have it as dependency, but there's > no explicit dependency in qemu-server yet. > > Signed-off

Re: [pve-devel] [PATCH v2 qemu-server] fix 4493: cloud-init: fix generated Windows config

2024-07-29 Thread Thomas Lamprecht
Am 29/07/2024 um 17:19 schrieb Mira Limbeck: > cloudbase-init, a cloud-init reimplementation for Windows, supports only > a subset of the configuration options of cloud-init. Some features > depend on support by the Metadata Service (ConfigDrive2 here) and have > further limitations [0]. > > To su

[pve-devel] applied: [PATCH v2 qemu-server] resume: bump timeout for query-status

2024-07-29 Thread Thomas Lamprecht
Am 25/07/2024 um 14:32 schrieb Fiona Ebner: > As reported in the community forum [0], after migration, the VM might > not immediately be able to respond to QMP commands, which means the VM > could fail to resume and stay in paused state on the target. > > The reason is that activating the block dr

[pve-devel] applied: [PATCH qemu 1/2] update submodule and patches to QEMU 9.0.2

2024-07-29 Thread Thomas Lamprecht
Am 25/07/2024 um 11:45 schrieb Fiona Ebner: > Most relevant are some fixes for VirtIO and for ARM and i386 > emulation. There also is a fix for VGA display to fix screen blanking, > which fixes: https://bugzilla.proxmox.com/show_bug.cgi?id=4786 > > Signed-off-by: Fiona Ebner > --- > ...d-support

Re: [pve-devel] [PATCH storage] api: upload: correctly test for result of unlink

2024-07-29 Thread Thomas Lamprecht
Am 29/07/2024 um 16:29 schrieb Fiona Ebner: > It's not enough to check whether $! is set. From "perldoc perlvar": > >> Many system or library calls set "errno" if they fail, to >> indicate the cause of failure. They usually do not set "errno" >> to zero if they succeed and may set "errno" to a non

Re: [pve-devel] [PATCH manager v2] ui: pool: separate "Add Virtual Machine" menu into distinct options

2024-07-29 Thread Thomas Lamprecht
Am 29/07/2024 um 13:43 schrieb Theodor Fumics: > Split the "Add Virtual Machine" menu into separate options > for Virtual Machines and Containers to reduce confusion. > This change follows feedback from a user in [1], who had difficulty > finding the container option. > > [1] > https://forum.prox

Re: [pve-devel] [PATCH pve-xtermjs v3] termproxy: allow to use unix sockets for auth requests

2024-07-25 Thread Thomas Lamprecht
On 24/07/2024 13:33, Dietmar Maurer wrote: > Remove ureq, because it does not support unix sockets. > > Signed-off-by: Dietmar Maurer > --- > > Changes sinve v2: > split out the command line help text change into patch: > [PATCH pve-xtermjs] termproxy: fix the command line help text > > Cha

Re: [pve-devel] applied: [PATCH pve-xtermjs] termproxy: fix the command line help text

2024-07-25 Thread Thomas Lamprecht
On 25/07/2024 10:58, Wolfgang Bumiller wrote: > applied, thanks > this was a good stop-gap but as it wasn't much work I followed this up with fixing the implementation. As while it's just a internal tool, it's still nicer to have it behave as all CLI tools: https://git.proxmox.com/?p=pve-xtermjs

Re: [pve-devel] [PATCH storage] volume import: assume target API version is at least 9

2024-07-25 Thread Thomas Lamprecht
For the record, we talked about this in person for a bit with the following outcome: - there was a bit of a misunderstanding w.r.t. my heavy exaggeration for the point's sake, I really did not mean that as accusation at all, but that's now talked out - it's a good point that the package that

[pve-devel] applied: [PATCH qemu-server] fix #5528: override cgroup methods to call systemd via dbus

2024-07-24 Thread Thomas Lamprecht
Am 09/07/2024 um 11:10 schrieb Wolfgang Bumiller: > Systemd reapplies its known values on reload, so we cannot simply call > into PVE::CGroup. Call systemd's SetUnitProperties method via dbus > instead. > > The hotplug and startup code also calculated different values, as one > operated within sys

[pve-devel] applied: [PATCH qemu-server v2 1/1] fix #5619: honor link_down setting when hot-plugging nic

2024-07-24 Thread Thomas Lamprecht
Am 23/07/2024 um 16:24 schrieb Stefan Hanreich: > When detaching and attaching the network device on update, the > link_down setting is not considered and the network device always gets > attached to the guest - even if link_down is set. > > Fixes: 3f14f206 ("nic online bridge/vlan change: link di

Re: [pve-devel] [PATCH installer v2 16/17] fix #5536: post-hook: add utility for sending notifications after auto-install

2024-07-24 Thread Thomas Lamprecht
Am 23/07/2024 um 16:57 schrieb Aaron Lauterer: > There are quite a few preparation changes in other sub-crates > (auto-installer, installer-common). > I've only gotten through them for now and haven't looked at the actual > post-hook crate stuff. > > Wouldn't it be nicer to split the preparation

Re: [pve-devel] [PATCH installer v2 11/17] auto-installer: tests: replace manual panic!() with assert_eq!()

2024-07-24 Thread Thomas Lamprecht
Am 23/07/2024 um 13:37 schrieb Christoph Heiss: > On Tue, Jul 23, 2024 at 01:04:06PM GMT, Aaron Lauterer wrote: >> Instead of hacking or own pretty print, we could maybe think about using >> https://crates.io/crates/pretty_assertions > > As discussed offline, I think that this is definitely the wa

Re: [pve-devel] applied: [PATCH manager] fix #5010: ceph: pool set only changed properties

2024-07-23 Thread Thomas Lamprecht
Am 23/07/2024 um 09:50 schrieb Aaron Lauterer: > > > On 2024-07-22 19:02, Thomas Lamprecht wrote: >> >> applied, thanks, one question still inline though. >> >> >>> + if (defined($current_properties->{$setting}) && $value eq >>&g

[pve-devel] partially-applied: [PATCH many v9 00/13] notifications: notification metadata matching improvements

2024-07-22 Thread Thomas Lamprecht
Am 08/07/2024 um 11:37 schrieb Lukas Wagner: > This patch series attempts to improve the user experience when creating > notification matchers. > > Some of the noteworthy changes: > - Allow setting a custom backup job ID, similar how we handle it for > sync/prune jobs in PBS (to allow recogniz

[pve-devel] applied: [PATCH qemu-server] fix #5574: api: fix permission check for 'spice' usb port

2024-07-22 Thread Thomas Lamprecht
Am 08/07/2024 um 13:56 schrieb Dominik Csapak: > With the last change in the permission check, I accidentally broke the > check for 'spice' host value, since in the if/elsif/else this will fall > through to the else case which was only intended for when neither 'host' > nor 'mapping' was set. > >

[pve-devel] applied: [PATCH manager v9 02/13] api: jobs: vzdump: pass job 'job-id' parameter

2024-07-22 Thread Thomas Lamprecht
Am 08/07/2024 um 11:38 schrieb Lukas Wagner: > This allows us to access the backup job id in the send_notification > function, where we can set it as metadata for the notification. > The 'job-id' parameter can only be used by 'root@pam' to prevent > abuse. This has the side effect that manually tri

[pve-devel] applied: [PATCH pve-guest-common v9 01/13] vzdump: common: allow 'job-id' as a parameter without being in schema

2024-07-22 Thread Thomas Lamprecht
Am 08/07/2024 um 11:38 schrieb Lukas Wagner: > 'job-id' is passed when a backup as started as a job and will be > passed to the notification system as matchable metadata. It > can be considered 'internal'. > > Signed-off-by: Lukas Wagner > Reviewed-by: Max Carrara > --- > src/PVE/VZDump/Common.

[pve-devel] applied: [PATCH common] fix #5529: cgroup: correctly handle change_cpu_quota without a quota

2024-07-22 Thread Thomas Lamprecht
Am 09/07/2024 um 11:09 schrieb Wolfgang Bumiller: > The function can be called with > - neither quota nor period > - only a period (quota will be 'max') > - both > > $quota was therefore defaulted to 'max' and the check for whether > values were provided should use $period instead of $quota. > Als

[pve-devel] applied: [PATCH storage] btrfs: log executed command on failures

2024-07-22 Thread Thomas Lamprecht
Am 09/07/2024 um 13:49 schrieb Maximiliano Sandoval: > Having the complete command printed out makes debuging easier. > > Signed-off-by: Maximiliano Sandoval > --- > src/PVE/Storage/BTRFSPlugin.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > applied, thanks! __

[pve-devel] applied-series: [PATCH proxmox-offline-mirror v2 1/2] build: use cargo wrapper

2024-07-22 Thread Thomas Lamprecht
Am 10/07/2024 um 13:57 schrieb Fabian Grünbichler: > for package builds to ensure all common flags are actually set. > > Signed-off-by: Fabian Grünbichler > --- > > Notes: > v2: symlink wrapper config in place > > Makefile | 9 +++-- > debian/rules | 11 --- > docs/Makef

[pve-devel] applied: [PATCH manager] fix #5010: ceph: pool set only changed properties

2024-07-22 Thread Thomas Lamprecht
Am 09/07/2024 um 13:41 schrieb Aaron Lauterer: > By only setting propterties that have changed, we can avoid potential > errors in the task. > > For example, if one configures the "nosizechange" property on a pool, to > prevent accidential size changes, the task will now only error if the > user i

[pve-devel] applied-series: [PATCH manager 0/2] fix #5570 ceph mds: allow custom MDS IDs from the UI

2024-07-22 Thread Thomas Lamprecht
Am 10/07/2024 um 14:42 schrieb Aaron Lauterer: > The ID for the MDS cannot start with a number [0]. The first patch adds > a check for this. > > The second patch is the actual fix, by reworking the edit window when > adding new MDS'. > > By allowing the users to set the name of the MDS directly,

[pve-devel] applied-series: [PATCH installer v2 0/6] auto-installer: add option for providing hashed root password

2024-07-22 Thread Thomas Lamprecht
Am 15/07/2024 um 09:56 schrieb Christoph Heiss: > This series adds a new answer option `global.root_password_hashed` > for the auto-installer, enabling administrators to specify the root > password of the new installation in a hashed format - as generated by > e.g. mkpasswd(1) - instead of plain-te

[pve-devel] applied: [PATCH pve-manager 2/2] sdn: ipam: fix editing custom mappings

2024-07-22 Thread Thomas Lamprecht
Am 17/07/2024 um 15:06 schrieb Stefan Hanreich: > Currently custom mappings cannot be edited, due to them having no VMID > value. The VMID parameter was always sent by the frontend to the > update call - even if it was empty - leading to validation failure on > the backend. Fix this by only sending

[pve-devel] applied: [PATCH qemu-server 1/2] config: net: avoid duplicate ipam entries on nic update

2024-07-22 Thread Thomas Lamprecht
Am 17/07/2024 um 15:06 schrieb Stefan Hanreich: > Updating the NIC of a VM when the following conditions were met: > * VM is turned off > * NIC is on a bridge that uses automatic dhcp > * Leave bridge unchanged > > led to duplicate IPAM entries for the same network device. > > This is due to the

[pve-devel] applied-series: [PATCH manager 1/2] www: utils: fix `maxcpu` validity check in render_hostcpu()

2024-07-22 Thread Thomas Lamprecht
Am 17/07/2024 um 14:49 schrieb Christoph Heiss: > Comparing with Proxmox.Utils.render_cpu() seems just a slight oversight > in the condition. Fix it by aligning it with how it is done in > Proxmox.Utils.render_cpu() for consistency. > > Signed-off-by: Christoph Heiss > --- > www/manager6/Utils.j

[pve-devel] applied-series: [PATCH manager 1/5] fix typos in comments

2024-07-22 Thread Thomas Lamprecht
Am 17/07/2024 um 14:16 schrieb Maximiliano Sandoval: > Signed-off-by: Maximiliano Sandoval > --- > PVE/API2/Nodes.pm | 2 +- > PVE/APLInfo.pm | 2 +- > PVE/CLI/pveceph.pm | 2 +- > PVE/Service/pvestatd.pm | 2 +- >

[pve-devel] applied: [PATCH proxmox-firewall 1/3] cargo: bump dependencies of proxmox-ve-config

2024-07-22 Thread Thomas Lamprecht
Am 03/07/2024 um 11:17 schrieb Stefan Hanreich: > Signed-off-by: Stefan Hanreich > --- > proxmox-ve-config/Cargo.toml | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > applied series with some merge conflict in the context addressed for the second patch and updated the dependencie

Re: [pve-devel] [PATCH network/container/qemu-server v2 0/3] drop unused `firewall` argument to {add, del}_bridge_fdb()

2024-07-22 Thread Thomas Lamprecht
Am 05/07/2023 um 16:38 schrieb Christoph Heiss: > While working on this code, I noticed that the `firewall` argument is > never used (nor even declared) [0] in both > PVE::Network::{add,del}_bridge_fdb(). > > Thus drop it everywhere and avoid needlessly passing around things which > are never used

[pve-devel] applied: [PATCH proxmox-firewall v3 1/1] service: flush firewall rules on force disable

2024-07-22 Thread Thomas Lamprecht
Am 17/07/2024 um 15:16 schrieb Stefan Hanreich: > When disabling the nftables firewall again, there is a race condition > where the nftables ruleset never gets flushed and persists after > disabling. > > The nftables firewall update loop does a noop when the force disable > file exists. It only fl

[pve-devel] partially-applied-series: [PATCH v2 pve-manager 00/10] Ceph Build Commit in UI

2024-07-22 Thread Thomas Lamprecht
Am 01/07/2024 um 16:10 schrieb Max Carrara: > Ceph Build Commit in UI - Version 2 > === > > Notable Changes since v1 > > > * Use camelCase instead of snake_case for new functions / variables > as per our style guide [0] (thanks Lukas!

Re: [pve-devel] [PATCH v2 pve-manager 06/10] ui: ceph: services: parse and display build commit

2024-07-22 Thread Thomas Lamprecht
Am 01/07/2024 um 16:10 schrieb Max Carrara: > This commit adds `PVE.Utils.parseCephBuildCommit`, which can be used > to get the full hash "eccf199d..." in parentheses from a string like > the following: > > ceph version 17.2.7 (eccf199d63457659c09677399928203b7903c888) quincy > (stable) > > Th

Re: [pve-devel] [pbs-devel] [PATCH manager v2 07/12] api: add routes for webhook notification endpoints

2024-07-22 Thread Thomas Lamprecht
just chiming in on the perl dereference style Am 22/07/2024 um 11:50 schrieb Max Carrara: + %$webhook_properties, >>> Would prefer `$webhook_properties->%*` here (postfix dereferencing) - >>> even though not explicitly stated in our style guide, we use that kind >>> of syntax for cal

[pve-devel] applied: [PATCH proxmox-i18n] es: update translations

2024-07-18 Thread Thomas Lamprecht
Am 18/07/2024 um 11:32 schrieb Maximiliano Sandoval: > Signed-off-by: Maximiliano Sandoval > --- > es.po | 98 +++ > 1 file changed, 38 insertions(+), 60 deletions(-) > > applied, thanks! ___ p

Re: [pve-devel] [RFC pve-storage 01/36] plugin: base: remove old fixme comments

2024-07-17 Thread Thomas Lamprecht
Am 17/07/2024 um 11:39 schrieb Max Carrara: > These have been around since 2012 - suffice to say they're not needed > anymore. That's really not a good argument though? Just because nobody checked those closely for a long time it does not mean that they became magically irrelevant. Look, it can b

[pve-devel] applied: [PATCH access-control] api: ACL update: fix handling of Permissions.Modify

2024-07-16 Thread Thomas Lamprecht
Am 11/07/2024 um 13:44 schrieb Fabian Grünbichler: > with 8.x, the scope of non-"Permissions.Modify"-based ACL update privileges > were reduced (so that users with for example, VM.Allocate on a VM could only > delegate their own privileges, but not arbitrary other ones). that additional > logic had

Re: [pve-devel] [PATCH installer 00/14] fix #5536: implement post-(auto-)installation notification mechanism

2024-07-16 Thread Thomas Lamprecht
Am 15/07/2024 um 16:31 schrieb Christoph Heiss: > With that in mind it definitely could come in handy. Or maybe a separate > object "disks"/"other-disks"/etc. entirely? So as not have to filter out > the (non-)bootdisks again on the receiving end. Could be fine too, albeit I'd slightly prefer a si

Re: [pve-devel] [PATCH manager] www: utils: fix inconsistency in host cpu usage display in search view

2024-07-16 Thread Thomas Lamprecht
Am 16/07/2024 um 11:31 schrieb Christoph Heiss: > Between the number of CPUs and the actual label, a space was missing - > resulting in an inconsistency vs. the "CPU usage" column. > > Also, fix a rather nonsensical check for `maxcpu` above - noticed that > while comparing the implementation to th

Re: [pve-devel] [PATCH proxmox-ve-rs 01/21] debian: add files for packaging

2024-07-16 Thread Thomas Lamprecht
Am 27/06/2024 um 12:41 schrieb Gabriel Goller: > On 26.06.2024 14:15, Stefan Hanreich wrote: >> Since we now have a standalone repository for Proxmox VE related >> crates, add the required files for packaging the crates contained in >> this repository. > > I know we don't really do this, but could

[pve-devel] applied-series: [PATCH installer v4 0/4] add check/rename for already-existing ZFS rpool

2024-07-16 Thread Thomas Lamprecht
Am 16/07/2024 um 10:18 schrieb Christoph Heiss: > Pretty straight forward overall, implements a check for an existing > `rpool` on the system and ask the user whether they would like to rename > it, much in the same way as it works for VGs already. > > Without this, the installer would silently cr

Re: [pve-devel] [PATCH installer 00/14] fix #5536: implement post-(auto-)installation notification mechanism

2024-07-15 Thread Thomas Lamprecht
Am 10/07/2024 um 15:27 schrieb Christoph Heiss: > This implements a mechanism for post-installation "notifications" via a > POST request [0] when using the auto-installer. > > It's implemented as a separate, small utility to facilitate separation > of concerns and make the information gathering ea

[pve-devel] applied-series: [PATCH kernel 1/2] add fix for CIFS client memory leak

2024-07-12 Thread Thomas Lamprecht
On 10/07/2024 13:37, Fiona Ebner wrote: > As reported in the community forum [0], there currently is a memory > leak in the CIFS client code. Reproduced by running a backup with CIFS > target storage: > >> while true; do vzdump 101 --storage cifs --prune-backups keep-last=1; echo 3 >> > /proc/sys

Re: [pve-devel] [PATCH guest-common/qemu-server/manager/docs v4] implement experimental vgpu live migration

2024-07-05 Thread Thomas Lamprecht
Am 06/06/2024 um 11:21 schrieb Dominik Csapak: > guest-common 1-4; qemu-server 1-6; pve-manager 1,2 > are preparations/cleanups mostly and could be applied independently Well, yes and no, they have some interdependency between themselves, so not full independent. It would be great if you would no

[pve-devel] applied: [PATCH qemu-server v4 04/12] stop cleanup: remove unnecessary tpmstate cleanup

2024-07-05 Thread Thomas Lamprecht
Am 06/06/2024 um 11:22 schrieb Dominik Csapak: > tpmstate0 is already included in `get_vm_volumes`, and our only storage > plugin that has unmap_volume implemented is the RBDPlugin, where we call > unmap in `deactivate_volume`. So it's already ummapped by the > `deactivate_volumes` calls above. >

Re: [pve-devel] [PATCH guest-common v4 4/6] mapping: pci: check the mdev configuration on the device too

2024-07-05 Thread Thomas Lamprecht
Am 06/06/2024 um 11:21 schrieb Dominik Csapak: > but that lives int he 'global' part of the mapping config, not in a > specific mapping. To check that, add it to the relevant hashes here. > > Signed-off-by: Dominik Csapak > --- > changes from v3: > * leave $cfg optional > > src/PVE/Mapping/PCI.

[pve-devel] applied: [PATCH guest-common v4 3/6] mapping: pci: make sure all desired properties are checked

2024-07-05 Thread Thomas Lamprecht
Am 06/06/2024 um 11:21 schrieb Dominik Csapak: > by placing all expected properties from the hardware into an 'expected_props' > and those fromt he config into 'configured_props' > > the names makes clearer what's what, and we can easily extend it, even > if the data does not come from the mapping

[pve-devel] applied: [PATCH guest-common v4 1/6] mapping: pci: assert_valid: rename cfg to mapping

2024-07-05 Thread Thomas Lamprecht
Am 06/06/2024 um 11:21 schrieb Dominik Csapak: > to make it clearer what it actually is. Also we want to add the > 'real' config as parameter too, and so it's less confusing. > > Signed-off-by: Dominik Csapak > --- > split out in v4 > src/PVE/Mapping/PCI.pm | 12 ++-- > 1 file changed, 6

[pve-devel] applied: [PATCH guest-common v4 2/6] mapping: pci: assert_valid: reword error messages

2024-07-05 Thread Thomas Lamprecht
Am 06/06/2024 um 11:21 schrieb Dominik Csapak: > makes them a bit clearer > > Signed-off-by: Dominik Csapak > --- > split out in v4 > src/PVE/Mapping/PCI.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > applied, thanks! ___ pve-de

[pve-devel] applied: [PATCH installer] auto-installer: fix answer-request charset

2024-07-05 Thread Thomas Lamprecht
Am 26/04/2024 um 10:12 schrieb Fabian Grünbichler: > 'utf-' is a typo, and can trip up some servers that do strict > checking/matching. > > Signed-off-by: Fabian Grünbichler > --- > > Notes: > see > https://forum.proxmox.com/threads/invalid-charset-on-automated-install-answer-http-fetch.145

[pve-devel] applied: [PATCH ifupdown2] patch : addons: vxlan: fix VNI filter on single VXLAN device

2024-07-05 Thread Thomas Lamprecht
Am 19/09/2023 um 16:10 schrieb Alexandre Derumier: > Requested by a customer using setup with single vxlan devices. > --- > debian/patches/series | 3 ++- > .../upstream/0001-vxlan-fix-vni-filter.patch | 27 +++ > 2 files changed, 29 insertions(+), 1 delet

Re: [pve-devel] [PATCH storage] volume import: assume target API version is at least 9

2024-07-05 Thread Thomas Lamprecht
Am 04/07/2024 um 14:11 schrieb Fiona Ebner: > Yes, next time we introduce an apiinfo call, we can just have it fail > hard upon errors. Oh, and just to avoid potential future error potential here: For a new topic-specific API version call that might not work, as the fallback and (lacking) error ha

Re: [pve-devel] [PATCH storage] volume import: assume target API version is at least 9

2024-07-04 Thread Thomas Lamprecht
Am 04/07/2024 um 14:11 schrieb Fiona Ebner: > There is no apiinfo call required anymore. No code is the cleanest kind Yeah, by the assumption you self choose to use and that I question, so not really a useful argument. In practice, users can upgrade a from one major release to the next one, nothi

Re: [pve-devel] [PATCH qemu-server v4 05/12] vm_stop_cleanup: add noerr parameter

2024-07-04 Thread Thomas Lamprecht
either way) Looks OK to me otherwise. > Signed-off-by: Dominik Csapak With commit meta stuff addressed consider this: Reviewed-by: Thomas Lamprecht ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH storage] volume import: assume target API version is at least 9

2024-07-04 Thread Thomas Lamprecht
Am 04/07/2024 um 12:28 schrieb Fiona Ebner: > Am 04.07.24 um 11:52 schrieb Thomas Lamprecht: >> Am 10/06/2024 um 11:04 schrieb Fiona Ebner: >>> The storage API version has been bumped to at least 9 since >>> libpve-storage = 7.0-4. If the source node is on Proxmox VE 8,

Re: [pve-devel] [PATCH qemu-server v4 01/12] usb: mapping: move implementation of find_on_current_node here

2024-07-04 Thread Thomas Lamprecht
Am 06/06/2024 um 11:22 schrieb Dominik Csapak: > this was the only user, and it's easy enough > > Signed-off-by: Dominik Csapak > --- > no changes > PVE/QemuServer/USB.pm | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/PVE/QemuServer/USB.pm b/PVE/QemuServer/USB.pm >

Re: [pve-devel] [PATCH storage v2] fix-4272: btrfs: add rename feature

2024-07-04 Thread Thomas Lamprecht
CC'ing pve-devel again. Am 04/07/2024 um 11:42 schrieb Maximiliano Sandoval: > Thomas Lamprecht writes: >> Am 03/07/2024 um 14:41 schrieb Maximiliano Sandoval: >>> Adds the ability to change the owner of a guest image. >>> >>> Btrfs does not need specia

Re: [pve-devel] [PATCH storage] volume import: assume target API version is at least 9

2024-07-04 Thread Thomas Lamprecht
Am 10/06/2024 um 11:04 schrieb Fiona Ebner: > The storage API version has been bumped to at least 9 since > libpve-storage = 7.0-4. If the source node is on Proxmox VE 8, where > this change will come in, then the target node can be assumed to be > running either Proxmox VE 8 or, during upgrade, th

Re: [pve-devel] [PATCH storage v2] fix-4272: btrfs: add rename feature

2024-07-04 Thread Thomas Lamprecht
Am 03/07/2024 um 14:41 schrieb Maximiliano Sandoval: > Adds the ability to change the owner of a guest image. > > Btrfs does not need special commands to rename a subvolume and this can > be achieved the same as in Storage/plugin.pm's rename_volume taking > special care of how the directory struct

[pve-devel] applied: [PATCH ifupdown2 v2 1/1] fix #5197: do not run scripts ending with .dpkg-{old, new, tmp, dist}

2024-07-04 Thread Thomas Lamprecht
Am 03/07/2024 um 14:56 schrieb Stefan Hanreich: > This can lead to issue when upgrading from ifupdown to ifupdown2. The > particular issue this fixes occurs in the following scenario: > > * Suppose there is a legacy Debian host with ifupdown and ifenslave > installed that has a bond configured i

  1   2   3   4   5   6   7   8   9   10   >