public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Michael Köppl" <m.koeppl@proxmox.com>
To: "Fiona Ebner" <f.ebner@proxmox.com>,
	"Michael Köppl" <m.koeppl@proxmox.com>,
	pve-devel@lists.proxmox.com
Subject: Re: [PATCH many v7 00/24] add option to prevent suggesting previously used VMIDs
Date: Mon, 12 Oct 2026 15:17:08 +0200	[thread overview]
Message-ID: <DM2VZZ0A6JCO.1SUU9MRCH1QG@proxmox.com> (raw)
In-Reply-To: <2165b7be-5371-4922-b4ce-c783306aedde@proxmox.com>

Thanks for having another look at this series!

On Fri Oct 9, 2026 at 6:22 PM CEST, Fiona Ebner wrote:
> Am 05.10.26 um 4:49 PM schrieb Michael Köppl:
>> This is based on the original series [0] by Severen Redwood and Daniel
>> Krambrock. It is rebased on the latest master branches and incorporates
>> the feedback from v6 [2].
>>
>> The last patch for cluster, qemu-server and container and the last two
>> for guest-common and manager add the optional enforcement of the
>> next-id settings. The rest of the series works without them. Since IDs
>> are recorded before a guest exists and stay recorded if its creation
>> fails, retrying a failed creation with the same ID is rejected when
>> both 'enforce' and 'unique' are set.
>
> Can we do a PVE::Cluster::check_vmid_unused($vmid, 1) call in
> PVE::GuestID::register_used_id() rather than passing along the state if
> existing from the call sites? Would keep the interface a bit cleaner and
> avoid the need for the last qemu-server and container patches. And
> GuestID already depends on Cluster.

Good point, that makes more sense than making every call site pass it
in anyway! Will adapt it in a v8, thanks!

>
>>
>> I kept the trailers from the original series where I made only minimal
>> changes, but added markers (MK: ...) in those cases. For bigger
>> changes, I changed the `Co-authored-by` and `Signed-off-by` trailers to
>> `Signed-off-by`. I removed Aaron's T-b and R-b trailers since it's been
>> a long time and the trailers might be misleading considering the series
>> has changed in some of its implementation details overall.
>>
>> Dependencies:
>> - guest-common needs a versioned build and runtime dependency on
>>   libpve-cluster-perl with virtual-guest/used-guest-ids registered,
>>   since loading PVE::AbstractConfig now registers the file.
>> - qemu-server and container need a versioned dependency on
>>   libpve-guest-common-perl with register_used_id() and its 'existing'
>>   option.
>> - guest-common with enforcement should break older qemu-server and
>>   container, which do not exempt destroying existing guests from it.
>
> Is this only relevant if we would bump before enforcement? If all
> changes come in the same bump it won't matter, or? And if going with my
> suggestion above it should also be fine.

Should only be relevant if there's a version bump before enforcement,
yes. That was formulated a bit too drastically, but wanted to point it
out in some way.

In any case, I'll use your suggestion from above anyway, so should be
fine. Thanks!

>
>> - manager needs versioned dependencies on libpve-cluster-perl (next-id
>>   'unique' and 'enforce') and libpve-guest-common-perl
>>   (get_next_unused_id() and assert_id_satisfies_next_id_settings()).
>>
>
> Two more minor issues in 5/24 and 17/24.
>
> Other than that, consider the series:
>
> Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
> Tested-by: Fiona Ebner <f.ebner@proxmox.com>






  reply	other threads:[~2026-10-12 13:22 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-05 14:47 [PATCH many v7 00/24] add option to prevent suggesting previously used VMIDs Michael Köppl
2026-10-05 14:47 ` [PATCH cluster v7 01/24] cluster files: add virtual-guest/used-guest-ids Michael Köppl
2026-10-05 14:47 ` [PATCH cluster v7 02/24] datacenter config: add unique subproperty to next-id Michael Köppl
2026-10-05 14:47 ` [PATCH cluster v7 03/24] datacenter config: next-id: add enforce subproperty Michael Köppl
2026-10-05 14:47 ` [PATCH guest-common v7 04/24] src/makefile: order files alphabetically Michael Köppl
2026-10-05 14:47 ` [PATCH guest-common v7 05/24] add module to track previously used guest IDs Michael Köppl
2026-10-09 16:22   ` Fiona Ebner
2026-10-12 13:16     ` Michael Köppl
2026-10-05 14:47 ` [PATCH guest-common v7 06/24] tests: add tests for used guest ID tracking Michael Köppl
2026-10-05 14:47 ` [PATCH guest-common v7 07/24] abstract config: register used guest ID when creating config Michael Köppl
2026-10-05 14:47 ` [PATCH guest-common v7 08/24] guest id: keep used ID list below the pmxcfs file size limit Michael Köppl
2026-10-05 14:47 ` [PATCH guest-common v7 09/24] tests: add tests for used-guest-ids max file size handling Michael Köppl
2026-10-05 14:47 ` [PATCH guest-common v7 10/24] guest id: optionally enforce the next-id range and uniqueness Michael Köppl
2026-10-05 14:47 ` [PATCH guest-common v7 11/24] guest id: add helper to check guest IDs against next-id enforcement Michael Köppl
2026-10-05 14:47 ` [PATCH qemu-server v7 12/24] api: record VM ID as used on destruction and remote migration Michael Köppl
2026-10-05 14:47 ` [PATCH qemu-server v7 13/24] api, remote migrate: exempt existing VMs from next-id enforcement Michael Köppl
2026-10-05 14:47 ` [PATCH container v7 14/24] api: record CT ID as used on destruction and remote migration Michael Köppl
2026-10-05 14:47 ` [PATCH container v7 15/24] api, migrate: exempt existing CTs from next-id enforcement Michael Köppl
2026-10-05 14:47 ` [PATCH manager v7 16/24] ui: guest ID selector: rename exists flag to rejected Michael Köppl
2026-10-05 14:47 ` [PATCH manager v7 17/24] ui: guest ID selector: show the error returned by nextid Michael Köppl
2026-10-09 16:22   ` Fiona Ebner
2026-10-12 14:23     ` Michael Köppl
2026-10-05 14:47 ` [PATCH manager v7 18/24] fix #4369: api: optionally only suggest unique IDs Michael Köppl
2026-10-05 14:48 ` [PATCH manager v7 19/24] ui: dc options: rename VMID to guest ID Michael Köppl
2026-10-05 14:48 ` [PATCH manager v7 20/24] fix #4369: ui: dc options: add option for unique VM/CT IDs Michael Köppl
2026-10-05 14:48 ` [PATCH manager v7 21/24] api: nextid: reject IDs forbidden by next-id enforcement Michael Köppl
2026-10-05 14:48 ` [PATCH manager v7 22/24] ui: dc options: add option to enforce next free guest ID settings Michael Köppl
2026-10-05 14:48 ` [PATCH docs v7 23/24] pmxcfs: files: add virtual-guest/used-guest-ids Michael Köppl
2026-10-05 14:48 ` [PATCH docs v7 24/24] pvecm: next-id: document unique and enforce options Michael Köppl
2026-10-09 16:22 ` [PATCH many v7 00/24] add option to prevent suggesting previously used VMIDs Fiona Ebner
2026-10-12 13:17   ` Michael Köppl [this message]
2026-10-12 15:49 ` superseded: " Michael Köppl

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=DM2VZZ0A6JCO.1SUU9MRCH1QG@proxmox.com \
    --to=m.koeppl@proxmox.com \
    --cc=f.ebner@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal