public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Shannon Sterz <s.sterz@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager master v4 0/3] version command and upgrade checks for pdm
Date: Wed, 10 Sep 2025 12:24:38 +0200	[thread overview]
Message-ID: <20250910102441.108401-2-s.sterz@proxmox.com> (raw)

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
latest releases of proxmox-datacenter-manager, a series for the
bookworm-based releases was send previously [1].

the first patch moves the existing checks from pbs to the `./lib` folder
in the proxmox-datacenter-manager repo and makes them a little bit more
configurable. it then uses these changes in 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 commits are inteded to be applied against the current master
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:

- v3 was a bookworm only rebase of these patches and is skipped here

changes since v3 (thanks @ Wolfgang Bumiller):

- remove the `with_` prefix for the build style methods
- remove the `set_*` methods

[1]: https://lore.proxmox.com/pdm-devel/20250910102240.107012-3-s.sterz@proxmox.com/


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     | 847 ++++++++++++++++++++++
 server/src/api/nodes/apt.rs               |   2 +-
 9 files changed, 959 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



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel

             reply	other threads:[~2025-09-10 10:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-10 10:24 Shannon Sterz [this message]
2025-09-10 10:24 ` [pdm-devel] [PATCH datacenter-manager master v4 1/3] server: add pdmAtoB upgrade checker script Shannon Sterz
2025-09-10 10:24 ` [pdm-devel] [PATCH datacenter-manager master v4 2/3] cli/admin: add a versions command to show current package versions Shannon Sterz
2025-09-10 10:24 ` [pdm-devel] [PATCH datacenter-manager master v4 3/3] api/apt: set `proxmox-datacenter-manager` as pdm's virtual package Shannon Sterz
2025-09-10 12:22 ` [pdm-devel] applied-series: [PATCH datacenter-manager master v4 0/3] version command and upgrade checks for pdm Wolfgang Bumiller

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=20250910102441.108401-2-s.sterz@proxmox.com \
    --to=s.sterz@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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal