Re: [pve-devel] [PATCH acme v2 1/5] fix #4497: add support for external account bindings

2023-10-27 Thread Thomas Lamprecht
Am 27/10/2023 um 08:58 schrieb Thomas Lamprecht: > Am 25/10/2023 um 15:07 schrieb Folke Gleumes: >> Changes v1 -> v2: >> Switched from including the eab credentials in the info hash, >> to passing them in their own variable. This still unfortunately still >> breaks the api, but doesn't potentially

Re: [pve-devel] [WIP v2 cluster/network/manager/qemu-server/container 00/10] Add support for DHCP servers to SDN

2023-10-27 Thread Thomas Lamprecht
Am 23/10/2023 um 14:40 schrieb Stefan Lendl: > I am currently working on the SDN feature. This is an initial review of > the patch series and I am trying to make a strong case against ephemeral > DHCP IP reservation. Stefan Hanreich's reply to the cover letter already mentions upserts, those will

Re: [pve-devel] [PATCH installer v2 1/6] fix #4829: install: add new ZFS `arc_max` setup option

2023-10-27 Thread Christoph Heiss
On Wed, Oct 25, 2023 at 07:09:00PM +0200, Thomas Lamprecht wrote: > > Am 25/10/2023 um 10:28 schrieb Christoph Heiss: > > On Tue, Oct 24, 2023 at 08:59:36AM -0300, Gilberto Ferreira via pve-devel > > wrote: > > > > Currently, this isn't planned, although - since that setting is exposed > > afte

Re: [pve-devel] [PATCH v4 qemu-server 2/2] remote-migration: add target-cpu && target-reboot params

