Re: [pve-devel] [PATCH proxmox-ve-rs 01/11] add crate with common network types

2025-03-03 Thread Stefan Hanreich
Maybe we should think about internally representing the Network Entity Title and its parts as bytes rather than strings? So [u8; n]? Since in practice it's exactly that. I think this would simplify a lot of the methods here, and obsolete some stuff like e.g. length validation. I've noted some parts

Re: [pve-devel] [PATCH proxmox-ve-rs 02/11] add proxmox-frr crate with frr types

2025-03-03 Thread Stefan Hanreich
This uses stuff from a later patch, doesn't it? Shouldn't the order of patches 2 and 3 be flipped? On 2/14/25 14:39, Gabriel Goller wrote: > This crate contains types that represent the frr config. For example it > contains a `Router` and `Interface` struct. This Frr-Representation can > then be c

Re: [pve-devel] [PATCH storage 2/6] btrfs: fix volume size info for subvolumes in scalar context

2025-03-03 Thread Fiona Ebner
Am 03.03.25 um 08:31 schrieb Wolfgang Bumiller: > On Fri, Feb 28, 2025 at 03:50:18PM +0100, Fiona Ebner wrote: >> Return the same size as in list context. See also commit "plugin: file >> size info: be consistent about size of directory subvol". >> >> Fixes cloning containers with unsized subvolume

[pve-devel] [PATCH-SERIES v2 storage 0/5] unsized subvol regression fix and improvements

2025-03-03 Thread Fiona Ebner
Changes in v2: * comment out dead code in BTRFS plugin * improve commit messages regarding clone * squash patches 5/6 and 6/6 from v1 In list context, the file_size_info() function in Plugin.pm and the volume_size_info() function in BTRFSPlugin.pm would return 0 for the size, but in scalar context

[pve-devel] [PATCH v2 storage 3/5] plugin: volume export formats: avoid superfluous file_size_info() call

2025-03-03 Thread Fiona Ebner
The result from the file_size_info() call is not used by volume_export_formats() and most failure scenarios of file_size_info() lead to an undefined return value rather than a failure. This includes the case for a non-existent file. The default path() implementation doesn't do any existence check e

[pve-devel] [PATCH v2 storage 2/5] btrfs: fix volume size info for subvolumes in scalar context

2025-03-03 Thread Fiona Ebner
Return the same size as in list context. See also commit "plugin: file size info: be consistent about size of directory subvol". Fixes cloning containers with unsized subvolumes on BTRFS. Before the change, this would fail with "mkfs.ext4: Device size reported to be zero.". That is because with no

Re: [pve-devel] [PATCH-SERIES storage 0/6] unsized subvol regression fix and improvements

2025-03-03 Thread Fiona Ebner
Superseded by v2: https://lore.proxmox.com/pve-devel/20250303092445.13873-1-f.eb...@proxmox.com/T/#maf24450cef1ab5c66467e3ceb5c4c073fee69fa8 Am 28.02.25 um 15:50 schrieb Fiona Ebner: > In list context, the file_size_info() function in Plugin.pm and the > volume_size_info() function in BTRFSPlugin.

[pve-devel] [PATCH v2 storage 4/5] api: volume info: do not fail for zero-sized subvolumes

2025-03-03 Thread Fiona Ebner
The special case of size being zero is supported if the volume is of format 'subvol' is a special use case supported in Proxmox VE. Signed-off-by: Fiona Ebner --- src/PVE/API2/Storage/Content.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PVE/API2/Storage/Content.p

[pve-devel] [PATCH v2 storage 1/5] plugin: file size info: be consistent about size of directory subvol

2025-03-03 Thread Fiona Ebner
In list context, the file_size_info() function in Plugin.pm would return 0 for the size of a subvol directory, but in scalar context 1. As reported in the community forum [0], the change in commit e50dde0 ("volume export: rely on storage plugin's format"), changing the caller in volume_export() to

[pve-devel] applied: [PATCH pve_flutter_frontend] Updated Gradle version and some build dependencies.

2025-03-03 Thread Thomas Lamprecht
Am 20.02.25 um 15:37 schrieb Alexander Abraham: > The Flutter frontend of PVE was not compilable for Android > with the versions of different tools set in the project files. > The versions of the tools causing this problem was updated > and the app compiles for Android. > > Signed-off-by: Alexande

Re: [pve-devel] [PATCH storage 2/6] btrfs: fix volume size info for subvolumes in scalar context

