all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pve-devel@lists.proxmox.com, "Michael Köppl" <m.koeppl@proxmox.com>
Subject: Re: [PATCH cluster/manager 0/2] datacenter config: next-id: reject an empty range
Date: Tue, 24 Nov 2026 10:47:03 +0100	[thread overview]
Message-ID: <179551347903.3646042.5750110974753322868.b4-ty@b4> (raw)
In-Reply-To: <20261123152100.2920205-1-m.koeppl@proxmox.com>

On Mon, 23 Nov 2026 16:20:58 +0100, Michael Köppl 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.
> 
> [...]

Applied, thanks!

The check also runs when any other datacenter option gets changed, so
the error now says which option it is about, e.g. "next-id: upper
boundary (100) must be greater than lower boundary (100)".

In the UI, upper field minium now starts at 101 and goes up to the
backend maximum, as the exclusive upper boundary must be above the
lowest and may be above the highest guest ID. Also added a test for the
range boundaries.

[cluster] applied to pve-cluster.git (master)
[1/1] datacenter config: next-id: reject an empty range
      https://git.proxmox.com/?p=pve-cluster.git;a=commitdiff;h=321e188b753b0e746da97d67d28c604df4c29cc1

[manager] applied to pve-manager.git (master)
[1/1] ui: dc options: next-id: require upper to be above lower
      https://git.proxmox.com/?p=pve-manager.git;a=commitdiff;h=2ca4ed3dba020607326da7c6fbdc2d7e228ff282




      parent reply	other threads:[~2026-11-24 10:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 15:20 [PATCH cluster/manager 0/2] datacenter config: next-id: reject an empty range Michael Köppl
2026-11-23 15:20 ` [PATCH cluster 1/2] " Michael Köppl
2026-11-24  6:44   ` Dominik Rusovac
2026-11-23 15:21 ` [PATCH manager 2/2] ui: dc options: next-id: require upper to be above lower Michael Köppl
2026-11-24  7:15   ` Dominik Rusovac
2026-11-24  7:41 ` [PATCH cluster/manager 0/2] datacenter config: next-id: reject an empty range Dominik Rusovac
2026-11-24  9:47 ` Thomas Lamprecht [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179551347903.3646042.5750110974753322868.b4-ty@b4 \
    --to=t.lamprecht@proxmox.com \
    --cc=m.koeppl@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal