From: "Lukas Wagner" <l.wagner@proxmox.com>
To: "Thomas Lamprecht" <t.lamprecht@proxmox.com>,
<pbs-devel@lists.proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH pve-storage 7/7] api: add /nodes/<node>/storage/<storage>/identity route
Date: Fri, 24 Apr 2026 08:56:20 +0200 [thread overview]
Message-ID: <DI16T91NZN7I.1CJTK7JCUTERR@proxmox.com> (raw)
In-Reply-To: <6c51c1d2-76ca-45a5-9356-097bcaccf1cb@proxmox.com>
On Fri Apr 24, 2026 at 1:05 AM CEST, Thomas Lamprecht wrote:
> Am 23.04.26 um 11:24 schrieb Lukas Wagner:
>> One last point, but maybe I'm overthinking this:
>>
>> To me, the { type: "<plugin>", id: "<string" } approach kind of implies that
>> this ID would uniquely identify the PBS instance *as well as* the
>> datastore/namespace, which it does not at the moment.
>>
>> Would you think that it would make sense for PBS storage plugin to
>> maybe combine the datastore, namespace and the
>> pbs-instance-id into a single identifier here?
>>
>> Maybe something like, in pseudo-regex
>>
>> <datastore>(/<namespace>)?@<pbs-instance-id>
>>
>> e.g. store/some/name/space@dade89fe26104bc3858ae719c23594a7
>>
>> This would then actually uniquely identify the PBS storage (as in, two
>> storages with the same ID should always point to the same content),
>> while still allowing PDM to parse the identifier to retrieve the
>> pbs-instance-id, if needed.
>
> Fair point but I'd keep `id` scoped to the server instance though,
> because:
>
> - The pve-storage entry already pins datastore + namespace via
> storage.cfg, so a caller that knows which pve-storage it queried has
> those two from local context. Callers doing content-level matching
> anyway start from a specific (datastore, namespace) target, so once
> the instance ids line up the rest just falls out of the storage (or
> e.g. PBS remote) config. Baking datastore + namespace into `id` mostly
> duplicates what the caller already has and I'm not really a of such
> packed strings (reminds me of PBS' backup repo syntax I recently split
> up for better UX, albeit here it at least wouldn't be handled by the
> user directly)
> - Content-location identity as a general plugin contract is also
> awkward: not every storage type decomposes into a "server + container
> + sub-path" shape.
>
> So the contract should IMO rather stay "`id` identifies the server/service
> instance", which matches PDM's verification use. If auxiliary fields turn
> out to be useful later, `{ type, id, ... }` extends additively without
> breaking anyone, and I'd have nothing against adding datastore and
> namespace as extra (nested) fields there if you strongly prefer that and
> it really helps, but I would prefer to not "cram" it in the (instance) id.
Ack, then I'll just use the instance-id there. Thanks!
I'll post the new version ASAP :)
next prev parent reply other threads:[~2026-04-24 6:57 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-15 11:58 [PATCH common/proxmox{,-backup}/storage 0/7] establish unique instance-id for PBS nodes Lukas Wagner
2026-04-15 11:58 ` [PATCH proxmox 1/7] pbs-api-types: add ServerIdentity response type Lukas Wagner
2026-04-15 11:58 ` [PATCH proxmox 2/7] systemd: add support for machine-id generation Lukas Wagner
2026-04-15 11:58 ` [PATCH proxmox-backup 3/7] api: add /nodes/localhost/server-identity Lukas Wagner
2026-04-15 11:58 ` [PATCH proxmox-backup 4/7] client: add 'server-identity' sub-command Lukas Wagner
2026-04-15 11:58 ` [PATCH proxmox-backup 5/7] manager: add 'server-identity' subcommand Lukas Wagner
2026-04-15 11:58 ` [PATCH common 6/7] pbs-client: add support for the 'server-identity' command Lukas Wagner
2026-04-15 11:58 ` [PATCH pve-storage 7/7] api: add /nodes/<node>/storage/<storage>/identity route Lukas Wagner
2026-04-17 8:54 ` Fiona Ebner
2026-04-17 9:11 ` Lukas Wagner
2026-04-21 12:35 ` Thomas Lamprecht
2026-04-21 13:07 ` Lukas Wagner
2026-04-21 13:52 ` Thomas Lamprecht
2026-04-21 14:06 ` Christian Ebner
2026-04-22 7:48 ` Lukas Wagner
2026-04-22 15:13 ` Thomas Lamprecht
2026-04-23 9:25 ` Lukas Wagner
2026-04-23 23:05 ` Thomas Lamprecht
2026-04-24 6:56 ` Lukas Wagner [this message]
2026-04-21 12:20 ` [PATCH common/proxmox{,-backup}/storage 0/7] establish unique instance-id for PBS nodes Christian Ebner
2026-04-24 8:31 ` superseded: " Lukas Wagner
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=DI16T91NZN7I.1CJTK7JCUTERR@proxmox.com \
--to=l.wagner@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
--cc=pve-devel@lists.proxmox.com \
--cc=t.lamprecht@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