From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 461A7986D1 for ; Wed, 15 Nov 2023 15:22:21 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2C5957734 for ; Wed, 15 Nov 2023 15:22:21 +0100 (CET) Received: from bastionodiso.odiso.net (bastionodiso.odiso.net [185.151.191.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 15 Nov 2023 15:22:16 +0100 (CET) Received: from kvmformation3.odiso.net (formationkvm3.odiso.net [10.3.94.12]) by bastionodiso.odiso.net (Postfix) with ESMTP id DA84180FF; Wed, 15 Nov 2023 15:22:09 +0100 (CET) Received: by kvmformation3.odiso.net (Postfix, from userid 0) id B849B187ECC; Wed, 15 Nov 2023 15:22:09 +0100 (CET) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Wed, 15 Nov 2023 15:21:53 +0100 Message-Id: <20231115142208.563587-1-aderumier@odiso.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.223 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy HEADER_FROM_DIFFERENT_DOMAINS 0.25 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods KAM_NUMSUBJECT 0.5 Subject ends in numbers excluding current years SPF_NONE 0.001 SPF: sender does not publish an SPF Record T_SCC_BODY_TEXT_LINE -0.01 - T_SPF_HELO_TEMPERROR 0.01 SPF: test of HELO record failed (temperror) URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [vnets.pm, qemu.pm, dhcp.pm, config.pm, qemuserver.pm, ipam.pm, lxc.pm, plugin.pm, dnsmasq.pm] Subject: [pve-devel] [PATCH series pve-network/qemu-server/pve-container] DHCP WIP3 X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2023 14:22:21 -0000 pve-network : apply on last stefan DHCP WIP3 serie qemu-server : remork of my last patch series , applied to current master pve-container: apply to master changelog: - pve-network: the dhcp reservation removal is now done on dhcp_mapping_add. - qemu-server: rebase with dhcp_removal + some cleanup BTW, I have seen some case where dnsmasq attribute some dynamic leases in the range (maybe it was a bug/race where client was asking to dhcp serer before the reversation was done). But if a dynamic lease exist for an ip, the static reservation is not working, and a new dynamic lease is sent instead. So, I really think that we should disable dynamic leases in dnsmasq (not sure exactly how) pve-network: Alexandre Derumier (3): fix subnets && netbox ipam tests add add_dhcp_mapping dhcp: delete remove_mapping src/PVE/API2/Network/SDN/Ipam.pm | 1 - src/PVE/Network/SDN/Dhcp.pm | 22 ++---- src/PVE/Network/SDN/Dhcp/Dnsmasq.pm | 74 +++++++++---------- src/PVE/Network/SDN/Dhcp/Plugin.pm | 7 +- src/PVE/Network/SDN/Vnets.pm | 15 ++++ src/test/ipams/netbox/expected.add_ip | 2 +- .../ipams/netbox/expected.add_ip_notgateway | 2 +- .../ipams/netbox/expected.add_next_freeip | 2 +- src/test/ipams/netbox/expected.update_ip | 2 +- src/test/run_test_subnets.pl | 8 +- 10 files changed, 63 insertions(+), 72 deletions(-) qemu-server: Alexandre Derumier (6): vmnic add|remove : add|del ip in ipam vm_start : vm-network-scripts: add_dhcp_reservation nic hotplug: add_dhcp_mapping api2: create|restore|clone: add_free_ip vm_destroy: delete ip from ipam nic online bridge/vlan change: link disconnect/reconnect PVE/API2/Qemu.pm | 6 +++ PVE/QemuServer.pm | 86 +++++++++++++++++++++++++++++++++++ vm-network-scripts/pve-bridge | 2 + 3 files changed, 94 insertions(+) pve-container: Alexandre Derumier (6): nic hotplug : add|del ips in ipam vm_destroy: remove ips from ipam for all interfaces vm_create|restore: create ips in ipam vm_clone : create ips in ipams vm_apply_pending: add|del ips from ipam for offline changes lxc-pve-prestart-hook : add_dhcp_mapping src/PVE/API2/LXC.pm | 10 ++++++++- src/PVE/LXC.pm | 46 +++++++++++++++++++++++++++++++++++++++ src/PVE/LXC/Config.pm | 27 +++++++++++++++++++++++ src/lxc-pve-prestart-hook | 15 +++++++++++++ 4 files changed, 97 insertions(+), 1 deletion(-) -- 2.39.2