2023-10-27 Thread Fiona Ebner
Am 25.10.23 um 18:01 schrieb DERUMIER, Alexandre: >>> Unused disks can just be migrated >>> offline via storage_migrate(), or?  > > currently unused disk can't be migrate through the http tunnel for > remote-migration > > 2023-10-25 17:51:38 ERROR: error - tunnel command > '{"format":"raw","migra

Re: [pve-devel] [PATCH 01/12] add proxmox-installer-common crate

2023-10-27 Thread Christoph Heiss
The .deb fails to build with this patch applied, `proxmox-installer-common/` must also be copied to the build directory (see `$(BUILDIR)` target in the Makefile). On Wed, Oct 25, 2023 at 06:00:00PM +0200, Aaron Lauterer wrote: > > It will be used for code shared among the different crates in the

Re: [pve-devel] [PATCH 12/12] tui: remove unused read_json function

2023-10-27 Thread Christoph Heiss
Could be squased into the previous patch IMO if you do send a v2, but not a blocker either for me if not. In any case: Reviewed-by: Christoph Heiss On Wed, Oct 25, 2023 at 06:00:11PM +0200, Aaron Lauterer wrote: > > Signed-off-by: Aaron Lauterer > --- > proxmox-tui-installer/src/setup.rs |

Re: [pve-devel] [PATCH 02/12] common: copy common code from tui-installer

2023-10-27 Thread Christoph Heiss
Simple code move/copy, so LGTM. Reviewed-by: Christoph Heiss On Wed, Oct 25, 2023 at 06:00:01PM +0200, Aaron Lauterer wrote: > > Copy code that is common to its own crate. > > Signed-off-by: Aaron Lauterer > --- > proxmox-installer-common/Cargo.toml | 2 + > proxmox-installer-commo

[pve-devel] [RFC SDN DHCP] Add and Remove DHCP mappings on vNIC add/remove

2023-10-27 Thread Stefan Lendl
Date: Fri, 27 Oct 2023 13:00:49 +0200 >From 96fee0866727a1188b1debd805c625c598816b98 Mon Sep 17 00:00:00 2001 This patch series defines IPs, once allocated by the IPAM as persistant until the vNIC is removed from the VM or the VM is destroyed. The dnsmasq ethers file is a pure product of the IPAM

[pve-devel] [RFC SDN DHCP] Add and Remove DHCP mappings on vNIC add/remove

2023-10-27 Thread Stefan Lendl
Date: Fri, 27 Oct 2023 13:00:49 +0200 >From 96fee0866727a1188b1debd805c625c598816b98 Mon Sep 17 00:00:00 2001 This patch series defines IPs, once allocated by the IPAM as persistant until the vNIC is removed from the VM or the VM is destroyed. The dnsmasq ethers file is a pure product of the IPAM

[pve-devel] [RFC pve-network 1/3] dhcp add ip returns IP if already present for MAC

2023-10-27 Thread Stefan Lendl
Signed-off-by: Stefan Lendl --- src/PVE/Network/SDN/Dhcp/Dnsmasq.pm| 23 +++ src/PVE/Network/SDN/Ipams/PVEPlugin.pm | 16 2 files changed, 39 insertions(+) diff --git a/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm b/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm index af109

[pve-devel] [RFC pve-network 2/3] always generate dnsmasq ethers file

2023-10-27 Thread Stefan Lendl
Makes dnsmasq stateless and can be generated from the IPAM. On dhcp_add_ip always generate the entire ethers file. Signed-off-by: Stefan Lendl --- src/PVE/Network/SDN/Dhcp.pm | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/PVE/Network/SDN/Dhcp.pm b/src/PVE/Network/

[pve-devel] [RFC pve-network] do not remove DHCP mapping on stop

2023-10-27 Thread Stefan Lendl
Signed-off-by: Stefan Lendl --- src/PVE/LXC.pm| 8 src/lxc-pve-poststop-hook | 1 - 2 files changed, 9 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index bd8eb63..a7de9b8 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -916,14 +916,6 @@ sub vm_stop_cleanup {

[pve-devel] [RFC pve-network 4/5] do not remove DHCP mapping on VM stop

2023-10-27 Thread Stefan Lendl
Signed-off-by: Stefan Lendl --- PVE/QemuServer.pm | 2 -- vm-network-scripts/pve-bridgedown | 4 2 files changed, 6 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 6c1e463..710259b 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -6143,8 +6143,

[pve-devel] [RFC pve-network 3/3] touch the ethers file when creating the dnsmasq config

2023-10-27 Thread Stefan Lendl
removes an error from journal when newly DHCP server is configured Signed-off-by: Stefan Lendl --- src/PVE/Network/SDN/Dhcp/Dnsmasq.pm | 5 + 1 file changed, 5 insertions(+) diff --git a/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm b/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm index 6f8b1c4..39e4cce 100644

[pve-devel] [RFC pve-network 5/5] DHCP mappings on vNIC add/remove

2023-10-27 Thread Stefan Lendl
add DHCP mapping on vNIC add/update and VM clone (new mac) remove DHCP mapping on vNIC delete and VM destroy Signed-off-by: Stefan Lendl --- PVE/API2/Qemu.pm | 25 + PVE/QemuServer.pm | 2 ++ 2 files changed, 27 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qe

Re: [pve-devel] [PATCH v5 storage 1/1] fix #254: iscsi: add support for multipath iscsi targets

2023-10-27 Thread Yuri Konotopov via pve-devel
--- Begin Message --- 25.10.2023 17:45, Dominik Csapak пишет: One nit inline, but that could be fixed up when applying too probably? Hi, Dominik! Thanks for review! Should I send v6 with the fix for hash? -- Best regards, Yuri Konotopov --- End Message --- _

[pve-devel] [RFC SDN DHCP] Add and Remove DHCP mappings on vNIC add/remove

2023-10-27 Thread Stefan Lendl
Sorry, Sending this again because I noticed that I messed up the subject prefixes for the patches. This patch series defines IPs, once allocated by the IPAM as persistant until the vNIC is removed from the VM or the VM is destroyed. The dnsmasq ethers file is a pure product of the IPAM database

[pve-devel] [RFC pve-network 2/6] always generate dnsmasq ethers file

2023-10-27 Thread Stefan Lendl
Makes dnsmasq stateless and can be generated from the IPAM. On dhcp_add_ip always generate the entire ethers file. Signed-off-by: Stefan Lendl --- src/PVE/Network/SDN/Dhcp.pm | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/PVE/Network/SDN/Dhcp.pm b/src/PVE/Network/

[pve-devel] [RFC pve-network 3/6] touch the ethers file when creating the dnsmasq config

2023-10-27 Thread Stefan Lendl
removes an error from journal when newly DHCP server is configured Signed-off-by: Stefan Lendl --- src/PVE/Network/SDN/Dhcp/Dnsmasq.pm | 5 + 1 file changed, 5 insertions(+) diff --git a/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm b/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm index 6f8b1c4..39e4cce 100644

[pve-devel] [RFC qemu-server 6/6] DHCP mappings on vNIC add/remove

2023-10-27 Thread Stefan Lendl
add DHCP mapping on vNIC add/update and VM clone (new mac) remove DHCP mapping on vNIC delete and VM destroy Signed-off-by: Stefan Lendl --- PVE/API2/Qemu.pm | 25 + PVE/QemuServer.pm | 2 ++ 2 files changed, 27 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qe

[pve-devel] [RFC pve-container 4/6] do not remove DHCP mapping on stop

2023-10-27 Thread Stefan Lendl
Signed-off-by: Stefan Lendl --- src/PVE/LXC.pm| 8 src/lxc-pve-poststop-hook | 1 - 2 files changed, 9 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index bd8eb63..a7de9b8 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -916,14 +916,6 @@ sub vm_stop_cleanup {

[pve-devel] [RFC pve-network 1/6] dhcp add ip returns IP if already present for MAC

2023-10-27 Thread Stefan Lendl
Signed-off-by: Stefan Lendl --- src/PVE/Network/SDN/Dhcp/Dnsmasq.pm| 23 +++ src/PVE/Network/SDN/Ipams/PVEPlugin.pm | 16 2 files changed, 39 insertions(+) diff --git a/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm b/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm index af109

[pve-devel] [RFC qemu-server 5/6] do not remove DHCP mapping on VM stop

2023-10-27 Thread Stefan Lendl
Signed-off-by: Stefan Lendl --- PVE/QemuServer.pm | 2 -- vm-network-scripts/pve-bridgedown | 4 2 files changed, 6 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 6c1e463..710259b 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -6143,8 +6143,

Re: [pve-devel] [PATCH 00/12] installer: add crate for common code

2023-10-27 Thread Christoph Heiss
Had a lot of in-person discussions with Aaron over the last few weeks over this. There are no real functional changes here that would impact users, merely a code move. Each inidivdual patch (except #1, see my answer on that) builds cleanly on top of current master. The one dependency (see below)

[pve-devel] [PATCH installer] buildsys: copy over `proxmox-installer-common` crate to build directory

2023-10-27 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 111fe4b..e792e0e 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,7 @@ $(BUILDDIR): proxinstall \ proxmox-low-level-installer \ proxmox-tui-inst

[pve-devel] applied: [PATCH v5 storage 1/1] fix #254: iscsi: add support for multipath iscsi targets

2023-10-27 Thread Thomas Lamprecht
Am 23/10/2023 um 19:45 schrieb Yuri Konotopov: > With this patch Proxmox now tries to login to all discovered portals in > case some of them are not logged yet. > In case of multipath configuration when initially configured portal is > missing for some reason Proxmox don't lose iscsi storage now an

Re: [pve-devel] [WIP v2 pve-network 06/10] ipam: Add helper methods for DHCP to PVE IPAM

2023-10-27 Thread Stefan Lendl
Stefan Hanreich writes: > Those methods are used by the DHCP plugins to attain the next free > IP address for a given DHCP range, as well as delete all entries with > a certain MAC address. > > Signed-off-by: Stefan Hanreich > --- > src/PVE/Network/SDN/Ipams/PVEPlugin.pm | 64 ++

Re: [pve-devel] [RFC SDN DHCP] Add and Remove DHCP mappings on vNIC add/remove

2023-10-27 Thread Thomas Lamprecht
Am 27/10/2023 um 13:29 schrieb Stefan Lendl: > Sorry, Sending this again because I noticed that I messed up the subject > prefixes for the patches. I'd also prefer having such series as separate thread, not in reply to another (already big) series.. Also, if I didn't overlook something, you nowhe

[pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge

2023-10-27 Thread Alexandre Derumier
Do it on vnet update instead throwing a warning at config generation. Signed-off-by: Alexandre Derumier --- src/PVE/Network/SDN/Zones/EvpnPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Network/SDN/Zones/EvpnPlugin.pm b/src/PVE/Network/SDN/Zones/EvpnPlugin.

Re: [pve-devel] [RFC SDN DHCP] Add and Remove DHCP mappings on vNIC add/remove

2023-10-27 Thread Stefan Lendl
It is on top of Stefan Hanreich's patch series therefore I replied here as I consider it a continuation of his efforts. Thomas Lamprecht writes: > Am 27/10/2023 um 13:29 schrieb Stefan Lendl: >> Sorry, Sending this again because I noticed that I messed up the subject >> prefixes for the patche

Re: [pve-devel] [RFC SDN DHCP] Add and Remove DHCP mappings on vNIC add/remove

2023-10-27 Thread Thomas Lamprecht
Am 27/10/2023 um 13:52 schrieb Thomas Lamprecht: > Am 27/10/2023 um 13:29 schrieb Stefan Lendl: >> Sorry, Sending this again because I noticed that I messed up the subject >> prefixes for the patches. > > I'd also prefer having such series as separate thread, not in reply to another > (already big

Re: [pve-devel] [RFC SDN DHCP] Add and Remove DHCP mappings on vNIC add/remove

2023-10-27 Thread Thomas Lamprecht
Am 27/10/2023 um 13:54 schrieb Stefan Lendl: > It is on top of Stefan Hanreich's patch series therefore I replied here > as I consider it a continuation of his efforts. Please state that the next time. Also, please avoid top posting on the mailing list and trim your replies! https://git-send-ema

Re: [pve-devel] [WIP v2 cluster/network/manager/qemu-server/container 00/10] Add support for DHCP servers to SDN

2023-10-27 Thread Stefan Lendl
Thomas Lamprecht writes: > Am 23/10/2023 um 14:40 schrieb Stefan Lendl: >> I am currently working on the SDN feature. This is an initial review of >> the patch series and I am trying to make a strong case against ephemeral >> DHCP IP reservation. > > Stefan Hanreich's reply to the cover letter a

Re: [pve-devel] [WIP v2 cluster/network/manager/qemu-server/container 00/10] Add support for DHCP servers to SDN

2023-10-27 Thread DERUMIER, Alexandre
> > Furthermore, every interaction with the IPAM requires a cluster-wide > lock on the IPAM. Having a central cluster-wide lock on every VM > start/stop/migrate will significantly limit parallel operations.  > Event > starting two VMs in parallel will be limited by this central lock. At > boot try

Re: [pve-devel] [WIP v2 cluster/network/manager/qemu-server/container 00/10] Add support for DHCP servers to SDN

2023-10-27 Thread Stefan Lendl
Hi Alexandre, I am proposing a slightly different view. I think it's better to keep all IPs, managed by the IPAM in the IPAM and the VM only configures as DHCP. I would implement the 4 mentioned events (vNIC create, destroy, start, stop) in the SDN module and limit interactions between VM config

Re: [pve-devel] [WIP v2 cluster/network/manager/qemu-server/container 00/10] Add support for DHCP servers to SDN

2023-10-27 Thread DERUMIER, Alexandre
Message initial De: Stefan Lendl À: "DERUMIER, Alexandre" Cc: pve-devel@lists.proxmox.com Objet: Re: [pve-devel] [WIP v2 cluster/network/manager/qemu- server/container 00/10] Add support for DHCP servers to SDN Date: 27/10/2023 14:53:25 Hi Alexandre, I am proposing a slightly

[pve-devel] applied: [PATCH docs] ha: Explicitly mention that migrations only affect HA guests

2023-10-27 Thread Thomas Lamprecht
Am 25/10/2023 um 11:55 schrieb Maximiliano Sandoval R: > Signed-off-by: Maximiliano Sandoval R > --- > ha-manager.adoc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > applied, thanks! But as talked off-list, I made a follow-up that reworked that whole paragraph, it had a few small