From: "Shannon Sterz" <s.sterz@proxmox.com>
To: "Proxmox Datacenter Manager development discussion"
<pdm-devel@lists.proxmox.com>,
"Michael Köppl" <m.koeppl@proxmox.com>
Subject: Re: [pdm-devel] [PATCH datacenter-manager/proxmox 0/3] version command and upgrade checks for pdm
Date: Mon, 08 Sep 2025 10:39:19 +0200 [thread overview]
Message-ID: <DCNA7W1WKNXL.18NYIJKRQ48SZ@proxmox.com> (raw)
In-Reply-To: <DCKYU8V170Y9.SK1LFESQF3GW@proxmox.com>
On Fri Sep 5, 2025 at 5:18 PM CEST, Michael Köppl wrote:
> Tested the upgrade script on a bookworm-based PDM install
>
> - Checked that installed systemd-boot package was detected and warning
> shown
> - Forced time sync unit checks to warn by installing timesyncd, ntp,
> uninstalling chrony, etc.
> scenarios
> - Having timesyncd installed and active produced the expected warning
> - Having ntp installed produced the expected info message
> - Checked the various version mismatch cases and if they're reported
> correctly
>
> Also gave the `versions` command a spin. The only thing I noticed there
> is that the output started with the following line for me:
> proxmox-datacenter unknown running kernel: 6.8.12-9-pve
> Is "unknown" expected here?
thanks for the feedback, the output here should depend on the
pre-existing versions endpoint at `GET nodes/{nodename}/apt/versions`
(note that `nodename` is usually just `localhost` as there is no
clustering yet). the unknown stems from proxmox-apt's assumption that
every product has a meta package, which pdm doesn't seems to have yet.
so while this isn't ideal, it is somewhat expected. the output for
`proxmox-datacenter-manager` should be correct, though. the output above
is only shown if you run this command with the `--verbose` flag.
to fix this we could set the meta package name to
`proxmox-datacenter-manager` as well in `server/src/api/nodes/apt.rs @
get_versions()`, but that wil lead to duplicate lines. i'll add a patch
in that regard to v2, it can still be dropped when applying.
> Other than that, I didn't notice anything off. Seems to work as
> advertised. Left 1 comment on the 1/1 patch that adds the
> proxmox-upgrade-checks crate.
>
> Tested-by: Michael Köppl <m.koeppl@proxmox.com>
>
> On Fri Sep 5, 2025 at 11:59 AM CEST, Shannon Sterz wrote:
>> these three patches add an upgrade script to proxmox-datacenter-manager.
>> it also adds a `versions` subcommand to the
>> `proxmox-datacenter-manager-admin` command. they are intended for the
>> bookworm based releases, so that users can check the prerequisites
>> before upgrading to a trixie based release. a similar series for the
>> current trixie-based master branches will follow shortly.
>>
>> the first patch moves the existing checks from pbs to the proxmox
>> repository and make them a little bit more configurable. the second
>> patch then uses these checks in the new `proxmox-upgrade-checks` crate
>> and implements the `pdmAtoB` helper that works the same as other upgrade
>> checking helpers.
>>
>> finally the last commit implements the `versions` subcommand for
>> `proxmox-datacenter-manager-admin` so that it is easier to tell what the
>> currently running version of pdm is.
>>
>> these paches are intended to be applied against the following trees:
>>
>> * in the proxmox repository this should be applied against the
>> `stable-bookworm` branch.
>> * in the proxmox-datacenter-manager repository the two commits should be
>> applied against the commit f6ca650d (ui: add woff2 roboto flex variant
>> to ui packaging)
>>
>> the latter was chosen as it seems to be the last commit in the
>> proxmox-datacenter-manager repo that was intended for bookworm, since
>> that repo is missing a `stable-bookworm` branch so far.
>>
>> proxmox:
>>
>> Shannon Sterz (1):
>> upgrade-checks: add upgrade checker crate
>>
>> Cargo.toml | 3 +
>> proxmox-upgrade-checks/Cargo.toml | 21 +
>> proxmox-upgrade-checks/src/lib.rs | 856 ++++++++++++++++++++++++++++++
>> 3 files changed, 880 insertions(+)
>> create mode 100644 proxmox-upgrade-checks/Cargo.toml
>> create mode 100644 proxmox-upgrade-checks/src/lib.rs
>>
>>
>> proxmox-datacenter-manager:
>>
>> Shannon Sterz (2):
>> server: add pdmAtoB upgrade checker script
>> cli/admin: add a versions command to show current package versions
>>
>> Cargo.toml | 3 ++
>> Makefile | 1 +
>> cli/admin/src/main.rs | 53 ++++++++++++++++++++++-
>> cli/pdmAtoB/Cargo.toml | 15 +++++++
>> cli/pdmAtoB/src/main.rs | 19 ++++++++
>> debian/proxmox-datacenter-manager.install | 3 ++
>> 6 files changed, 92 insertions(+), 2 deletions(-)
>> create mode 100644 cli/pdmAtoB/Cargo.toml
>> create mode 100644 cli/pdmAtoB/src/main.rs
>>
>>
>> Summary over all repositories:
>> 9 files changed, 972 insertions(+), 2 deletions(-)
>>
>> --
>> Generated by git-murpp 0.8.1
>>
>>
>> _______________________________________________
>> pdm-devel mailing list
>> pdm-devel@lists.proxmox.com
>> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
>
>
>
> _______________________________________________
> pdm-devel mailing list
> pdm-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2025-09-08 8:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-05 9:59 Shannon Sterz
2025-09-05 9:59 ` [pdm-devel] [PATCH proxmox 1/1] upgrade-checks: add upgrade checker crate Shannon Sterz
2025-09-05 14:08 ` Michael Köppl
2025-09-08 8:39 ` Shannon Sterz
2025-09-08 9:03 ` Thomas Lamprecht
2025-09-05 9:59 ` [pdm-devel] [PATCH datacenter-manager 1/2] server: add pdmAtoB upgrade checker script Shannon Sterz
2025-09-05 9:59 ` [pdm-devel] [PATCH datacenter-manager 2/2] cli/admin: add a versions command to show current package versions Shannon Sterz
2025-09-05 15:18 ` [pdm-devel] [PATCH datacenter-manager/proxmox 0/3] version command and upgrade checks for pdm Michael Köppl
2025-09-08 8:39 ` Shannon Sterz [this message]
2025-09-05 10:04 Shannon Sterz
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=DCNA7W1WKNXL.18NYIJKRQ48SZ@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=m.koeppl@proxmox.com \
--cc=pdm-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