From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <pve-devel-bounces@lists.proxmox.com> Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 9EECF1FF389 for <inbox@lore.proxmox.com>; Wed, 22 May 2024 14:12:02 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4E169BB1D; Wed, 22 May 2024 14:12:16 +0200 (CEST) To: pve-devel@lists.proxmox.com Date: Wed, 22 May 2024 14:05:52 +0200 In-Reply-To: <20240522120553.49114-1-krambrock@hrz.uni-marburg.de> References: <20240522120553.49114-1-krambrock@hrz.uni-marburg.de> MIME-Version: 1.0 Message-ID: <mailman.226.1716379935.319.pve-devel@lists.proxmox.com> List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com> List-Post: <mailto:pve-devel@lists.proxmox.com> From: Daniel Krambrock via pve-devel <pve-devel@lists.proxmox.com> Precedence: list Cc: Daniel Krambrock <krambrock@hrz.uni-marburg.de> X-Mailman-Version: 2.1.29 X-BeenThere: pve-devel@lists.proxmox.com List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe> List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe> List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/> Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com> List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help> Subject: [pve-devel] [PATCH container] close #4369: make VMID suggestion strategy configurable Content-Type: multipart/mixed; boundary="===============7944498093146130203==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com> --===============7944498093146130203== Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <root@vhrz2211.hrz.uni-marburg.de> X-Original-To: pve-devel@lists.proxmox.com Delivered-To: pve-devel@lists.proxmox.com 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 5901AC4A12 for <pve-devel@lists.proxmox.com>; Wed, 22 May 2024 14:12:15 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3A608B86A for <pve-devel@lists.proxmox.com>; Wed, 22 May 2024 14:11:45 +0200 (CEST) Received: from vhrz1173.hrz.uni-marburg.de (vhrz1173.HRZ.Uni-Marburg.DE [137.248.1.43]) (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 firstgate.proxmox.com (Proxmox) with ESMTPS for <pve-devel@lists.proxmox.com>; Wed, 22 May 2024 14:11:44 +0200 (CEST) Received: from vhrz1173.hrz.uni-marburg.de (vhrz1173.HRZ.Uni-Marburg.DE [137.248.1.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by vhrz1865.HRZ.Uni-Marburg.DE (Postfix) with ESMTPS id 4VkqlX6smHzygW; Wed, 22 May 2024 14:06:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uni-marburg.de; s=dkim; t=1716379577; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+VBedROYoQa9anSng7mrMPdIi4W6FU307fFypIVV2cA=; b=bGAXLSL4OxiidJBmQeQDdiMoXHg1sqJlgG8jzt8Q4k44zbZfIjch+iO9C3GarZGY1f8VTF +PsF1wKNfuD3tyTP0PJAWYjKOwG0H9eRsP5LrUxrtNlTsf+VhSo7T/oZETwX/IVI6M2ORm bGxv6H3SaUjmZLKkQ/soJqoj0JT3xZg= Authentication-Results: smtpd-out; dkim=none; spf=none (smtpd-out: domain of root@vhrz2211.hrz.uni-marburg.de has no SPF policy when checking 137.248.1.43) smtp.mailfrom=root@vhrz2211.hrz.uni-marburg.de Received: from vhrz2211.hrz.uni-marburg.de (vhrz2211.HRZ.Uni-Marburg.DE [172.25.3.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by vhrz1865.HRZ.Uni-Marburg.DE (Postfix) with ESMTPS id 4VkqlX5wk9zygM; Wed, 22 May 2024 14:06:16 +0200 (CEST) Received: from root by vhrz2211.hrz.uni-marburg.de with local (Exim 4.96) (envelope-from <root@vhrz2211.hrz.uni-marburg.de>) id 1s9kjY-000Col-2U; Wed, 22 May 2024 14:06:16 +0200 From: Daniel Krambrock <krambrock@hrz.uni-marburg.de> To: pve-devel@lists.proxmox.com Subject: [PATCH container] close #4369: make VMID suggestion strategy configurable Date: Wed, 22 May 2024 14:05:52 +0200 Message-Id: <20240522120553.49114-4-krambrock@hrz.uni-marburg.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240522120553.49114-1-krambrock@hrz.uni-marburg.de> References: <20240522120553.49114-1-krambrock@hrz.uni-marburg.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Score: -4.80 / 12.00 / 15.00 X-Rspamd-Queue-Id: 4VkqlX6smHzygW X-SPAM-LEVEL: Spam detection results: 0 AWL 0.021 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DMARC_PASS -0.1 DMARC pass policy SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record on container deletion the VMID is added to the list of previously used VMIDs Signed-off-by: Daniel Krambrock <krambrock@hrz.uni-marburg.de> --- src/PVE/API2/LXC.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 138288c..f71f005 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -799,6 +799,7 @@ __PACKAGE__->register_method({ my $realcmd = sub { PVE::LXC::Config->lock_config($vmid, $code); }; + PVE::UsedVmidList::add_vmid($vmid); return $rpcenv->fork_worker('vzdestroy', $vmid, $authuser, $realcmd); }}); -- 2.39.2 --===============7944498093146130203== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel --===============7944498093146130203==--