From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id AD9061FF066 for ; Tue, 24 Nov 2026 08:41:38 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 2B80A2057E; Tue, 24 Nov 2026 08:41:38 +0100 (CET) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 24 Nov 2026 08:41:32 +0100 Message-Id: Subject: Re: [PATCH cluster/manager 0/2] datacenter config: next-id: reject an empty range From: "Dominik Rusovac" To: =?utf-8?q?Michael_K=C3=B6ppl?= , X-Mailer: aerc 0.20.0 References: <20261123152100.2920205-1-m.koeppl@proxmox.com> In-Reply-To: <20261123152100.2920205-1-m.koeppl@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795506093082 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.129 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 53BDLUQQ5HQHCVZV3EVW7WIMXXBEC5VB X-Message-ID-Hash: 53BDLUQQ5HQHCVZV3EVW7WIMXXBEC5VB X-MailFrom: d.rusovac@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Mon Nov 23, 2026 at 4:20 PM CET, Michael K=C3=B6ppl wrote: > The upper boundary of the next-id range is exclusive, but the > datacenter config only rejected a lower boundary above the upper one. > Setting both to the same value was accepted and left no guest ID in > the range, so requesting the next free guest ID always failed. > > 1/2 fixes the check when writing datacenter.cfg, which covers API and > CLI. 2/2 adds the check in the edit window in the web UI, so that users > are already stopped from entering such a value in the web UI. I tested that: * users are already stopped from entering equal bounds in the web UI * all of the following are rejected because of a broken lower < upper bound= ary rule: * `pvesh set /cluster/options --next-id lower=3Dn,upper=3Dn` * `pvesh set /cluster/options --next-id lower=3Dn+1,upper=3Dn`=20 * `pvesh set /cluster/options --next-id lower=3Dn,upper=3Dn+1` is still acc= epted * `pvesh set /cluster/options --next-id lower=3D1000000` is rejected, since default upper bound is 1000000, hence setting lower=3D1000000 gives lower=3Dupper and should result in broken rule [snip] Reviewed-by: Dominik Rusovac Tested-by: Dominik Rusovac