[pdm-devel] [RFC PATCH datacenter-manager 0/3] implement bulk start
Dominik Csapak
d.csapak at proxmox.com
Wed Jan 29 11:51:39 CET 2025
Sending as RFC, because it's still very rough and i want to get some
early feedback.
This series implements an api call 'bulk-start' which is running on
the pdm itself, that mimics the bulkstart from pve, but without the
node limitation of pve.
Does that make sense? Or would it be better to try to implement that
on pve side? The advantage we have here is that we have an
external view of the cluster, which means that things like node
failures, synchronisation, etc. are much easier to handle.
If we'd implment something like this on PVE, there has to be a node
that has control of the api calls to make (or to schedule something via
pmxcfs) and that is probably much harder to do there (pmxcfs sync queue)
or brings some problems with it (node dies in the middle of an api call)
It's very early, so please don't judge the actual api call code just
now, I'd extend it with failure resulotion, polling the task, etc.
OTOH there is the question if the UI makes sense this way, or if we want
to combine the 'select to view details' and 'select to to a bulk action'
into one. Or if we want to do the bulk actions more like in pve with
a popup that shows the vm list again.
Dominik Csapak (3):
server: pve api: add new bulkstart api call
pdm-client: add bulk_start method
ui: pve tree: add bulk start action
lib/pdm-client/src/lib.rs | 9 ++-
server/src/api/pve/mod.rs | 98 +++++++++++++++++++++++++++-
ui/src/pve/tree.rs | 133 ++++++++++++++++++++++++++++++++++++--
3 files changed, 234 insertions(+), 6 deletions(-)
--
2.39.5
More information about the pdm-devel
mailing list