[pdm-devel] [PATCH datacenter-manager v2 00/13] add global remote update view
Lukas Wagner
l.wagner at proxmox.com
Fri Oct 17 14:09:56 CEST 2025
This series adds a new tab under "Remotes" called "Updates". It provides a
summary regarding the system update availability for all managed remotes.
Potential follow-up work:
- The "Refresh all" button, powered by the '/remote-updates/refresh' API
only retrieves a fresh list of available updates at the moment, but does not
invoke 'apt update' on the remote. The latter could be useful, either
always or if explicitly requested, but we probably should 'stream'
the node's task log to the PDM task log, so one can see the actual
progress and/or any problems.
- Remote task cache / task tracking needs a bit of work to correctly handle
PBS tasks, therefore the 'Update' (which *does* invoke 'apt update' on the
remote node) button for a *SINGLE* node does not work yet for PBS.
Changes since v1:
- Incorporated review feedback from Shannon - see commits for details
proxmox-datacenter-manager:
Lukas Wagner (13):
metric collection task: tests: add missing parameter for
cluster_metric_export
pdm-api-types: add types for remote upgrade summary
remote updates: add cache for remote update availability
api: add API for retrieving/refreshing the remote update summary
unprivileged api daemon: tasks: add remote update refresh task
pdm-client: add API methods for remote update summaries
pbs-client: add bindings for APT-related API calls
task cache: use separate functions for tracking PVE and PBS tasks
remote updates: add support for PBS remotes
api: add APT endpoints for PBS remotes
ui: add remote update view
ui: show new remote update view in the 'Remotes' section
remote updates: avoid unnecessary clone
lib/pdm-api-types/src/lib.rs | 2 +
lib/pdm-api-types/src/remote_updates.rs | 119 ++++
lib/pdm-client/src/lib.rs | 22 +
server/src/api/mod.rs | 3 +
server/src/api/pbs/mod.rs | 19 +-
server/src/api/pbs/node.rs | 9 +
server/src/api/pve/apt.rs | 119 ----
server/src/api/pve/mod.rs | 4 +-
server/src/api/pve/node.rs | 2 +-
server/src/api/remote_updates.rs | 222 ++++++++
server/src/bin/proxmox-datacenter-api/main.rs | 1 +
.../bin/proxmox-datacenter-api/tasks/mod.rs | 1 +
.../tasks/remote_updates.rs | 44 ++
.../src/metric_collection/collection_task.rs | 1 +
server/src/pbs_client.rs | 51 ++
server/src/remote_tasks/mod.rs | 45 +-
server/src/remote_updates.rs | 233 +++++++-
ui/src/remotes/mod.rs | 10 +
ui/src/remotes/updates.rs | 530 ++++++++++++++++++
19 files changed, 1293 insertions(+), 144 deletions(-)
create mode 100644 lib/pdm-api-types/src/remote_updates.rs
create mode 100644 server/src/api/pbs/node.rs
delete mode 100644 server/src/api/pve/apt.rs
create mode 100644 server/src/api/remote_updates.rs
create mode 100644 server/src/bin/proxmox-datacenter-api/tasks/remote_updates.rs
create mode 100644 ui/src/remotes/updates.rs
Summary over all repositories:
19 files changed, 1293 insertions(+), 144 deletions(-)
--
Generated by murpp 0.9.0
More information about the pdm-devel
mailing list