2025-03-03 Thread Fiona Ebner
Am 03.03.25 um 10:03 schrieb Fiona Ebner: > Am 03.03.25 um 08:31 schrieb Wolfgang Bumiller: >> On Fri, Feb 28, 2025 at 03:50:18PM +0100, Fiona Ebner wrote: >>> Return the same size as in list context. See also commit "plugin: file >>> size info: be consistent about size of directory subvol". >>> >>

Re: [pve-devel] [PATCH pve_flutter_frontend] Updated Gradle version and some build dependencies.

2025-03-03 Thread Alexander Abraham
Hi Shannon, sorry I only just saw this now. (Keeping up with all the emails coming in is something I still need to get on top of.) At the time this was an oversight on my part. Apologies for this. I was trying to get the build working and used a suggestion I saw in an old forum post of someone

[pve-devel] applied: [PATCH ha-manager] postinst: check whether the system is managed by systemd

2025-03-03 Thread Thomas Lamprecht
Am 28.02.25 um 13:57 schrieb Maximiliano Sandoval: > ..before running systemctl. Allows for building packages in containers > not managed by systemd. > > Signed-off-by: Maximiliano Sandoval > --- > debian/pve-ha-manager.postinst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > appli

Re: [pve-devel] [PATCH pve_flutter_frontend] Updated Gradle version and some build dependencies.

2025-03-03 Thread Thomas Lamprecht
Am 03.03.25 um 10:38 schrieb Alexander Abraham: > Keeping up with all the emails coming in is something I still need to get on > top of. I'd recommend setting up mail filter to move all mails that stem from a mailing list, i.e. have the List-Id header set, to a dedicated folder for that list. Mo

Re: [pve-devel] [PATCH storage 5/6] btrfs: die early for broken subvolume resize

2025-03-03 Thread Wolfgang Bumiller
On Fri, Feb 28, 2025 at 03:50:21PM +0100, Fiona Ebner wrote: > In the BTRFS plugin, resize_volume() for a subovlume currently fails > with "failed to get btrfs subvolume ID from: ". This is because the > btrfs 'subvol show' command is invoked with '-q', so there is no > output. Curious. This must

Re: [pve-devel] [PATCH storage 6/6] btrfs: note that btrfs_get_subvol_id() function is broken

2025-03-03 Thread Wolfgang Bumiller
On Fri, Feb 28, 2025 at 03:50:22PM +0100, Fiona Ebner wrote: > The btrfs_get_subvol_id() function is broken, because the btrfs > 'subvol show' command is invoked with '-q', so there is no output. > > The function currently has no reachable caller. > > Signed-off-by: Fiona Ebner > --- > src/PVE/

Re: [pve-devel] [PATCH pve_flutter_frontend] Updated Gradle version and some build dependencies.

2025-03-03 Thread Alexander Abraham
Hi, thank you for explaining this to me. I will make sure I set this up. I did read the link that Shannon sent and of course, understood the difference upon reading it. I wasn't quite sure which to use as the poster used the kts variety and we are using the Groovy variety. Now I know and I'm cl

[pve-devel] applied: [PATCH qemu-server] hotplug pending: disallow deleting tpmstate and efidisk from configuration

2025-03-03 Thread Fabian Grünbichler
thanks! On February 27, 2025 3:30 pm, Fiona Ebner wrote: > When the VM is running, after deleting the tpmstate from the > configuration, the TPM drive will still be active, because it is used > by swtpm and QEMU will still have the TPM socket. > > Also, a subsequent live migration will fail, beca

[pve-devel] [PATCH v2 storage 5/5] btrfs: die early for broken subvolume resize

2025-03-03 Thread Fiona Ebner
In the BTRFS plugin, resize_volume() for a subovlume currently fails with "failed to get btrfs subvolume ID from: ". This is because the btrfs 'subvol show' command is invoked with '-q', so there is no output. As btrfs quotas are currently not implemented, die early with a clean error instead and

[pve-devel] [PATCH] systemd: disconnect signals

2025-03-03 Thread Maximiliano Sandoval
Dbus has a limit of 512 connections by default and signals should be disconnected as soon as they are not needed anymore. This should alleviate https://bugzilla.proxmox.com/show_bug.cgi?id=5876. Signed-off-by: Maximiliano Sandoval --- src/PVE/Systemd.pm | 34 --

Re: [pve-devel] [RFC cluster/manager/network/proxmox{-ve-rs, -perl-rs} 00/11] Add SDN Fabrics

2025-03-03 Thread Stefan Hanreich
Could you please rebase this (patch 3 in particular doesn't apply) and make sure everything builds debian packages properly (in ve-rs via build.sh)? I'll continue tomorrow with the review! On 2/14/25 14:39, Gabriel Goller wrote: > This series allows the user to add fabrics such as OpenFabric and