[pdm-devel] applied-series: [PATCH datacenter-manager bookworm v4 0/3] version command and upgrade checks for pdm

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Sep 10 13:07:44 CEST 2025


applied series, thanks

On Wed, Sep 10, 2025 at 12:22:39PM +0200, 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 of proxmox-datacenter-manager, so that users can
> check the prerequisites of an upgrade before upgrading.
> 
> the first patch moves the existing checks from pbs to the `./lib` folder
> in the proxmox-datacenter-manager repo and make them a little bit more
> configurable. it then uses these changes to add a simple `pdmAtoB`
> command in the `./cli` folder.
> 
> the second 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.
> 
> the last commit changes the virtual package provided to `proxmox-apt` in
> the `nodes/{nodename}/apt/versions` endpoint to the actually existing
> proxmox-datacenter-manager package. this then returns almost the same
> entry twice, but avoids confusing users with an `unknown` package.
> 
> these patches are intended to be applied against the bookworm branch.
> 
> Changelog
> ---------
> 
> changes since v1:
> 
> - moved the proxmox-upgrade-checks crate to `./lib` instead of providing
>   it via proxmox-rs (thanks @ Thomas Lamprecht)
> - added a patch that avoids returning an unknown package (thanks @
>   Michael Köppl)
> 
> changes since v2:
> 
> - rebased onto the correct commit, the previous verson was accidentally
>   send as based on current master instead of the commit documented above
>   (thanks @ Wolfgang Bumiller)
> 
> changes since v3 (thanks @ Wolfgang Bumiller):
> 
> - remove the `with_` prefix for the build style methods
> - remove the `set_*` methods
> 
> 
> Shannon Sterz (3):
>   server: add pdmAtoB upgrade checker script
>   cli/admin: add a versions command to show current package versions
>   api/apt: set `proxmox-datacenter-manager` as pdm's virtual package
> 
>  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 +
>  lib/proxmox-upgrade-checks/Cargo.toml     |  19 +
>  lib/proxmox-upgrade-checks/src/lib.rs     | 846 ++++++++++++++++++++++
>  server/src/api/nodes/apt.rs               |   2 +-
>  9 files changed, 958 insertions(+), 3 deletions(-)
>  create mode 100644 cli/pdmAtoB/Cargo.toml
>  create mode 100644 cli/pdmAtoB/src/main.rs
>  create mode 100644 lib/proxmox-upgrade-checks/Cargo.toml
>  create mode 100644 lib/proxmox-upgrade-checks/src/lib.rs
> 
> --
> 2.47.3




More information about the pdm-devel mailing list